# pvcreate /dev/sdb
WARNING: dos signature detected on /dev/sdb at offset 510. Wipe it? [y/n]: y
Wiping dos signature on /dev/sdb.
Physical volume "/dev/sdb" successfully created
# vgcreate vg01 /dev/sdb
Volume group "vg01" successfully created
# lvcreate -l +100%FREE -n lv01 vg01
Logical volume "lv01" created.
# mkfs.xfs /dev/vg01/lv01
meta-data=/dev/vg01/lv01 isize=256 agcount=4, agsize=6553344 blks
= sectsz=512 attr=2, projid32bit=1
= crc=0 finobt=0
data = bsize=4096 blocks=26213376, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=0
log =internal log bsize=4096 blocks=12799, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
# vi /etc/fstab
/dev/vg01/lv01 /data xfs defaults 0 0
# mkdir /data
# mount /data
# df /data
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg01-lv01 104802308 32928 104769380 1% /data
No comments:
Post a Comment