- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to tell if disks are mirrored?
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
05-06-2004 07:38 AM
05-06-2004 07:38 AM
Also when I lvdisplay a logical volume, the mirror copies info showed 1, does that mean the logical volume is mirrored?
Could you also refer some good guides on this? Thanks a lot.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 07:42 AM
05-06-2004 07:42 AM
Re: how to tell if disks are mirrored?
To which Logical Volume this disk belongs??
lvdisplay -v /dev/vgxx/lvolxx
Check for mirror copies details.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 07:43 AM
05-06-2004 07:43 AM
Re: how to tell if disks are mirrored?
so you have 1 mirrored copy of that logical volume.
if you do lvdisplay -v /dev/vg??/lvol??
you can see the disks, it is mirrored on.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 07:44 AM
05-06-2004 07:44 AM
Re: how to tell if disks are mirrored?
If the number of mirror copies is 1 the disk is mirrored.
links:
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/5187-0701/5187-0701_top.html&con=/hpux/onlinedocs/5187-0701/00/00/38-con.html&toc=/hpux/onlinedocs/5187-0701/00/00/38-toc.html&searchterms=lvm&queryid=20040506-134234
Regards,
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 07:46 AM
05-06-2004 07:46 AM
SolutionDisks aren't mirrored, LVs are.
As stated
lvdisplay /dev/vg_name/lv_name
will tell you in the mirror copies field
0 = no mirrors
1 = 1 mirror (two copies)
2 = 2 mirrors (three copies & the max)
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 07:48 AM
05-06-2004 07:48 AM
Re: how to tell if disks are mirrored?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 07:48 AM
05-06-2004 07:48 AM
Re: how to tell if disks are mirrored?
1) Mirror Copies is greater than 0.
2) You will see output like this when doing an 'lvdisplay -v /dev/vg??/lvol?'
--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 /dev/dsk/c1t2d0 00000 current /dev/dsk/c2t2d0 00000 current
00001 /dev/dsk/c1t2d0 00001 current /dev/dsk/c2t2d0 00001 current
00002 /dev/dsk/c1t2d0 00002 current /dev/dsk/c2t2d0 00002 current
00003 /dev/dsk/c1t2d0 00003 current /dev/dsk/c2t2d0 00003 current
00004 /dev/dsk/c1t2d0 00004 current /dev/dsk/c2t2d0 00004 current
00005 /dev/dsk/c1t2d0 00005 current /dev/dsk/c2t2d0 00005 current
00006 /dev/dsk/c1t2d0 00006 current /dev/dsk/c2t2d0 00006 current
When you see 2 (or more) logical extents for each Physical extent then the LV is mirrored.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 07:50 AM
05-06-2004 07:50 AM
Re: how to tell if disks are mirrored?
I included the following segment of code in a POSIX shell script that generates a report of lots of system information that I wanted to have handy. Basically, yes, the Mirror info reported in lvdisplay indicates whether an LV is mirrored or not.
for VOLGRP in $(vgdisplay | grep "VG Name" | awk '{print $3}')
do
echo "${VOLGRP}\t"
for LOGVOL in $(vgdisplay -v ${VOLGRP} | grep "LV Name" | awk '{print $3}')
do
echo "${LOGVOL} \t\c"
echo $(lvdisplay -v ${LOGVOL} | grep /dev/dsk | awk '{print $2 " " $5}' | sort -u | grep /dev/dsk) "\c"
if [ $(lvdisplay ${LOGVOL} | grep Mirror | awk '{print $3}') -eq 1 ];
then
echo "Mirrored";
else
echo "\n";
fi;
done
echo "\n";
done
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 07:52 AM
05-06-2004 07:52 AM
Re: how to tell if disks are mirrored?
when you run the command, something like
lvdisplay -v /dev/vg00/lvol4
on the output, the section which should tip you if the volume is mirrored on 2 separate disks is:
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c1t2d0 16 16
/dev/dsk/c2t2d0 16 16
and a little below this block you will see the logical extents' status similar to :
--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 /dev/dsk/c1t2d0 00542 current /dev/dsk/c2t2d0 00542 current
00001 /dev/dsk/c1t2d0 00543 current /dev/dsk/c2t2d0 00543 current
00002 /dev/dsk/c1t2d0 00544 current /dev/dsk/c2t2d0 00544 current
00003 /dev/dsk/c1t2d0 00545 current /dev/dsk/c2t2d0 00545 current
00004 /dev/dsk/c1t2d0 00546 current /dev/dsk/c2t2d0 00546 current
00005 /dev/dsk/c1t2d0 00547 current /dev/dsk/c2t2d0 00547 current
which is another point that you can see PE1 and PE2 are on two separate disks
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2004 08:47 AM
05-06-2004 08:47 AM
Re: how to tell if disks are mirrored?
# ./mirror-check
------------------------------------------------
checking the root disk vg00 on pc0003
------------------------------------------------
Root Mirror Disk for /dev/vg00/lvol1 is Okay !
Root Mirror Disk for /dev/vg00/lvol2 is Okay !
Root Mirror Disk for /dev/vg00/lvol3 is Okay !
Root Mirror Disk for /dev/vg00/lvol4 is Okay !
Root Mirror Disk for /dev/vg00/lvol5 is Okay !
Root Mirror Disk for /dev/vg00/lvol6 is Okay !
Root Mirror Disk for /dev/vg00/lvol7 is Okay !
Root Mirror Disk for /dev/vg00/lvol8 is Okay !
Root Mirror Disk for /dev/vg00/lvol9 is Okay !
Root Mirror Disk for /dev/vg00/lvol10 is Okay !
Root Mirror Disk for /dev/vg00/lvol11 is Okay !
Root Mirror Disk for /dev/vg00/lvol12 is Okay !
Root Mirror Disk for /dev/vg00/lvol13 is Okay !
Root Mirror Disk for /dev/vg00/lvol14 is Okay !
Root Mirror Disk for /dev/vg00/lvoraclebase is Okay !
Rgds...Geoff