Operating System - HP-UX
1834647 Members
2139 Online
110069 Solutions
New Discussion

mirror vg00 to bigger disk

 
SOLVED
Go to solution
Elif Gius
Valued Contributor

mirror vg00 to bigger disk

Hi,

I have a server with a 16 GB root disk (mirrored to another 16GB disk).
There is no more space left on this disk. But I need more.
I have 2x 36 GB disks. So I want to change in a simple procedure the "old" 16 GB disks against the 36 GB disks(and copy my data) Is there a practical procedure to do this?
9 REPLIES 9

Re: mirror vg00 to bigger disk

That depends on how your disks are set up right now.

Can you post the output of 'vgdisplay vg00'

The key figures are PE size and Max PE per PV. If the product of these two figures is not 36GB , then you will not be able to use all of the 36GB disk - which means rebuilding the box using Ignite...

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Robert-Jan Goossens
Honored Contributor

Re: mirror vg00 to bigger disk

Hi Elif

The problem is the "max pe per pv" in your volume group configuration.

# vgdisplay -v vg00
--- Volume groups ---
VG Name /dev/vg00
Max PE per PV 2500
PE Size (Mbytes) 4

Above will limit your new disks to 10 GB. In your case it will be something like 18 GB.

The easiest solution is to create a bootable backup tape (Ignite) and restore your vg00 volume group to larger disks.

Best regards,
Robert-Jan
Naveej.K.A
Honored Contributor

Re: mirror vg00 to bigger disk

If its s a root disk??

Take Ignite backup using make_tape_recovery and install on the new hard disk after modifying the file system sizes.
and then mirror the disks.

Data disk??
Do you have free slots to install the hard disks??

Install the hard disk.
Create PVs.
Create VGs.
Create LVs.
Mirror LVs.
Create FS.
Mount FS.
Copy data from 16GB Mirror.

Regards,
Naveej

practice makes a man perfect!!!
Pete Randall
Outstanding Contributor

Re: mirror vg00 to bigger disk

The fact that you need more than 16 GB in your root disk tells me that you've got data mixed in with your root VG. You should be looking at getting the data out of vg00 and into another VG. Make a vg01 with your 36GB disks and move the data out of vg00 onto your new vg01.


Pete

Pete
Elif Gius
Valued Contributor

Re: mirror vg00 to bigger disk

I know that the problem will be MAX PEs per PV.
But any ideas?
The server is a A500.

Thanks for your replies.

VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 14
Open LV 14
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4350
VGDA 4
PE Size (Mbytes) 4
Total PE 8680
Alloc PE 8680
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
Pete Randall
Outstanding Contributor
Solution

Re: mirror vg00 to bigger disk

If you don't want to move the data out of vg00 (which you really should), then you need to make an Ignite make_tape_recovery backup (make_tape_recovery -a /dev/rmt/Xmn -i -v -x inc_entire=vg00). Then boot your server and interact with the restore process to select one of your 36GB disks for use as vg00, specify your logical volume layout and finish the restore, then re-establish your mirrors to the other 36GB disk.


Pete

Pete
Elif Gius
Valued Contributor

Re: mirror vg00 to bigger disk

I will try this ... I hope it works.
thanks for your answers.
Bye
Devender Khatana
Honored Contributor

Re: mirror vg00 to bigger disk

Hi,

There is no reason why it should not work. Just take a little precaution to change auto detected VG parameters so that you are not required to do it this way again when you again upgrade your OS disks. I mean to say increase MAX PE Per PV and/or PE_Size Parameters.


HTH,
Devender
Impossible itself mentions "I m possible"
Darrel Louis
Honored Contributor

Re: mirror vg00 to bigger disk

Elif,

You can also try the following, but always make a good backup before starting.
* Ignite
* FullBackup

See attachment.

Darrel