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 18 discussion

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

SIMULATION -
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.

Show Suggested Answer Hide Answer
Suggested Answer: See explanation below.
# 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

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
RedQuasar
Highly Voted 3 years, 4 months ago
vgcreate -s 8M vg02 /dev/sda3 lvcreate -l 50 -n lv02 mkfs.ext4 /dev/mapper/vg02_lv02 mkdir /mnt/data3 lsblk -pf (UUID=…457f-446bbb805753) echo “UUID=…457f-446bbb805753 /mnt/data3 ext4 defaults 0 0” >> /etc/fstab
upvoted 5 times
badguy001djh
2 years, 8 months ago
Your lvcreate command lacks VG option.
upvoted 5 times
STFN2019
2 years, 7 months ago
Yep second line should be: lvcreate -l 50 -n lv02 vg02
upvoted 3 times
...
...
...
kitkat
Most Recent 1 year, 10 months ago
We need to set partition size between 380M and 400M
upvoted 1 times
kitkat
1 year, 10 months ago
50 extends of 8MB each will be close to 400MB.
upvoted 2 times
kitkat
1 year, 10 months ago
Which means we do not need to define anything special setting vgcreate to 8M and lvcreate extends to 50 is doing what question asks for.
upvoted 1 times
...
...
...
kenkct
2 years, 1 month ago
sudo su lsblk -psf pvcreate /dev/sd[] vgcreate -s 8M vg1 /dev/sd[] lvcreate -l 50 -n lvshare vg1 lsblk -psf mkfs.ext4 /dev/mapper/vg1-lvshare mkdir -p /mnt/data echo '/dev/mapper/vg1-lvshare /mnt/data ext4 defaults 0 0' >> /etc/fstab systemctl daemon-reload mount -a
upvoted 1 times
...
vira5489
2 years, 5 months ago
-- lets say we are going to work on /dev/vda3 , make sure this disk has no mount point,if any than unmount them ex. umount /mnt/data vgcreate -s 8M vg1 /dev/vda3 lvcreate -n lvshare -l 50 vg1 mkfs.ext4 /dev/vg1/lvshare mkdir -p /mnt/data vim /etc/fstab /dev/vg1/lvshare /mnt/data ext4 defaults 0 0 mount -a partprobe df -h
upvoted 3 times
xXxM__JxXx
2 years, 1 month ago
hi just want to ask. what part of the command line addresses this requirement And the size of the floating range should set between 380M and 400M
upvoted 2 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 ...