Operating System - HP-UX
1838320 Members
3392 Online
110125 Solutions
New Discussion

Re: Mirror status commands

 

Mirror status commands

I am putting a script together to help determine the overall health of a server. The server in question is an A-class server running HPUX 11i. There are two drives, and the second is a full mirror of the first.

What commands could I use to help determine the status of the mirroring, and other items that might be useful in diagnosing any potential problems before they occur?
5 REPLIES 5
James A. Donovan
Honored Contributor

Re: Mirror status commands

vgdisplay -v

will show you all the pertinent info about a particular volume group. For each logical volume, look at the "LV Status". If it says available/synced, you're golden.

You can also use pvdisplay/lvdisplay to gather additional info.
Remember, wherever you go, there you are...
RAC_1
Honored Contributor

Re: Mirror status commands

lvdisplay

Check for mirror copies info

Also for stale LE/PEs.
There is no substitute to HARDWORK
DIPAK KUMAR ROY
Frequent Advisor

Re: Mirror status commands

You can use "vgdisplay -v |grep -i stale" to find out if there is any stale logical volumes.

Thanks
Steven E. Protter
Exalted Contributor

Re: Mirror status commands

lvlnboot -v will show the boot information you should have mirrored.

vgdisplay as shown above will give you the rest.

As a convenience, I'm posting in my full procedure on mirroring the boot disk.


.....

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
Michael Tully
Honored Contributor

Re: Mirror status commands

I think the mirroring has been covered.

For other things you could look for messages of interest in syslog.log
EMS events
warnings about kernel parameters
filesystems (which should already be done in a seperate script
inetd/peer died errors
One of the best source of ideas are the sysadmin scripts posts. There is an abundance of information/scripts and scripting ideas there. Do a search there are three of them.

Anyone for a Mutiny ?