[SOLVED] how to increase the size of LVM which used by multipathd...
Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
how to increase the size of LVM which used by multipathd...
we r using RHEL 5. mount the SAN Partition in RHEL5 using multipathd.
LUN size was 5 GB. now the SAN Admin increased that LUN to 10 GB. but its not updated in RHEL5. when we put fdisk -l the size was only 5 GB.
i want to know how to update that Size and how to increase that VG from 5 GB to 15 GB without affecting the data.
To add a physical volume to a VG, see the manpages for vgextend(8).
To add size to a LV, see the manpages for lvextend(8).
To grow a filesystem to fill up a resized LV, see the filesystem's documentation. (On RHEL4, ext2online(8) was used for ext2 filesystems; not sure off the top of my head for RHEL5.)
we increased the size in the Same lun. after restartign the server it gets reflected in that disk. but pvdisplay shows only 4gb. now how to increase the vg. is it possible to increase the vg.
[root@domclust2 ~]# fdisk -l
Disk /dev/sda: 36.4 GB, 36401479680 bytes
255 heads, 63 sectors/track, 4425 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 4425 35439390 8e Linux LVM
Disk /dev/sdb: 15.0 GB, 15032385536 bytes
64 heads, 32 sectors/track, 14336 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Disk /dev/sdb doesn't contain a valid partition table
Disk /dev/sdc: 15.0 GB, 15032385536 bytes
64 heads, 32 sectors/track, 14336 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Disk /dev/sdc doesn't contain a valid partition table
Disk /dev/dm-2: 15.0 GB, 15032385536 bytes
255 heads, 63 sectors/track, 1827 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-2 doesn't contain a valid partition table
thanks to everyone the problem was solved when we use the pvresize the new size gets updated in the PV and VG. then we extend the lv by using lvextend.
thanks to everyone the problem was solved when we use the pvresize the new size gets updated in the PV and VG. then we extend the lv by using lvextend.
Hey!
I didn't try it yet and wonder... Did this operation reflected any of your data residing your physical volume with the old lun size?
And i'm wondering 1 thing more... Why did you find increasing lun size at the storage level usefull? Is it an ASM disk? I don't find it usefull to change the size at the storage level because if you would need to decrease the size, you will see that very dangerous...
our data is ok. nothing lost. may be if we decrease the size our will be lost. but sofar in our test environment we didnt try decreasing the size of a LUN.
Why did you find increasing lun size at the storage level usefull? Is it an ASM disk? I don't find it usefull to change the size at the storage level because if you would need to decrease the size, you will see that very dangerous...
sorry i really wonder why is this method usefull...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.