Question 1easymultiple choice
Read the full Create and configure file systems explanation →EX200 Create and configure file systems • Complete Question Bank
Complete EX200 Create and configure file systems question bank — all 0 questions with answers and detailed explanations.
Refer to the exhibit. # cat /etc/fstab UUID=1234-5678 /boot xfs defaults 0 0 UUID=abcd-ef01 / ext4 defaults 1 1 UUID=9876-5432 /var ext4 defaults 1 2 192.168.1.100:/exports/data /mnt/data nfs4 defaults,_netdev 0 0 # mount -a mount: /mnt/data: can't find in /etc/fstab. # ls -la /mnt/data total 0 drwxr-xr-x. 2 root root 6 Jan 1 00:00 . drwxr-xr-x. 1 root root 0 Jan 1 00:00 ..
Refer to the exhibit. # lsblk /dev/sdb NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sdb 8:16 0 20G 0 disk ├─sdb1 8:17 0 2G 0 part ├─sdb2 8:18 0 2G 0 part └─sdb3 8:19 0 16G 0 part # blkid /dev/sdb1 /dev/sdb1: UUID="abc123" TYPE="xfs" # blkid /dev/sdb2 /dev/sdb2: UUID="def456" TYPE="ext4" # blkid /dev/sdb3 /dev/sdb3: UUID="ghi789" TYPE="swap"
Drag steps to the numbered slots on the right, or tap a step then tap a slot.
Drag a concept onto its matching description — or click a concept then click the description.
Partition table manipulator for MBR and GPT
Create a volume group in LVM
Create an ext4 file system on a partition
Attach a file system to a directory
Refer to the exhibit.
Output of 'df -hT':
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda1 xfs 2.0G 1.2G 800M 60% /boot
/dev/mapper/vg00-root
ext4 20G 15G 5.0G 75% /
/dev/mapper/vg00-var
ext4 30G 25G 5.0G 83% /var
/dev/mapper/vg00-tmp
ext4,noexec 5.0G 2.0G 3.0G 40% /tmp
/dev/sdb1 ext4 500G 200G 300G 40% /dataRefer to the exhibit. Output of 'pvscan' and 'vgdisplay': PV /dev/sda2 VG vg00 lvm2 [19.99 GiB / 0 free] PV /dev/sdb1 VG vg00 lvm2 [19.99 GiB / 19.99 GiB free] Total: 2 [39.98 GiB] / in use: 2 [39.98 GiB] / in no VG: 0 [0 ] --- Volume group --- VG Name vg00 System ID Format lvm2 Metadata Areas 2 Metadata Sequence No 6 VG Access read/write VG Status resizable MAX LV 0 Cur LV 3 Open LV 3 Max PV 0 Cur PV 2 Act PV 2 VG Size 39.98 GiB PE Size 4.00 MiB Total PE 10235 Alloc PE / Size 5120 / 20.00 GiB Free PE / Size 5115 / 19.98 GiB VG UUID abcd1234
Refer to the exhibit. Contents of /etc/fstab: # /etc/fstab # Created by anaconda on Tue Feb 13 10:30:06 2024 # UUID=12345678-1234-1234-1234-123456789abc / ext4 defaults 1 1 UUID=deadbeef-cafe-babe-0000-000000000000 none swap defaults 0 0 UUID=abcdef01-2345-6789-abcd-ef0123456789 /boot ext4 defaults 1 2 /dev/mapper/vg00-home /home ext4 defaults 1 2
Refer to the exhibit. # df -hT /mnt/data Filesystem Type Size Used Avail Use% Mounted on /dev/mapper/vg00-lvol0 xfs 50G 30G 20G 60% /mnt/data
Refer to the exhibit. # tune2fs -l /dev/sda1 | grep -i block Block size: 4096
Refer to the exhibit. $ df -hT Filesystem Type Size Used Avail Use% Mounted on /dev/mapper/vg_root-lv_root xfs 20G 18G 2G 90% / /dev/sda1 xfs 1014M 173M 842M 17% /boot
Refer to the exhibit. $ mount | grep /mnt/data /dev/sdb1 on /mnt/data type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
Refer to the exhibit. $ lsblk -f NAME FSTYPE LABEL UUID MOUNTPOINT sda ├─sda1 xfs abcdef12-3456-7890-abcd-ef1234567890 /boot ├─sda2 swap 12345678-... [SWAP] └─sda3 LVM2_member ... / sdb └─sdb1
Refer to the exhibit. ``` $ cat /etc/fstab /dev/mapper/rhel-root / xfs defaults 0 0 UUID=1234-5678 /boot xfs defaults 0 0 /dev/sdb1 /mydata ext4 defaults 0 0 ``` The /mydata directory does not exist on the system.
# lsblk /dev/sdb NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sdb 8:16 0 10G 0 disk ├─sdb1 8:17 0 2G 0 part ├─sdb2 8:18 0 2G 0 part └─sdb3 8:19 0 6G 0 part # vgdisplay --- Volume group --- VG Name vg_data System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 2 VG Access read/write VG Status resizable MAX LV 0 Cur LV 1 Open LV 1 Max PV 0 Cur PV 1 Act PV 1 VG Size 5.99 GiB PE Size 4.00 MiB Total PE 1534 Alloc PE / Size 1024 / 4.00 GiB Free PE / Size 510 / 1.99 GiB VG UUID abc123-def456-ghi789 # lvdisplay --- Logical volume --- LV Path /dev/vg_data/lv_data LV Name lv_data VG Name vg_data LV UUID lmn456-opq789-rst012 LV Write Access read/write LV Creation host, time server1, 2023-01-01 00:00:00 +0000 LV Status available # open 1 LV Size 4.00 GiB Current LE 1024 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:0
# mount | grep sda1 /dev/sda1 on /boot type xfs (rw,relatime,seclabel,attr2,inode64,noquota) # cat /etc/fstab /dev/mapper/rhel-root / xfs defaults 0 0 UUID=12345678-1234-1234-1234-123456789abc /boot xfs defaults 0 0 /dev/mapper/rhel-swap swap swap defaults 0 0 # blkid /dev/sda1 /dev/sda1: UUID="12345678-1234-1234-1234-123456789abc" TYPE="xfs"
# df -h /data
Filesystem Size Used Avail Use% Mounted on
/dev/sdc1 9.8G 5.0G 4.8G 51% /data
# xfs_info /dev/sdc1
meta-data=/dev/sdc1 isize=512 agcount=4, agsize=655360 blk
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=1, sparse=1, rmapbt=0
= reflink=1
data = bsize=4096 blocks=2621440, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0, ftype=1
log =internal bsize=4096 blocks=2560, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
reflink = noalign
# xfs_growfs /dev/sdc1
meta-data=/dev/sdc1 isize=512 agcount=4, agsize=655360 blk
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=1, sparse=1, rmapbt=0
= reflink=1
data = bsize=4096 blocks=2621440, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0, ftype=1
log =internal bsize=4096 blocks=2560, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
reflink = noalign
data blocks changed from 2621440 to 5242880# ls -l /dev/mapper/
total 0
crw-------. 1 root root 10, 236 Jan 1 00:00 control
lrwxrwxrwx. 1 root root 7 Jan 1 00:00 vg_data-lv_data -> ../dm-0
# vgextend vg_data /dev/sdb3
Volume group "vg_data" successfully extended
# lvextend -L +2G /dev/vg_data/lv_data
Size of logical volume vg_data/lv_data changed from 4.00 GiB (1024 extents) to 6.00 GiB (1536 extents).
Logical volume vg_data/lv_data successfully resized.
# xfs_growfs /data
meta-data=/dev/mapper/vg_data-lv_data isize=512 agcount=4, agsize=262144 blk
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=1, sparse=1, rmapbt=0
= reflink=1
data = bsize=4096 blocks=1048576, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0, ftype=1
log =internal bsize=4096 blocks=2560, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
reflink = noalign
data blocks changed from 1048576 to 1572864# mkfs.ext4 /dev/vg_data/lv_web mke2fs 1.45.6 (20-Mar-2020) Creating filesystem with 1048576 4k blocks and 262144 inodes Filesystem UUID: a1b2c3d4-e5f6-7890-abcd-ef1234567890 Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736 Allocating group tables: done Writing inode tables: done Creating journal (16384 blocks): done Writing superblocks and filesystem accounting information: done # mount /dev/vg_data/lv_web /var/www/html # df -h /var/www/html Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_data-lv_web 3.9G 16M 3.7G 1% /var/www/html # cat /etc/fstab | grep lv_web /dev/vg_data/lv_web /var/www/html ext4 defaults 0 0