- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to know if a disk is in mirror??
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
Discussions
Discussions
Forums
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
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
тАО09-25-2006 07:40 AM
тАО09-25-2006 07:40 AM
I have a bad disk and I need to know if this disk is in mirror.. How i can do this?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2006 07:42 AM
тАО09-25-2006 07:42 AM
Re: How to know if a disk is in mirror??
Regards,
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2006 07:47 AM
тАО09-25-2006 07:47 AM
Re: How to know if a disk is in mirror??
this will show you the mirrored LVs.
You will be seeing in the Logical extents
LE PV1 PE1 Status 1 PV2 PE2 Status 2
in case of mirror.
In case of a non-mirror, you will see only
LE PV1 PE1 Status 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2006 07:49 AM
тАО09-25-2006 07:49 AM
Re: How to know if a disk is in mirror??
# cat chkstaledsks
#!/bin/sh
# Identifies and displays stale extends on all system volume groups.
# Useful to determine defect harddisks in mirrored enviroments
# Geoff Wild
vgdisplay -v | awk '/LV Name/ { print $3 }' | xargs lvdisplay -v | grep -i -e "lv name" -e "lv status" -e stale -e '?'
For VXVM - need to see how many plexes are in the Volume - if only one, then not mirrored.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2006 07:53 AM
тАО09-25-2006 07:53 AM
Re: How to know if a disk is in mirror??
vgdisplay -v
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2006 07:54 AM
тАО09-25-2006 07:54 AM
SolutionMirroring occurs at the logical volume level. in order to figure out if the disk is mirrored, you will first have to figure out which Volume group the disk is in.
vgdisplay -v will give you that info
(or strings /etc/lvmtab)
Once you have the vg info, you will have to do a lvdisplay -v against all of the logical volumes in that VG to see which ones, if any, are using that disk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2006 07:55 AM
тАО09-25-2006 07:55 AM
Re: How to know if a disk is in mirror??
If the logical volume is mirrored the out put will show as below. In the Logical volume properties the value of Mirror copies will 1 or more.
# lvdisplay -v /dev/vg00/root|pg
--- Logical volumes ---
LV Name /dev/vg00/root
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1 ===> Number of mirror copies will be there
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 3904
Current LE 976
Allocated PE 1952
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c4t12d0 976 976
/dev/dsk/c4t10d0 976 976
--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 /dev/dsk/c4t12d0 03364 current /dev/dsk/c4t10d0 03364 current
00001 /dev/dsk/c4t12d0 03365 current /dev/dsk/c4t10d0 03365 current
00002 /dev/dsk/c4t12d0 03366 current /dev/dsk/c4t10d0 03366 current
00003 /dev/dsk/c4t12d0 03367 current /dev/dsk/c4t10d0 03367 current
00004 /dev/dsk/c4t12d0 03368 current /dev/dsk/c4t10d0 03368 current
For isolation if it having a faulty disk check vgdisplay and lvdisplay for stale entries.
Thanks and regards
Manoharan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2006 08:03 AM
тАО09-25-2006 08:03 AM
Re: How to know if a disk is in mirror??
The output say's there is one mirror copy
--- Logical volumes ---
LV Name /dev/vg02/lvol10
VG Name /dev/vg02
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 17360
Current LE 4340
Allocated PE 8680
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
тАО09-25-2006 08:09 AM
тАО09-25-2006 08:09 AM
Re: How to know if a disk is in mirror??
See you
; )