Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam EX200 topic 1 question 15 discussion

Actual exam question from RedHat's EX200
Question #: 15
Topic #: 1
[All EX200 Questions]

SIMULATION -
Create a volume group, and set 16M as a extends. And divided a volume group containing 50 extends on volume group lv, make it as ext4 file system, and mounted automatically under /mnt/data.

Show Suggested Answer Hide Answer
Suggested Answer: See explanation below.
# pvcreate /dev/sda7 /dev/sda8
# vgcreate -s 16M vg1 /dev/sda7 /dev/sda8
# lvcreate -l 50 -n lvm02
# mkfs.ext4 /dev/vg1/lvm02
# blkid /dev/vg1/lv1
# vim /etc/fstab
# mkdir -p /mnt/data
UUID=xxxxxxxx /mnt/data ext4 defaults 0 0
# vim /etc/fstab
# mount -a
# mount
(Verify)

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
MELO225
Highly Voted 2 years, 7 months ago
Assuming /dev/sda1 and /dev/sda2 partitions already exist: # pvcreate /dev/sda1 /dev/sda2 # vgcreate -s 16M vg01 /dev/sda1 /dev/sda2 # lvcreate -l 50 -n lv01 vg01 # mkfs.ext4 /dev/vg01/lv01 # mkdir -p /mnt/data # blkid /dev/vg01/lv01 copy the UUID of /dev/vg01/lv01 in the output of that command. # vim /etc/fstab UUID="paste the UUID of /dev/vg01/lv01 here" /mnt/data ext4 defaults 0 0 # mount -ahttps://www.examtopics.com/exams/redhat/ex200/view/3/#
upvoted 13 times
...
RedQuasar
Highly Voted 3 years, 4 months ago
ERRATA: vgcreate -s 16M vg01 /dev/sda1 /dev/sda2 lvcreate -l 50 -n lv01 vg01 mkfs.ext4 /dev/mapper/vg01_lv01 lsblk -pf (UUID=dde8c40f-fa74-4290-8ff9-252c614e8307) echo “UUID=dde8c40f-fa74-4290-8ff9-252c614e8307 /mnt/data xfs defaults 0 0” >> /etc/fstab
upvoted 7 times
kemculka
2 years, 9 months ago
don't forget: mkdir /mnt/data
upvoted 1 times
...
kysj
2 years, 1 month ago
it should be ext4 instead of xfs in /etc/fstab
upvoted 2 times
...
...
ktd971
Most Recent 2 months ago
I don't understand why you used 2 "/dev/" instead of just one.
upvoted 1 times
...
Rahul95
10 months, 4 weeks ago
Assuming dev/sda1 exist #lsblk -t check #vgcreate -s 16M testvg /dev/sda1 #vgdisplay #lvcreate -l 50 -n testlv testvg #lvdisplay #mkfs.ext4 /dev/test/test1 #mkdir /mnt/data #vi /etc/fstab #/dev/test/test1 /mnt/data ext4 defaults 0 0 #mount -a #df -hT - to verify #
upvoted 1 times
...
kenkct
2 years, 2 months ago
lsblk -pfs (locate the 2 empty HDD, sdb sdc) sudo pvcreate /dev/sdb /dev/sdc (2 empty HDD) sudo vgcreate -s 16M vg01 /dev/sdb /dev/sdc sudo lvcreate -l 50 -n lv01 vg01 sudo mkfs.ext4 /dev/mapper/vg01-lv01 lsblk -pfs sudo mkdir -p /mnt/data sudo su echo "UUID=XXXX-XXXX-XXXX /mnt/data ext4 defaults 0 0" >> /etc/fstab mount -a
upvoted 1 times
...
eid
2 years, 4 months ago
what is the correct lvcreate -l 50 -n lv01 vg01 or lvcreate -n lv1 -L 50 vg1
upvoted 1 times
zqc
11 months, 3 weeks ago
the -L option to set the LV size in bytes or the -l option to set the LV size in extents
upvoted 1 times
...
...
Roger95
2 years, 6 months ago
assume that /dev/sdb2 and /dev/sdb3 were created (lsblk to verify it) #pvcreate /dev/sdb{2,3} #pvdisplay /dev/sdb* (verify) #vgcreate VG01 --physicalextentsize 16M /dev/sdb{2,3} #vgdisplay /dev/VG01 (verify) #lvcreate --extents 50 --name LV01 VG01 #lvdisplay /dev/VG01 (verify) #blkid /dev/VG01/LV01 (get UUID=XXX-XX-XX) #mkdir -p /mnt/data #echo "UUID=XXX-XX-XX /mnt/data ext4 defaults 0 0" | tee -a /etc/fstab #mount -a
upvoted 3 times
kitkat
1 year, 10 months ago
mkfs before getting UUID with help of blkid is missing. #lvdisplay /dev/VG01 (verify) #mkfs.ext4 /dev/VG01/LV0 #blkid /dev/VG01/LV01 (get UUID=XXX-XX-XX)
upvoted 1 times
...
...
gunwantk
2 years, 6 months ago
why question statement are so confusing?
upvoted 3 times
...
jmm18
2 years, 11 months ago
Where do we get UUID value?
upvoted 2 times
cb52
2 years, 3 months ago
run lsblk -fs
upvoted 1 times
...
sugisho
2 years, 10 months ago
just blkid
upvoted 1 times
...
...
RedQuasar
3 years, 4 months ago
vgcreate -s 16M vg01 /dev/sda1 /dev/sda2 lvcreate -l 50 -n lv01 vg01 mkfs.xfs /dev/mapper/vg01_lv01 lsblk -pf (UUID=dde8c40f-fa74-4290-8ff9-252c614e8307) echo “UUID=dde8c40f-fa74-4290-8ff9-252c614e8307 /mnt/data xfs defaults 0 0” >> /etc/fstab
upvoted 3 times
...
xinivat265
3 years, 5 months ago
This question have no sense only for me ? What means "And divided a volume group containing 50 extends on volume group lv".... Divided a volume group in another volume group !? Moreover the size of the volume group is not specified (50 extends or more !?), the size of the logical volume neither..
upvoted 5 times
...
fullbenz
3 years, 6 months ago
lvcreate -n lv1 -L 50 vg1
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...