هذا الجزء لم يُترجم بعد. أنت ترى النص الإنجليزي.
ماذا يفعل
vgextend VG PV... adds new space to a VG while everything runs. Devices that are not PVs yet are initialized for you. vgreduce VG PV removes a PV — it must be empty first (pvmove moves its data to the other PVs).
طريقة الكتابة
vgextend [OPTION]... VG PV...
vgreduce [OPTION]... VG PV...
vgreduce --removemissing VGالخيارات 20
الأكثر استخدامًا
vgextend
vgreduce
Common LVM options
لا يوجد شيء يطابق هذا الفلتر.
أمثلة 10
$ مستخدم عادي# بصلاحية root (أو مع sudo)
1Add a disk to a VG
vgextend vgdata /dev/vdd Volume group "vgdata" successfully extendedThe new space is free for LVs at once.
2Check the new size
vgs vgdataVFree is bigger.
3Then grow an LV
lvextend -r -l +100%FREE /dev/vgdata/lvdataUses all new space.
4Remove a disk from a VG
pvmove /dev/vdc vgreduce vgdata /dev/vdcpvmove first; vgreduce refuses PVs in use.
5Remove all empty PVs
vgreduce -a vgdataCleans unused disks out of the VG.
6A disk died
vgreduce --removemissing vgdataLets the VG work again; LVs on that disk are lost (use --force to drop them).
7Test before
vgreduce -t vgdata /dev/vdcShows what would happen.
8Replace an old disk with a new one (no downtime)
vgextend vgdata /dev/vde; pvmove /dev/vdc /dev/vde; vgreduce vgdata /dev/vdcClassic migration to new storage.
9Wipe the removed disk
pvremove /dev/vdcRemoves the LVM label.
10Check which PVs are empty
pvs -o pv_name,vg_name,pv_usedpv_used 0 = can be removed.
لا يوجد شيء يطابق هذا الفلتر.
رموز الخروج
0 | Done. |
5 | Error. |