exam questions

Exam EX200 All Questions

View all questions & answers for the EX200 exam

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 (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
RedQuasar
Highly Voted 1 year, 6 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
10 months, 2 weeks ago
Your lvcreate command lacks VG option.
upvoted 6 times
STFN2019
9 months ago
Yep second line should be: lvcreate -l 50 -n lv02 vg02
upvoted 4 times
...
...
...
kitkat
Most Recent 5 days, 8 hours ago
We need to set partition size between 380M and 400M
upvoted 1 times
kitkat
5 days, 8 hours ago
50 extends of 8MB each will be close to 400MB.
upvoted 3 times
kitkat
5 days, 8 hours 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 2 times
...
...
...
kenkct
3 months, 2 weeks 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 2 times
...
vira5489
6 months, 3 weeks 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 months, 2 weeks 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 3 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago