Operating System - HP-UX
1831708 Members
2850 Online
110029 Solutions
New Discussion

Expanding disk size into a larger disk

 
SOLVED
Go to solution
Ken Hunter
Advisor

Expanding disk size into a larger disk

I have an HPUX 10.20 O/S that was built on an 18gb disk - using the LVM/JFS for all partitions except /stand.

I used the DD utility to clone this disk onto a 36gb disk. The 36gb disk boots up, runs, etc. When looking at the 36gb disk thru the logical volume utilities, it still appears sized as an 18gb disk - I expected this.

How do I edit the LVM info (max extents?, etc) to make the LVM 'see' all the available space on the 36gb disk?

(no - I don't want to use ignite to clone the o/s)

thanks in advance,

Ken :)
Lead, Follow, or Get out of the Way! - USMC
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: Expanding disk size into a larger disk

Hi Ken:

Sorry, you can't. 'max_pe' is fixed during volume creation and cannot be changed. It defaults to 1016 or the largest disk used to create the volume group (vgcreate).

...JRF...
Bill McNAMARA_1
Honored Contributor

Re: Expanding disk size into a larger disk

James is right. This is not possible with LVM.

I have however seen someone do it.. via a pvcreate and vgcreate vg00 again then restore lv structures around the file systems, but this is real risky, especially if there is bad blocks on the disk and relocation took place.

So, straight answer is no unfortunately.

Bill
It works for me (tm)
Patrick Wallek
Honored Contributor
Solution

Re: Expanding disk size into a larger disk

Ken,

As I see it you've got 2 options if you want to keep the OS on that specific disk:

1) Use Ignite/UX to make a tape, boot from the tape, modify the VG information so it sees the full 36 GB, let Ignite finish the install, and you've now got all space available.

2) Live with using half of the disk.

There is a procedure that was posted a couple of times that was a good disk copy procedure that would also work for you if you want to do the dd again. Have a look at Peggy Fong's response in the following thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xa1c6d06ed8c8d4118fef0090279cd0f9,00.html

Ken Hunter
Advisor

Re: Expanding disk size into a larger disk

Udate:

Thanks Patrick. I did visit Peggy Fong's reponse. That looks like it might be a winner. I am gonna try to take that and 'script'ize it for use in our shop.

thanks again
Lead, Follow, or Get out of the Way! - USMC
Mike Spencer
Occasional Advisor

Re: Expanding disk size into a larger disk

I have a similar situation. I have read all related posts (that I can find) in the forum, but haven't found a complete non-ignite solution. I realize ignite is the preferred method, but I'm curious to know if there is a similar one for "dd".

There was a reference to a Peggy Fong post that sounds like it might be what I'm looking for, but for some reason that link is inaccessible.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xa1c6d06ed8c8d4118fef0090279cd0f9,00.html

I have already dd'ed my boot disk to a larger counterpart and re-imported vg00, specifying the new device. I have also re-defined the Boot Data Area. The remaining issue, as I understand it, is that the max_pe is set for the old drive. Since this is set during the vgcreate, it can't be modified without dismantling vg00.

Does anyone have a method for resolving this problem and/or can you provide me with Peggy Fong's post (referenced above)?