1763060 Members
2802 Online
108909 Solutions
New Discussion юеВ

Hp-ux RAID or not?

 
SOLVED
Go to solution
Brian  Faulk
Advisor

Hp-ux RAID or not?

how can i determine if my hp-ux system is using RAID? My server came pre-configured with hp-ux 11i but I have no idea if it is using RAID or not. I can see that it is using mirrioring, for the boot drive.

Thanks in advance.
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: Hp-ux RAID or not?

LVM
lvdisplay -v /dev/vg00/lvol3

# thats the root vg. If you see two columns and disks, you are mirrored using LVM


swlist -l product | grep -i mirror

To determine if mirror/ux is installed.

rootvg can be mirrored with the base VxVM product that ships with HP-UX. I'm not sure if HP is shipping systems configured this way.

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
Brian  Faulk
Advisor

Re: Hp-ux RAID or not?

Ok but I am still not clear.
Here is the output from the command you gave me.
--- Logical volumes ---
LV Name /dev/vg00/lvol3
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 200
Current LE 25
Allocated PE 25
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c2t0d0 25 25

--- Logical extents ---
LE PV1 PE1 Status 1
00000 /dev/dsk/c2t0d0 00550 current
00001 /dev/dsk/c2t0d0 00551 current
00002 /dev/dsk/c2t0d0 00552 current
00003 /dev/dsk/c2t0d0 00553 current
00004 /dev/dsk/c2t0d0 00554 current
00005 /dev/dsk/c2t0d0 00555 current
00006 /dev/dsk/c2t0d0 00556 current
00007 /dev/dsk/c2t0d0 00557 current
00008 /dev/dsk/c2t0d0 00558 current
00009 /dev/dsk/c2t0d0 00559 current
00010 /dev/dsk/c2t0d0 00560 current
00011 /dev/dsk/c2t0d0 00561 current
00012 /dev/dsk/c2t0d0 00562 current
00013 /dev/dsk/c2t0d0 00563 current
00014 /dev/dsk/c2t0d0 00564 current
00015 /dev/dsk/c2t0d0 00565 current
00016 /dev/dsk/c2t0d0 00566 current
00017 /dev/dsk/c2t0d0 00567 current
00018 /dev/dsk/c2t0d0 00568 current
00019 /dev/dsk/c2t0d0 00569 current
00020 /dev/dsk/c2t0d0 00570 current
00021 /dev/dsk/c2t0d0 00571 current
00022 /dev/dsk/c2t0d0 00572 current
00023 /dev/dsk/c2t0d0 00573 current
00024 /dev/dsk/c2t0d0 00574 current
Pete Randall
Outstanding Contributor

Re: Hp-ux RAID or not?

Other than mirroring, there is no RAID, per se, for internal disks. External disk arrays generally have some type of RAID capability and the method of determining just what that is varies depending on they type of array.


Pete

Pete
Pete Randall
Outstanding Contributor
Solution

Re: Hp-ux RAID or not?

Also, your lvdisplay indicates that you're not mirrored ("Mirror copies 0").


Pete

Pete
Steven E. Protter
Exalted Contributor

Re: Hp-ux RAID or not?

Answer: not mirrored.



Procedure to mirror the root disk:

Don't try this until mirror/ux is installed and licensed.

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
Pete Randall
Outstanding Contributor

Re: Hp-ux RAID or not?

The lvlnboot steps are un-necessary - from the lvlnboot man page:

"This command should be run in recovery mode (-R) whenever the configuration of the root volume group is affected by one of the following commands: lvextend, lvmerge, lvreduce, lvsplit, pvmove, lvremove, vgextend, or vgreduce (see lvextend(1M), lvmerge(1M), lvreduce(1M), lvsplit(1M), pvmove(1M), lvremove(1M), vgextend(1M), and vgreduce(1M)). Starting with HP-UX Release 10.0, this is done automatically."


Pete

Pete