هذا الجزء لم يُترجم بعد. أنت ترى النص الإنجليزي.
الهدف
Build a volume group with a fixed extent size and two logical volumes that are mounted at every boot.
قبل أن تبدأ
- You need an empty disk of at least 5 GiB (in this lab
/dev/vdc; check withlsblk). Work as root.
المهام
ضع علامة على المهمة عندما تنتهي منها. متصفحك فقط يتذكر ذلك.
- Create a partition of 4 GiB of the type LVM on the disk and make it a physical volume.
- Create the volume group
vgfileswith an extent size of 8 MiB. - Create the logical volume
lvfileswith exactly 50 extents. Format it with XFS and mount it on/filesat every boot. - Create the logical volume
lvdocswith the rest of the free space. Format it with ext4 and mount it on/docsat every boot. - Show the size of
lvfilesin MiB and the PE size of the VG.
تحقّق من عملك
تلميحات
اعرض التلميحات
- fdisk type alias:
lvm. vgcreate -s 8M,lvcreate -l 50,lvcreate -l 100%FREE.- In fstab use
/dev/vgfiles/lvfiles.
الحل
اعرض الحل
- Partition and PV.
- VG with 8 MiB extents.
vgcreate -s 8M vgfiles /dev/vdc1 - lvfiles with 50 extents, XFS, fstab.
- lvdocs with the rest, ext4, fstab.
- Sizes.
ملاحظاتي
لا توجد ملاحظات بعد.