Create and configure file systems Flashcards
Create an XFS file system on logical volume /dev/vg01/lv01 and configure a persistently mount to /data. Mount and then unmount to test.
mkfs -t xfs /dev/vg01/lv01 mkdir /data vim /etc/fstab (for persistent mount) Add line - /dev/vg01/lv01 /data xfs defaults 1 2 mount /data unmount /data
Create an EXT4 file system on logical volume /dev/vg01/lv01 and configure a persistently mount to /data. Mount and then unmount to test.
mkfs -t ext4 /dev/vg01/lv01 mkdir /data vim /etc/fstab (for persistent mount) Add line - /dev/vg01/lv01 /data ext4 defaults 1 2 mount /data unmount /data
Mount and unmount an NFS share on serverb called cards.
mkdir -p /data (mountpoint)
mount -t nfs -o rw,sync serverb:/cards /data
vim /etc/fstab (for persistent mount)
Add line - serverb:/cards /data nfs rw,soft 0 0
umount /data
Increase an logical volume /dev/vg01/lv01 by 300 MB.
vgdisplay vg01 (Verify VG has available space) lvextend -r -L +300M /dev/vg01/lv01
How do you add a setgid bit to a directory called data?
chmod g+s data
Set the setgid bit and add read/write/execute permissions for user and group, with no access
for others, on data
chmod 2770 data
How do you enable VDO (Virtual Disk Optimizer)?
Install the vdo and kmod-kvdo packages
yum install vdo kmod-kvdo
Create a 50GB VDO volume.
vdo create –name=vdo1 –device=/dev/vdd –vdoLogicalSize=50G
Display the status of all VDO volumes.
vdo status
Display the status of VDO volume named vdo1.
vdo status –name=vdo1
Display a list of VDO volumes that are currently started.
vdo list
How do you stop and start a VDO volume?
vdo stop –name=vdo1
vdo start –name =vdo1
Format VDO volume vdo1 with XFS filesystem, mount it to /mnt/vdo1 and verify it mounted.
mkfs.xfs -K /dev/mapper/vdo1
mkdir /mnt/vdo1
mount /dev/mapper/vdo1 /mnt/vdo1
mount
What command do you use to view the initial statistics and status of the VDO volume?
vdostats –human-readable
To use Stratis, what packages must be installed and what service needs to be running?
yum install stratis-cli stratisd
systemctl enable –now stratisd