Showing results for 
Search instead for 
Did you mean: 

Mirroring status

Go to solution
Frequent Advisor

Mirroring status

How to check the mirroring status of primary disks in HP-UX 11.11i?
Honored Contributor

Re: Mirroring status

It's not discs that are mirrored, it's logical volumes.

Easiest way to check is to go into SAM -> discs -> logical volumes. The column headed "Mirror Copies" tells you exactly what you want to know.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Rasheed Tamton
Honored Contributor

Re: Mirroring status


for i in `ls -1 /dev/vg00/lv*`
echo $i
lvdisplay -v $i|grep -i mirror

Valued Contributor

Re: Mirroring status

The command for mirroring status are:
vgdiplay -v vg_name ... check the global lvol situation ... looking for stale...

lvdisplay -v lvol_name ... here you chek mirror software

pvdisplay -v physical_disk check disk

Don't forget point
Trusted Contributor

Re: Mirroring status


Since only logical volume can be mirrored u have to check
the respective lv,


#lvdisplay -v /dev/vg00/lvol1|grep Mirror
Mirror copies 1

Here 1 is returned, this means this lv has 1 mirror.

#lvdisplay -v /dev/vg00/lvol1|grep Mirror
Mirror copies 0

Here 0 is returned, this means this lv has no mirror copies.

Valued Contributor

Re: Mirroring status

HI Chetana,

can you breif what status you wan't to check in the mirror

to confirm the disk is mirrored check the lvdisplay you can find the

mirror copies 0 --- Not mirrored
mirror copies 1 --- 1 copy mirrored
mirror copies 2 --- 2 times mirrored in 2 different disk's

Ralph Grothe
Honored Contributor

Re: Mirroring status

Assuming that you mean if all mirrors are in sync by asking for the mirroring status,
then it is, as gigiz wrote, probably the staleness of physical extents (PEs) that you are after.
A very crude check would be to run

# vgdisplay -v | grep -c stale


# vgdisplay -v vg00|grep -E 'LV (Name|Status)'

If you get output other than available/syncd
your mirrors' state is, well stale (or in other OSes terminology "degraded").

You could then pick those stale LVs and count the number of already stale logical extents (LEs) that map to actual PEs.

# lvdisplay -v /dev/vgXX/lvolX | grep -c stale

If look at the output of lvdisplay -v in a pager such as more you can identify the affected (probably demaged) PV or disk.

The longer you wait with replacing the failed disk the more stale extents are likely to accumulate.

Madness, thy name is system administration
Frequent Advisor

Re: Mirroring status

Thanks for all your quick responses.I found the solution to mirroring of logical volume in HP-UX 11.11i and not for the disks.