What are the three layers of LVM architecture?
Browse your cards here, or sign up to study with spaced repetition.
Which command creates a physical volume?
pvcreate /dev/sdb1
Browse your cards here, or sign up to study with spaced repetition.
Which command shows brief physical volume information?
pvs
Browse your cards here, or sign up to study with spaced repetition.
What command creates a volume group named vgdata?
vgcreate vgdata /dev/sdb1
Browse your cards here, or sign up to study with spaced repetition.
Which command extends a volume group with a new PV?
vgextend vgname /dev/sdc1
Browse your cards here, or sign up to study with spaced repetition.
What command shows brief volume group information?
vgs
Browse your cards here, or sign up to study with spaced repetition.
How to create a 2GB logical volume named lvdata?
lvcreate -L 2G -n lvdata vgname
Browse your cards here, or sign up to study with spaced repetition.
Which command creates an LV using all free space in VG?
lvcreate -l 100%FREE -n lvname vgname
Browse your cards here, or sign up to study with spaced repetition.
How to extend a logical volume by 1GB?
lvextend -L +1G /dev/vgname/lvname
Browse your cards here, or sign up to study with spaced repetition.
How to extend an XFS filesystem after extending LV?
xfs_growfs /mount/point
Browse your cards here, or sign up to study with spaced repetition.
What command extends an ext4 filesystem after LV extension?
resize2fs /dev/vgname/lvname
Browse your cards here, or sign up to study with spaced repetition.
Can you reduce an XFS filesystem?
No, XFS filesystems cannot be reduced, only extended.
Browse your cards here, or sign up to study with spaced repetition.
What must you do before reducing an ext4 filesystem?
Unmount the filesystem and check it with e2fsck -f.
Browse your cards here, or sign up to study with spaced repetition.
What is the correct order for reducing ext4?
Browse your cards here, or sign up to study with spaced repetition.
How to create an LVM snapshot?
lvcreate -L 1G -s -n snapname /dev/vgname/lvname
Browse your cards here, or sign up to study with spaced repetition.
What partition type code is used for LVM in fdisk?
8e (Linux LVM) or type 31 in newer versions.
Browse your cards here, or sign up to study with spaced repetition.
Which command displays detailed logical volume information?
lvdisplay
Browse your cards here, or sign up to study with spaced repetition.
What is RAID 0?
Striping improves performance but no redundancy, minimum 2 disks.
Browse your cards here, or sign up to study with spaced repetition.
What is RAID 1?
Mirroring provides redundancy, minimum 2 disks.
Browse your cards here, or sign up to study with spaced repetition.
What is RAID 5?
Striping with parity redundancy + performance, minimum 3 disks, can lose 1 disk.
Browse your cards here, or sign up to study with spaced repetition.
How to create a RAID 1 array?
mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sdb1 /dev/sdc1
Browse your cards here, or sign up to study with spaced repetition.
Which file shows current RAID status?
/proc/mdstat or use cat /proc/mdstat.
Browse your cards here, or sign up to study with spaced repetition.
Which command shows detailed RAID information?
mdadm --detail /dev/md0
Browse your cards here, or sign up to study with spaced repetition.
Where should RAID configuration be saved for persistence?
/etc/mdadm.conf using mdadm --detail --scan >> /etc/mdadm.conf.
Browse your cards here, or sign up to study with spaced repetition.
How to create a Stratis pool?
stratis pool create poolname /dev/sdb
Browse your cards here, or sign up to study with spaced repetition.
What command creates a Stratis filesystem?
stratis filesystem create poolname fsname
Browse your cards here, or sign up to study with spaced repetition.
Where are Stratis filesystems mounted from?
/stratis/poolname/fsname
Browse your cards here, or sign up to study with spaced repetition.
What service must be running for Stratis?
stratisd service
Browse your cards here, or sign up to study with spaced repetition.
What option in /etc/fstab ensures Stratis mounts correctly?
x-systemd.requires=stratisd.service
Browse your cards here, or sign up to study with spaced repetition.
What command merges an LVM snapshot back to original?
lvconvert --merge /dev/vgname/snapname
Browse your cards here, or sign up to study with spaced repetition.
What are the three layers of LVM architecture?
Which command creates a physical volume?
pvcreate /dev/sdb1
Which command shows brief physical volume information?
pvs
What command creates a volume group named vgdata?
vgcreate vgdata /dev/sdb1
Which command extends a volume group with a new PV?
vgextend vgname /dev/sdc1
What command shows brief volume group information?
vgs
How to create a 2GB logical volume named lvdata?
lvcreate -L 2G -n lvdata vgname
Which command creates an LV using all free space in VG?
lvcreate -l 100%FREE -n lvname vgname
How to extend a logical volume by 1GB?
lvextend -L +1G /dev/vgname/lvname
How to extend an XFS filesystem after extending LV?
xfs_growfs /mount/point
What command extends an ext4 filesystem after LV extension?
resize2fs /dev/vgname/lvname
Can you reduce an XFS filesystem?
No, XFS filesystems cannot be reduced, only extended.
What must you do before reducing an ext4 filesystem?
Unmount the filesystem and check it with e2fsck -f.
What is the correct order for reducing ext4?
How to create an LVM snapshot?
lvcreate -L 1G -s -n snapname /dev/vgname/lvname
What partition type code is used for LVM in fdisk?
8e (Linux LVM) or type 31 in newer versions.
Which command displays detailed logical volume information?
lvdisplay
What is RAID 0?
Striping improves performance but no redundancy, minimum 2 disks.
What is RAID 1?
Mirroring provides redundancy, minimum 2 disks.
What is RAID 5?
Striping with parity redundancy + performance, minimum 3 disks, can lose 1 disk.
How to create a RAID 1 array?
mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sdb1 /dev/sdc1
Which file shows current RAID status?
/proc/mdstat or use cat /proc/mdstat.
Which command shows detailed RAID information?
mdadm --detail /dev/md0
Where should RAID configuration be saved for persistence?
/etc/mdadm.conf using mdadm --detail --scan >> /etc/mdadm.conf.
How to create a Stratis pool?
stratis pool create poolname /dev/sdb
What command creates a Stratis filesystem?
stratis filesystem create poolname fsname
Where are Stratis filesystems mounted from?
/stratis/poolname/fsname
What service must be running for Stratis?
stratisd service
What option in /etc/fstab ensures Stratis mounts correctly?
x-systemd.requires=stratisd.service
What command merges an LVM snapshot back to original?
lvconvert --merge /dev/vgname/snapname
pvcreate /dev/sdb1pvsvgcreate vgdata /dev/sdb1vgextend vgname /dev/sdc1vgslvcreate -L 2G -n lvdata vgnamelvcreate -l 100%FREE -n lvname vgnamelvextend -L +1G /dev/vgname/lvnamexfs_growfs /mount/pointresize2fs /dev/vgname/lvnamee2fsck -f.lvcreate -L 1G -s -n snapname /dev/vgname/lvnamelvconvert --merge /dev/vgname/snapnamelvdisplaymdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sdb1 /dev/sdc1cat /proc/mdstatmdadm --detail /dev/md0mdadm --detail --scan >> /etc/mdadm.confstratis pool create poolname /dev/sdbstratis filesystem create poolname fsname/stratis/poolname/fsnamestratisd service is running.x-systemd.requires=stratisd.service ensures correct mounting.Are you sure you want to delete 0 flashcard(s)? This cannot be undone.
Select tags to remove from 0 selected flashcard(s):
Loading tags...