exam questions

Exam EX200 All Questions

View all questions & answers for the EX200 exam

Exam EX200 topic 1 question 93 discussion

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

SIMULATION -
Create a volume group, and set the size is 500M, the size of single PE is 16M. Create logical volume named lv0 in this volume group, set size is 20 PE, make it as ext3 file system, and mounted automatically under data.

Show Suggested Answer Hide Answer
Suggested Answer: See explanation below.
fdisk /dev/vda
pvcreate /dev/vda3
vgcreate ג€"s 16M vg0 /dev/vda3
lvcreate ג€"n lv0 ג€"l 20 vg0
mkfs.ext3 /dev/mapper/vg0-lv0
mkdir /data
/etc/fstab:
/dev/mapper/vg0-lv0 /data ext3 defaults 0 0
mount ג€"a
mount | grep data

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
ly01
4 months, 3 weeks ago
sudo gdisk /dev/sdc sudo partprobe sudo pvcreate /dev/sdc4 sudo vgcreate vg0 --physicalextentsize 16M /dev/sdc4 sudo lvcreate vg0 --extents 20 --name lv0 sudo lvdisplay sudo mkfs.ext3 /dev/mapper/vg0-lv0 sudo mkdir /dataz tail -n1 /etc/fstab /dev/mapper/vg0-lv0 /dataz ext3 defaults 0 0 sudo systemctl daemon-reload sudo mount -a sudo findmnt | grep dataz
upvoted 1 times
...
gaven186
5 months ago
'vgcreate -s' is to specify the size of 'Physical Extent' of 16M, not the total disk size. 'lvcreate -l' specify 20 units of the extents, the requirement says LV named as 'lv0'. after LV has created, there is no '/dev/mapper/'.
upvoted 1 times
...
PENNSHARK
10 months, 3 weeks ago
pvcreate /dev/nvme1n1 vgcreate -s 500M VGEX /dev/nvme1n1 lvcreate -n lvex -L 320M VGEX mkfs.ext3 /dev/VGEX/lvex mkdir /mnt/data echo “/dev/mapper/VGEX-lvex /mnt/data ext3 defaults 0 0” >> /etc/fstab mount -a mount
upvoted 1 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 ...