1752751 Members
5238 Online
108789 Solutions
New Discussion юеВ

Re: Mirroring status

 
SOLVED
Go to solution
chetana07
Frequent Advisor

Mirroring status

How to check the mirroring status of primary disks in HP-UX 11.11i?
7 REPLIES 7
MarkSyder
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

lvdisplay

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

gigiz
Valued Contributor
Solution

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
SANTOSH S. MHASKAR
Trusted Contributor

Re: Mirroring status

Hi,

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

eg.

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

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

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

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

-Santosh
Jollyjet
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

or

# 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
chetana07
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.