Hi,
This is my FS architecture
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
2.9G 2.1G 647M 77% /
/dev/mapper/VolGroup00-LogVol02
713M 56M 621M 9% /var
/dev/mapper/VolGroup00-LogVol03
248M 11M 226M 5% /home
/dev/sda1 99M 13M 82M 13% /boot
tmpfs 502M 0 502M 0% /dev/shm
I have extended VMDK file of RHEL-5 VM by 5GB. How can I extend VG/PV. When I checked pvdisplay it shows old disk size
What command I need to use in LINUX to extend the PV/VG
Is it possible?
Regards,
Nagu
You will need to use the LVM tools that came with your distribution. I would do a search for your Linux distribution for instructions. The Virtual machine is no different than a physical one.
Right. Follow distro istructions, or the LVM Howto (http://tldp.org/HOWTO/LVM-HOWTO/)
Andre
**if you found this or any other answer useful please consider allocating points for helpful or correct answers
LVM and it's tools are not sufficient.
If he really extended the disk, he would first need to resize/change the partition table.
The easier way (and more safely too), would be creating a new disk and adding it's space to the logical volume.
1. Make a backup
2. Use the tool of your choice to alter the partition table
3. use the resize-tool for lvm to resize the pv and lv
4. use the tool of your choice to extend your filesystem.
LVM was designed for extending volumes. It doesn't require anything like changing partition tables.
This is true, if one uses whole disks as pv...
The other poster is right. The easiest and probably best way would have been to add another vmdk, make it a PV, add it to the VG an dextend the LV.
However, if you must use the extended space, you may be able to create another partion using the new space, make it a
PV, then add it the the VG, then extend the LV. Just make sure you do
NOT stripe.
Don't forget to exend the filesystem once you've extended your LV. resize2fs for ext2/3 volumes.
None of this is ESXi related. I attempted to send the poster to where they should be looking for OS help.