And the size of the floating range should set between 3…

CORRECT TEXT
Create a volume group,and set 8M as a extends. Divided a volume group containing 50 extends on volume
group lv (lvshare), make it as ext4 file system, and mounted automatically under /mnt/data. And the size of the
floating range should set between 380M and 400M.

CORRECT TEXT
Create a volume group,and set 8M as a extends. Divided a volume group containing 50 extends on volume
group lv (lvshare), make it as ext4 file system, and mounted automatically under /mnt/data. And the size of the
floating range should set between 380M and 400M.

A.
# vim /etc/fstab

B.
# pvcreate /dev/vda6

C.
# mkfs.ext4 /dev/vg1/lvshare

D.
/dev/vg1/lvshare /mnt/data ext4 defaults 0 0

Explanation:
# fdisk
# partprobe
# pvcreate /dev/vda6
# vgcreate -s 8M vg1 /dev/vda6 -s
# lvcreate -n lvshare -l 50 vg1 -l
# mkfs.ext4 /dev/vg1/lvshare
# mkdir -p /mnt/data
# vim /etc/fstab/dev/vg1/lvshare /mnt/data ext4 defaults 0 0
# mount -a
# df -h



Leave a Reply 1

Your email address will not be published. Required fields are marked *


nap

nap

Hi

just few comments:

1. You need to create a 408M(50*8 + 8) primary partition(LVM linux) with fdisk in order to use commands provided on the solution(just change partition name accordantly example = /dev/sda4 )

2. below commands have extra letter at the end, should be removed (-s and -l)

# vgcreate -s 8M vg1 /dev/vda6
# lvcreate -n lvshare -l 50 vg1

I have my exam in five days!

Regards