- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: disk mirroring
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
10-03-2001 03:30 AM
10-03-2001 03:30 AM
Can anyone tell how I can detect what disks are mirrored, and what disks aren't ?
Thanks in advance
Franky
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2001 03:37 AM
10-03-2001 03:37 AM
SolutionWith LVM mirroring is now really on Logical volume basis, not disk basis. Each Logical volume can span multiple disks or only part of one disk, so you need to do it using lv commands.
For each lvol in each /dev/vg* directory do a lvdisplay on it and grep for mirror;
eg. lvdisplay /dev/vg00/vlol1 | grep -i mirror
If it comes back with a "Mirror copies 1" then its mirrored. Now do an lvdisplay -v on the same LV (lvdisplay -v /dev/vg00/lvol1 | more) and it will display the disks this lvol is on, in 2 colums, the first being the primary disk and the second the mirror disk. Look at the entire display as each lvol may span many disks and thus mirrored on many different disks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2001 03:44 AM
10-03-2001 03:44 AM
Re: disk mirroring
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2001 04:05 AM
10-03-2001 04:05 AM
Re: disk mirroring
Franky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2001 04:19 AM
10-03-2001 04:19 AM
Re: disk mirroring
Here's a simple script that automates the process of enumerating the number of mirrors for each logical volume in each volume group on a server:
#!/usr/bin/sh
for LV in `vgdisplay -v|awk '/LV Name/ {print $3}'`
do
lvdisplay $LV|awk -v LV=$LV '/Mirror copies/ {print LV,$3}'
done
exit 0
#.end.
Call the script 'my.sh' and when you run it, you will see something like:
# ./my.sh
/dev/vg00/lvol1 1
/dev/vg00/lvol2 1
/dev/vg00/lvol3 1
/dev/vg00/lvol4 1
/dev/vg00/lvol5 1
/dev/vg00/lvol6 1
/dev/vg00/lvol7 1
/dev/vg00/lvol8 1
/dev/vg00/lvol9 1
/dev/vg02/lvol1 0
/dev/vg03/lvol1 0
/dev/vg03/lvol2 0
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2001 04:49 AM
10-10-2001 04:49 AM
Re: disk mirroring
I was just lookng at James mirroring scripts and being that I'm very new to Unix, can somepne possibly explain to me what each line there means please. Help will be greatly appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2001 06:24 AM
10-16-2001 06:24 AM
Re: disk mirroring
I agree with Stefan's way,I used it in the past.
Regards,
Hamdy