LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 08-27-2009, 09:50 AM   #1
vbharath01
LQ Newbie
 
Registered: Jul 2009
Posts: 7

Rep: Reputation: 0
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.
 
Old 08-27-2009, 11:44 AM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Items to review:
  • 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.)
 
Old 08-27-2009, 12:27 PM   #3
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

You can consult this easy to read Guide to LVM. It contains all the commands needed, examples and much more.

Kind regards,

Eric
 
Old 08-28-2009, 01:43 AM   #4
vbharath01
LQ Newbie
 
Registered: Jul 2009
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
Old 08-28-2009, 02:22 AM   #5
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

Can you (re) post output of following commands, but include them in CODE tags please (the # mark on the icon bar in the editor window).
Code:
fdisk -l
Code:
pvdisplay
Code:
vgdisplay
Code:
lvdisplay
That way we get a clear (and readable) view of your current setup.

Kind regards,

Eric
 
Old 08-28-2009, 05:36 AM   #6
vbharath01
LQ Newbie
 
Registered: Jul 2009
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
Old 08-28-2009, 05:39 AM   #7
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Good job! Mark your thread as SOLVED using the thread tools please.

Kind regards,

Eric
 
Old 09-12-2009, 06:47 PM   #8
emrebilmuh
LQ Newbie
 
Registered: Sep 2009
Distribution: RHEL, Centos, Pardus, OpenSuse, Unslung, Ubuntu
Posts: 15

Rep: Reputation: 1
Quote:
Originally Posted by vbharath01 View Post
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...

Sorry for my curiousness
 
Old 09-13-2009, 03:37 AM   #9
vbharath01
LQ Newbie
 
Registered: Jul 2009
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
Old 09-14-2009, 08:32 AM   #10
emrebilmuh
LQ Newbie
 
Registered: Sep 2009
Distribution: RHEL, Centos, Pardus, OpenSuse, Unslung, Ubuntu
Posts: 15

Rep: Reputation: 1
Lightbulb

Quote:
Originally Posted by emrebilmuh View Post
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...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lvm: PE size, number of stripes and stripe size considerations tramni1980 Slackware 1 08-07-2009 10:19 AM
Can I increase the size of a physical volume in an lvm group? If so, how? MikeB23930 Fedora 2 07-21-2009 05:38 PM
How to increase swap size in LVM? Akhran Debian 1 04-04-2006 09:47 AM
Increase EXT3 Filesystem size in a LVM? jadupl2 Red Hat 3 11-14-2004 08:40 PM
increase point size size when printing PDF files newlin Red Hat 0 09-27-2003 07:13 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 09:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration