- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Disk Mirroring Checks
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 02:52 AM
11-14-2005 02:52 AM
Im interested in building a testing procedure that will tell if a node in a cluster has disk mirroring. [i.e. has duplicate disks where the standby disk has the same information as the active disk].
Here's what i've suggested; but please let me know what you think?
a) check to see disk mirroring software is available:
swlist -l fileset | grep -i mir
b) Identify the primary boot disk
Type: lvlnboot -v
/dev/dsk/c2t0d0 (0/1/1/0.0.0) -- Boot Disk
/dev/dsk/c3t2d0 (0/1/1/1.2.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c2t0d0
Root: lvol3 on: /dev/dsk/c2t0d0
Swap: lvol2 on: /dev/dsk/c2t0d0
Dump: lvol2 on: /dev/dsk/c2t0d0, 0
At this stage, we can assume if the node has TWO boot disks, then it has disk mirroring?!!
Are there any other steps we should include???
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 02:56 AM
11-14-2005 02:56 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 03:00 AM
11-14-2005 03:00 AM
Re: Disk Mirroring Checks
In order to truly verify whether mirroring is functioning, use the lvdisplay command.
It tells you how many mirrot copies are confugured, as well as whether they are working (the LV status line will have stale, if it is not working) See output below
lvdisplay /dev/vg00/lvol4
--- Logical volumes ---
LV Name /dev/vg00/lvol4
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 608
Current LE 19
Allocated PE 38
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 03:01 AM
11-14-2005 03:01 AM
Re: Disk Mirroring Checks
Check "lvdisplay
Also a good idea to be sure there are no stale extents with "lvdisplay -v
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 03:06 AM
11-14-2005 03:06 AM
Re: Disk Mirroring Checks
HP-UX LVM mirrors at the logical volume level. Thus, to verify mirroring, you need to query the mirror status of every logical volume associated with a volume group.
You could do a 'vgdisplay -v
At a minimum, *every* logical volume should be mirrored for every volume group in question.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 03:15 AM
11-14-2005 03:15 AM
Re: Disk Mirroring Checks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 03:26 AM
11-14-2005 03:26 AM
Re: Disk Mirroring Checks
But you have to looking for bootabel devices too.
First, do a "lvlnboot -v":
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t15d0 (0/0/1/1.15.0) -- Boot Disk
/dev/dsk/c3t15d0 (0/0/2/1.15.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c1t15d0
/dev/dsk/c3t15d0
Root: lvol3 on: /dev/dsk/c1t15d0
/dev/dsk/c3t15d0
Swap: lvol2 on: /dev/dsk/c1t15d0
/dev/dsk/c3t15d0
Dump: lvol2 on: /dev/dsk/c1t15d0, 0
Check also the LIF content of every disk listed by running:
lifls -v /dev/rdsk/c2t0d0
You should find at least
ISL
AUTO
HPUX
LABEL
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 03:29 AM
11-14-2005 03:29 AM
Re: Disk Mirroring Checks
I've given everyone 10 points, but.. be careful, next time i'll be taking off points for spelling mistakes [just kidding!].
Thanks everyone!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 03:41 AM
11-14-2005 03:41 AM
Re: Disk Mirroring Checks
;-)
Have fun!
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 03:55 AM
11-14-2005 03:55 AM
Re: Disk Mirroring Checks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 08:14 AM
11-15-2005 08:14 AM
Re: Disk Mirroring Checks
1) Do bdf
2) grep for filesystems that you need
3) cut/awk for lvols
4) get lvdisplay for lvols
5) grep for mirrors
I do a more detailed version with one for/loop that goes through bdf line-by-line. You can also pass this to another scrip where it checks which disk the lvol reside(s) on. (In old days, we had vg00 span across multiple disks.)
6) ALSO check lvlnboot: very important!!
regards,
peyman;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 08:58 PM
11-15-2005 08:58 PM
Re: Disk Mirroring Checks
Is there a reason why anyone has not mentioned that? Is there a problem with bdf's output?
Thanks, and I hope all is going well with everyone!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2005 09:13 PM
11-15-2005 09:13 PM
Re: Disk Mirroring Checks
Try with this script.
#!/bin/ksh
admin1=name@company.com
admin2=name@company.com
do_mirrordisk() {
# checking the root disk : checking on vg00
for lvol in 1 2 3 4 5 6 7 8
do
mirror=`lvdisplay -v /dev/vg00/lvol${lvol} | grep stale | wc -l`
if [ $mirror -ge 1 ]
then
echo "Root Mirror disk for lvol${lvol} is down, please check ..."
lvdisplay -v /dev/vg00/lvol${lvol} | grep stale | head > /tmp/MIRRPT 2>&1
mailx -s "ALERT: $host_name Root Mirror Disk for lvol${lvol} is down !" $admin1 < /tmp/MIRRPT
# mailx -s "ALERT: $host_name Root Mirror Disk for lvol${lvol} is down !" $admin2 < /tmp/MIRRPT
else
echo "Root Mirror Disk for lvol${lvol} is Okay !"
fi
done
}
do_mirrordisk
Regards,
Borislav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2005 06:36 AM
11-17-2005 06:36 AM
Re: Disk Mirroring Checks
The above script is good and similar to what I have except for the for loop, where I look for the lvols through bdf and swapinfo (sorry that I cannot share my scripts). This way, your script will dynamically check for whatever LVOL you add to your system.
regards,
peyman;