- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: How to extend pv?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2005 02:34 AM
тАО04-15-2005 02:34 AM
I've created physical volume by pvcreate in time when I had 6 disks in HW RAID. Total amount was about 135GB. Later I've added 4 more disks and pvdisplay can see only original 135GB. Is there any way how to extend pv? I mean instead of backup, pvcreate, vgcreate, lvcreate and restore.
Is on SLES7 and IBM EXP300 storage expansion unit.
Any advice is appreciated.
regards,
Andrej
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2005 04:52 AM
тАО04-15-2005 04:52 AM
Re: How to extend pv?
There is not a command to pvextend. You can pvcreate to tell the OS that these disks are part of LVM config. You can do vgextend to put these disks in the same volume group.
The pvcreate command is destructive so make sure you are working with the correct disks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2005 11:44 AM
тАО04-15-2005 11:44 AM
Re: How to extend pv?
*mumbles 'cause Rick got there first*
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2005 06:15 PM
тАО04-17-2005 06:15 PM
Re: How to extend pv?
vgextend
lvextend < if you need to extend an existing volume group>
extendfs < to extend the current filesystem >
pvcreate is not going to hurt any new disks.
The reason you probably don't recognize the size thats available is because the vgcreate command did not accomodate the current configuration.
To fix that, you have to vgexport the current volume group and re-run the vgcreate command. If in that command you limit the number of physical volumes to significantly less than 255, the maximum, more space will be able to be allocated on existing volume groups.
I can provide specific commands on Monday when I regain access to an HP-UX server.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2005 06:47 PM
тАО04-17-2005 06:47 PM
Re: How to extend pv?
Can you please provide more details on suggested solution? Are the existing data going to be lost?
Thanks,
Andrej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-17-2005 07:49 PM
тАО04-17-2005 07:49 PM
SolutionIf you are at all unsure about what you are doing, standard rule of thumb. Back it up first!
With the 4 disks you added to the RAID container, has the existing RAID container been expanded?
If so, have you created new partitions on the existing container? Or has the new disks been added as a new container?
You create PV's under Linux on filesystems that have been created, or whole physical (or RAID logical) device.
So first step I guess.. What did you actually do with those new 4 disks?
Once you've created a PV with the new space, then you 'vgextend'.
'vgdisplay' will show:
--- Volume group ---
VG Name vgLocal
VG Access read/write
VG Status available/resizable
VG # 0
MAX LV 256
Cur LV 3
Open LV 3
MAX LV Size 255.99 GB
Max PV 256
Cur PV 1
Act PV 1
VG Size 107.88 GB
PE Size 4 MB
Total PE 27617
Alloc PE / Size 27617 / 107.88 GB
Free PE / Size 0 / 0
VG UUID 0sUVMR-PuRI-5Hd0-30m5-jeFl-LX2Q-6JnGGs
The 'PE' values (Physical Extents, which live on Physical Volumes) are how much of the PV's have not yet been assigned to a volume group.
.. I love LVM .. don't you ? :)
NOTES: As listed above, depending on what values for PE size the volume group is created with, depends on how big it can go. 4MB PE's can grow up to 256GB LV's.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2005 06:55 PM
тАО04-18-2005 06:55 PM
Re: How to extend pv?
sorry for bothering you. It was my mistake. I expected current partition extend somehow. fdisk is the right solution to create 8e partition on free space before playing with LVM.
Andrej