Operating System - HP-UX
1834938 Members
2360 Online
110071 Solutions
New Discussion

Re: Replace non-functional Mirror Disk with a bigger disk

 
SOLVED
Go to solution
Ulrich Tehrani
Advisor

Replace non-functional Mirror Disk with a bigger disk

Hello all,


is it possibel to replace a non-functional mirror disk with a disk bigger than the crashed one ?


Thanks in advance.


Rgds

Uli
5 REPLIES 5
RAC_1
Honored Contributor
Solution

Re: Replace non-functional Mirror Disk with a bigger disk

Yes it is possible. But you will be wasting the space.

Replace the disk. Do a vgcfgrestore on it and do vgchange -a y rootvg and then vgsync.
There is no substitute to HARDWORK
Pete Randall
Outstanding Contributor

Re: Replace non-functional Mirror Disk with a bigger disk

Uli,

Yes, it's possible. However, when you add the disk into the VG, the PE size and MAX PE per VG will prevent you from utilizing any more space on it than the there was on the previous, smaller disk. The only way to correct this is to recreate the entire VG.


Pete

Pete
Sridhar Bhaskarla
Honored Contributor

Re: Replace non-functional Mirror Disk with a bigger disk

Hi Uli,

You can. However, you will not be able to use it entirely. TO find out how much you can use. Note "PE Size" (A) and "Max PE" (B" from 'vgdisplay vgxx' command. Multiply A and B. That's the size in MB you can grab out of the new disk.

If this is part of VG00, then take make_tape_recovery tape. Schedule downtime and restore the tape onto the new disk. Once everything is up, running and verified, add the smaller disk into vg00 and extend the mirrors.

If this is not vg00, then create a new VG with the filesystems. Take downtime and copy the data from smaller disk to the new VG. Verify everything, destory the old VG and add the old disk to new VG and extend the mirrors.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Steven E. Protter
Exalted Contributor

Re: Replace non-functional Mirror Disk with a bigger disk

Yes,

You can re-establish the mirroring, if thats a critical issue(it should be).

The better course of action is to break the mirror, rebuild the volume group and then re-mirror accodring to these instructions, which I'm sure you already have.

pvcreate -B /dev/rdsk/c1t0d0 #use real disk

mkboot -l /dev/rdsk/c1t0d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t0d0 # use real disk


# mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?

If you are running 64-bit OS:

# mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?


vgextend /dev/vg00 /dev/dsk/c1t0d0 # same thing
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0

# real disk. repeat for other lvols

lvlnboot -r /dev/vg00/lvol3 # root fs /
lvlnboot -s /dev/vg00/lvol2 #swap
lvlnboot -d /dev/vg00/lvol2 #swap/dump
lvlnboot -b /dev/vg00/lvol1
lvlnboot -R
lvlnboot -v
setboot
setboot -a 52.1.0 # second disk

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
Jannik
Honored Contributor

Re: Replace non-functional Mirror Disk with a bigger disk

make a ignite tape of the old system. take out the old disk and re-install the system on the new disk.
Go out and bye a new big disk and mirror the system.
jaton