Operating System - HP-UX
1753797 Members
7276 Online
108805 Solutions
New Discussion юеВ

Mirror Disk With Different Size Disks

 
Andrew Helgeson
New Member

Mirror Disk With Different Size Disks

I have an rp3440 with 2 internal 34 GB disks and 1 internal 70 GB disk. I'd like to configure the system such that the 2 smaller disks would be mirrored by the larger disk. They would all be in vg00 and I would be able to boot from either the original disk or the larger mirror disk. Is this possible?

Thanks.

Andy Helgeson
5 REPLIES 5
Patrick Wallek
Honored Contributor

Re: Mirror Disk With Different Size Disks

Yes, it is entirely possible as long as your "MAX PE PER PV" value in the VG is large enough to allow the 70GB disk to be fully utilized.

If you have a doubt about that then post or attach the output of 'vgdisplay -v vg00' and we'll let you know for sure.
IT_2007
Honored Contributor

Re: Mirror Disk With Different Size Disks

Yes you can mirror and boot it successfully. I have done this before.

Thanks,
Srini
A. Clay Stephenson
Acclaimed Contributor

Re: Mirror Disk With Different Size Disks

Possibly but probably not. Note that you do not mirror at the disk level but rather at the LVOL level so all 3 disks would have to be in vg00. The problem is that I doubt that you created vg00 with non-default max_pe's value and the VG has been sized to accomate the largest disk detected when the VG was created. This will, in effect, limit your 70GiB disk to 34GiB.

Now, you should whack yourself with a baseball bat because there is never a need for vg00 to be larger than 34GiB so you could have already had a mirrored vg00 using the 2 34GiB disks. vg00 should be for the OS and nothing else.
If it ain't broke, I can fix that.
James R. Ferguson
Acclaimed Contributor

Re: Mirror Disk With Different Size Disks

Hi Andrew:

Yes, this is possible. LVM mirroring is implemented at the logical volume level, so the different disk sizes mean nothing in this case.

The most important thing to remember is to mirror your logical volumes in the order 'lvol1, lvol2, lvol3...' to match '/stand', primary swap and '/' (root) respectively.

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: Mirror Disk With Different Size Disks

Shalom Andy,

You can mirror root and /stand which are essential to booting.

Because of the size differential, if the second disk is smaller, you can't mirror everything in vg00.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com