1748255 Members
4044 Online
108760 Solutions
New Discussion юеВ

Use SAM for mirrorring ?

 
SOLVED
Go to solution
Massimo_37
Frequent Advisor

Use SAM for mirrorring ?

We have two 2x 18Gb FWD SCS-2 Discs. One was mirrored to another. There is only one volume group vg00 and logical volumes like / /stand, /usr, /tmp etc. We had to increase root partition size etc recently.We did this using a recovery tape created using Ignite UX. To make things easier initially, we removed the miror disc (using the option on Ignite UX interface during boot up). We now have the server up and running without any problems, except that we lost the mirroring. I can see the second disk also in SAM, but does not have a volume group and does not use LVM.
We have HP MirrorDisk/UX software. Can I use SAM to create the mirror copy on the other 18GB disc ? If so, could you please explain the steps ? Or do I have to using the HP UX commands itself ? Then ,could you give me those commands in order please.
Also does it matter , if after doing the steps that you suggest, I create other logical volumes in the same volume group ?
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: Use SAM for mirrorring ?

You only have one alternative disk. There is no way I can think of for SAM to get it wrong.

The command however is pretty simple:

lvextend -m 1 /dev/vg00/lvol## /dev/dsk/c1t2d0

the /dev/dsk entry for the 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
Steven E. Protter
Exalted Contributor

Re: Use SAM for mirrorring ?

You only have one alternative disk. There is no way I can think of for SAM to get it wrong.

The command however is pretty simple:

lvextend -m 1 /dev/vg00/lvol## /dev/dsk/c1t2d0

the /dev/dsk entry for the second disk.

ADD in: You must first extend volume group vg00 to include the second disk, if this has not been done already.


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
eran maor
Honored Contributor

Re: Use SAM for mirrorring ?

Hi

do this :

1. pvcreate -f /dev/rdsk/cXtXdX ( to delete
all info in the new disk )

2. vgextend vg00 /dev/dsk/cXtXdX (add the
disk to the vg00 )

3. lvextend -m 1 /dev/vg00/lvolX ( this
will do the mirror )


try less to use SAM for lvm issue , it is much easier to do in on command line

eran maor
love computers
Ravinder Kaul
Advisor

Re: Use SAM for mirrorring ?

Hi

Since this is a boot disk use pvcreate -B
to make the mirrored disk bootable

pvcreate -B /dev/rdsk/cXtYdZ
where cXtYdZ is the device file of the secondary disk
2/ vgextend /dev/vg00 /dev/dsk/cXtYdZ

3/ mkboot /dev/rdsk/cXtYdZ
mkboot -a "hpux" /dev/rdsk/cXtYdZ
4/pvdisplay -v /dev/dsk/cxtydz
where cxtydz is the disk to be mirrored
(To check the order of the LVs on the original disk )
Run the command in the same order in which the vols appear in the primary disk. lvol2 is normally not mirrored as this is used as swap
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/cXtYdZ
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/cXtYdZ
lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/cXtYdZ
.
.
.
pvdisplay -v /dev/dsk/cXtYdZ
(To make sure they are in proper order on the new disk)
lvlnboot -r /dev/vg00/lvol3 /dev/vg00
lvlnboot -b /dev/vg00/lvol1 /dev/vg00
lvlnboot -s /dev/vg00/lvol2 /dev/vg00
lvlnboot -d /dev/vg00/lvol2 /dev/vg00
lvlnboot -v ( check output again)
The o/p should be like the following
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/cxtydz -- Boot Disk
/dev/dsk/cXtYdZ -- Boot Disk
Boot: lvol1 on: /dev/dsk/cxtydz
/dev/dsk/cXtYdZ
Root: lvol3 on: /dev/dsk/cxtydz
/dev/dsk/cXtYdZ
Swap: lvol2 on: /dev/dsk/cxtydz

Dump: lvol2 on: /dev/dsk/cxtydz, 0


You can create other lvs in the vg00 after mirroring so long space is available in the vg
Kyri Pilavakis
Frequent Advisor
Solution

Re: Use SAM for mirrorring ?

Please see attached file for help...
Bosses don't undestand..HP does
Massimo_37
Frequent Advisor

Re: Use SAM for mirrorring ?

Thank you all - esp Kyri for the wonderful notes. I have done it acc to Kyri's notes and all looks well. Thank u