32 lines
559 B
Plaintext
Executable File
32 lines
559 B
Plaintext
Executable File
# display device informations
|
|
fdisk -l /dev/xvdf
|
|
|
|
# create PV and VG
|
|
pvcreate /dev/xvdf
|
|
vgcreate vg_fra /dev/xvdf
|
|
|
|
vgdisplay vg_fra -v
|
|
|
|
# create LV using 100% of free space in the VG
|
|
lvcreate -n lv_fra -l 100%FREE vg_fra
|
|
|
|
# extend LV using 100% of free space in the VG
|
|
lvextend -l +100%FREE /dev/vg-test/lv-test
|
|
|
|
# create XFS file system on LV
|
|
mkfs.xfs /dev/vg_fra/lv_fra
|
|
|
|
# mount the file system
|
|
mkdir -p /fra
|
|
mount /dev/vg_fra/lv_fra /fra
|
|
|
|
df -hT /fra
|
|
|
|
# fstab entry
|
|
/dev/mapper/vg_fra-lv_fra /fra xfs defaults 1 1
|
|
|
|
|
|
umount /fra
|
|
mount -a
|
|
df -hT
|