- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Mirror vg01 ?
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
08-15-2003 12:28 PM
08-15-2003 12:28 PM
I was wondering if there would be any benfit of using mirror-ux to mirror vg01?
If I have vg01 on diska and mirror vg01 on diskb. Does Mirror-ux know to use diskb on a live system if diska goes bad? Or would I need a hardware raid for this?
If mirror-ux can do it would I mirror vg01 the same as vg00 ? Or are there different procedures?
thanks
Richard
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2003 12:44 PM
08-15-2003 12:44 PM
SolutionThe procedure to mirror non-boot disks is a little simpler than for vg00.
#!/usr/bin/sh
RAW=/dev/rdsk/c1t6d0 # your new vg01 mirror
COOKED=/dev/dsk/c1t6d0 # ditto
VG=/dev/vg01
LVOLS="lvol1 lvol2 lvol3" # season to taste
pvcreate -f ${RAW} # no -B
vgextend ${VG} ${COOKED}
for LVOL in ${LVOLS}
do
echo "Mirroring ${LVOL}"
echo
echo vgextend -m 1 ${VG} ${COOKED}
STAT=${?}
done
exit ${STAT}
That should do it but check for any typo's.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2003 12:45 PM
08-15-2003 12:45 PM
Re: Mirror vg01 ?
Mirroring is one form of high-availability. Yes, MirrorDisk/UX will use "diskB" if "diskA" fails. Moreover, the data in the logical volume is safe from loss. You replace the failed disk and use the good copy to remirror ('vgsync' or lvsync').
The procedure for mirroring a non-vg0 is the same as for vg00 with the exception that you don't 'pvcreate' a physical volume with the '-B' option since you are not using it as a boot volume.
Remember, LVM mirroring is implemented at the *logical volume* level, despite the fact that we call the product "MirrorDisk". Hence, you add mirror copies to a logical volume using the 'lvextend -m' syntax. Have a look at eh 'lvextend' man pages (*and* 'lvcreate' and 'lvreduce' too!).
The only time mirroring fails miserably is when you write or remove the wrong file -- the operation occurs on all mirrors for good measure :-))
Regards!
..JRF...
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2003 12:48 PM
08-15-2003 12:48 PM
Re: Mirror vg01 ?
the echo vgextend -m 1 ...
SHOULD OBVIOUSLY BE
vgextend -m 1 ... ### no echo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2003 12:55 PM
08-15-2003 12:55 PM
Re: Mirror vg01 ?
My good friend, Clay, meant to have written 'lvextend -m 1' *instead* of 'vgextend -m 1'.
Afterall, its Friday!
p.s. I should add, of course, to my own comments about mirroring non-vg00 disks, that neither 'pvcreate -B' nor 'mkboot' commands are used.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2003 01:01 PM
08-15-2003 01:01 PM
Re: Mirror vg01 ?
The procedure is same. The only thing is on vg00 you need to initialize the disk with "pvcreate -B" and you need not do mkboot on the disk for vg01.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2003 01:13 PM
08-15-2003 01:13 PM
Re: Mirror vg01 ?
I actully caught the lvextend typo after I ran it once and failed.
The syntax was also off a little Mr. Clay forgot to speficy the lvol that is getting mirrored so I had to change:
lvextend -m 1 ${VG} ${COOKED}
To
lvextend -m 1 ${VG}/${LVOL} ${COOKED}
its friday so it is all good. :)
Thanks Everyone
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2003 04:42 PM
08-15-2003 04:42 PM
Re: Mirror vg01 ?
The question I have is I wonder if it's a hot Friday in Atlanta? ;~))
Thank God there's been no power outage down there....but maybe our esteemed colleagues are just daydreaming about missing it....NAH....they just had a case of cut&pasteitis I think.
Cheers,
Jeff (Hell - it's hot here - 94 today...Someone PLEASE send rain)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2003 06:44 AM
08-18-2003 06:44 AM
Re: Mirror vg01 ?
Well I dont know about you but I never really thought about Mr.Clay Or Mr.James using copy paste. I have always thought that they wrote the small to medium scripts from the top of their head. And to tell you the truth I would not want to know otherwise. The salad head legend continues. :)
Richard