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
์ฌ๊ธฐ์์ ์นด๋๋ฅผ ์ดํด๋ณด๊ฑฐ๋ ๊ฐ์ ํ๊ณ ๊ฐ๊ฒฉ ๋ฐ๋ณต ํ์ต ์์ํ๊ธฐ.
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.์ ๋ง ์ญ์ ํ์๊ฒ ์ด์? 0 ํ๋์์นด๋๋ฅผ ์ญ์ ํ๋ฉด ๋๋๋ฆด ์ ์์ต๋๋ค.
์ ๊ฑฐํ ํ๊ทธ๋ฅผ ์ ํํ์ธ์: 0 ์ ํ๋ ํ๋์์นด๋:
ํ๊ทธ ๋ก๋ฉ ์ค...