Tuesday, June 28, 2011

Extending LVM in Suse 11

1. Add virtual disk with required space in Vmware for virtual server or physical disk on a physical server
2. Reboot the server
3. Run #fdisk /dev/sdc (new hard drive)
4. Type m for help
5. Type “v” existing volumes (should be none)
6. Type “n” for new partition
7. Type “p” for primary partition
8. Select all defaults
9. Type “w” for save and exit
10. It will create Linux native partition. You can create same partition using “partitioner” in yast2
11. Run this command to create physical volume # pvcreate /dev/sdc1
12. Run “pvdisplay” to see physical volumes
13. Now you can extend existing volume group using # vgextend soa /dev/sdc1. Here soa is the existing volume group.
14. The above step extends the volume group by adding new physical volume.
15. Now you can resize or extend the existing mount points or volumes on volume group using “partitioner” in yast2.
16. In yast2 click partitioner - click volume group “soa”
17. It will show the existing volumes on “soa”. Now select each volume and click resize button to extend volume.
Here is the link for more info:
http://www.faqs.org/docs/Linux-HOWTO/LVM-HOWTO.html#AEN546

Have a nice day!

No comments:

Post a Comment