Operating System - HP-UX
1836460 Members
2776 Online
110101 Solutions
New Discussion

Re: Mirroring add-on SCSI disks

 
Kevin_290
Occasional Contributor

Mirroring add-on SCSI disks

I had a need to add a new SCSI disk enclosure that houses four new SCSI disks. For safety I want to mirror the disks, but my vendor says that HP-UX may not allow me to mirror the disks. I am running HP-UX 11.11 and I do have the mirroring software and LVM. Can anyone tell me if mirroring is a problem with this configuration? I have connected the enclosure to the external SCSI buss in the back of the L3000-8x with a terminator at the back of the enclosure and the disks operate just fine in the current configuration.
5 REPLIES 5
Prashant Zanwar_4
Respected Contributor

Re: Mirroring add-on SCSI disks

You should be able to see the SCSI enclosure devices in my belief.
Once you have device files, say doing the insf -e for required devices. You can do pvcreate on them. I believe it should be straight forward for you.

Hope above helps
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Pete Randall
Outstanding Contributor

Re: Mirroring add-on SCSI disks

Kevin,

No problem!

You'll need to put all the disks in the same Volume Group as mirroring is done at the lvol level. Then create lvols on two of the disks and use lvextend to create the mirror copies on the other two disks.


Pete

Pete
Sanjay_6
Honored Contributor

Re: Mirroring add-on SCSI disks

Hi,

As long as you have mirror-ux on the box and you are not worried about loosing half the number of disk in mirroring, you can do the mirroring. Your vendor might have said something about mirroring, since mirror-ux is a $$ product and is not available by default.

Hope this helps.

Regds
Steven E. Protter
Exalted Contributor

Re: Mirroring add-on SCSI disks

You may need to do this:

ioscan

insf -e
insf -C or
insf -C disk

I'm pasting in a complete guide to mirroring, part of which is relavent.


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
Kevin_290
Occasional Contributor

Re: Mirroring add-on SCSI disks

Thanks for the info, I will go ahead then and attempt to mirror the disks since the general consensus is that there would be no problem doing so.
The disks in question were not boot disks, and the disks are already working in the current configuration so some responses didn't get many points...sorry... however, I did get good information from everyone. Thanks!!