Linix OS : CentOS 6.3 x64

[root@example dev]# parted /dev/sdc
GNU Parted 2.1
Using /dev/sdc
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel
New disk label type? gpt
(parted) mkpart
Partition name?  []? primay
File system type?  [ext2]? xfs
Start? 0
End? -1
Warning: The resulting partition is not properly aligned for best performance.
Ignore/Cancel? i
(parted) print
Disk /dev/sdc: 30.0TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name    Flags
 1      17.4kB  30.0TB  30.0TB               primay

(parted) quit
Information: You may need to update /etc/fstab.

[root@example dev]# mkfs.xfs /dev/sdc1
meta-data=/dev/sdc1              isize=256    agcount=28, agsize=268435455 blks
         =                       sectsz=512   attr=2
data     =                       bsize=4096   blocks=7325583805, imaxpct=5
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0
log      =internal log           bsize=4096   blocks=521728, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0

[root@example etc]# vi /etc/fstab
/dev/sdc1       /extend xfs     defaults        1       2

[root@example etc]# mount -a
[root@example etc]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdc1              28T   33M   28T   1% /extend


Hello World

helloworld 發表在 痞客邦 PIXNET 留言(0) 人氣()