exam questions

Exam EX200 All Questions

View all questions & answers for the EX200 exam

Exam EX200 topic 1 question 111 discussion

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

SIMULATION -
Create a new logical volume according to the following requirements:
The logical volume is named database and belongs to the datastore volume group and has a size of 50 extents.
Logical volumes in the datastore volume group should have an extent size of 16 MB.
Format the new logical volume with a ext3 filesystem.
The logical volume should be automatically mounted under /mnt/database at system boot time.

Show Suggested Answer Hide Answer
Suggested Answer: See explanation below.
fdisk -cu /dev/vda
partx -a /dev/vda
pvcreate /dev/vdax
vgcreate datastore /dev/vdax -s 16M
lvcreate-l 50 -n database datastore
mkfs.ext3 /dev/datastore/database
mkdir /mnt/database
mount /dev/datastore/database /mnt/database/ df -Th
vi /etc/fstab
/dev/datastore /database /mnt/database/ ext3 defaults 0 0 mount -a

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
loloski
4 months, 3 weeks ago
parted /dev/sdb mklabel msdos partprobe /dev/sdb parted /dev/sdb mkpart primary 1 900 set rm 1 lvm on pvcreate /dev/sdb1 vgcreate datastore -s 16M VG1 /dev/sdb1 lvcreate -l 50 -n database datastore mkfs -t ext3 /dev/mapper/datastore-database mkdir /mnt/database /dev/mapper/datastore-database /mnt/database ext3 defaults 0 0
upvoted 1 times
...
wizojlo
9 months, 1 week ago
#lsblk -pf (to check unused disks and partitions - let's say sda1 and sda2 are empty) #pvcreate /dev/sda1 /dev/sda2 #vgcreate -s 16M datastore /dev/sda1 /dev/sda2 #lvcreate -l 50 -n database datastore #mkfs.ext3 /dev/datastore/database #mkdir -p /mnt/database #lsblk -pf (to see the UUIDs) #echo 'UUID=XXX /mnt/data ext4 defaults 0 0' >> /etc/fstab (use real UUID of "database" volume from previous step instead of XXX) #systemctl daemon-reload #mount -a
upvoted 2 times
gaven186
5 months ago
view unused disk with 'lsblk -af'. -p means to Print the full device path, not sorting of unused.
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 ...