[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

LVM-Frage: VG verkleinern?



Hi,

ich habe folgende Situation:

Eine VG mit nur 1 PV enthält 3 LVs, die insgesamt ca. 50 GB groß sind.
Dennoch belegt die VG 150 GB! Davon hätte ich gerne etwas abgezwackt!

vgreduce entfernt offenbar nur PVs, lvreduce verkleinert einzelne LVs.

Wie kann ich einfach die ganze VG (es ist die einzige) zusammenzurren?

ii  lvm-common                  1.5.15         
ii  lvm10                       1.0.8

#lvscan
lvscan -- ACTIVE            "/dev/vg_system/var" [12.16 GB]
lvscan -- ACTIVE            "/dev/vg_system/usr" [31.50 GB]
lvscan -- ACTIVE            "/dev/vg_system/swap" [1.75 GB]
lvscan -- 3 logical volumes with 45.41 GB total in 1 volume group
lvscan -- 3 active logical volumes

# vgdisplay /dev/vg_system
--- Volume group ---
VG Name               vg_system
VG Access             read/write
VG Status             available/resizable
VG #                  0
MAX LV                256
Cur LV                3
Open LV               3
MAX LV Size           2 TB
Max PV                256
Cur PV                1
Act PV                1
VG Size               110 GB
PE Size               32 MB
Total PE              3520
Alloc PE / Size       1453 / 45.41 GB
Free  PE / Size       2067 / 64.59 GB
^^
kann ich einfach in der Partitionstabelle hda6 verkleinern: ?

Disk /dev/scsi/host0/bus0/target0/lun0/disc: 120.0 GB, 120033075200 
bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device             Boot Start      End    Blocks   Id  System
/dev/scsi/lun0/part1 *     1       130   1044193+  83  Linux
/dev/scsi/lun0/part2     131     14593 116174047+   f  Win95 Ext'd (LBA)
/dev/scsi/lun0/part5     131     14497 115402896   8e  Linux LVM



Reply to: