- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- frozen rootdg copy - detached mirror or snapshot?
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
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
03-14-2006 02:24 PM
03-14-2006 02:24 PM
But I can't seem figure out the recommended way of having a static, bootable copy of rootdg with VxVM. I see I can detach the mirror, but it sounds like detached mirrors get reattached automatically at reboot. Not desired. There's the snapshot thing, which apparently I can convert my mirror to be a snapshot, but can that be booted? If VxVM simply can't be both, I guess a refresh source is probably more important than an alternate boot source.
The volumes are all mirrored-concatenated, ie unlayered volumes. Although rootvol keeps quoting "root" rather than "mirrored-concatenated".
Thanks,
Scott
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 08:10 PM
03-14-2006 08:10 PM
Re: frozen rootdg copy - detached mirror or snapshot?
what you need to use is :
vxplex -g
instead of :
vxplex -g
because what you've done is only temporary and can be undone with :
vxplex -g
or at next reboot.
I don't know if on HPUX there is an encapsulation of the boot disk too. If it is you'll have to make more operations to boot on it.Can you post the result of :
vxprint -ht
Regards
Pat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 08:31 PM
03-14-2006 08:31 PM
SolutionI have an workaround process, But takes an advantage of LVM co-existance with VXVM.
The work around is as follows.
Assumptions:
lets assume /dev/dsk/c0t0d0 is part of your rootdg and is the boot disk aswell.
lets assume /dev/dsk/c1t0d0 is spare local disk you have which for now is used as mirror in rootdg.
Procedure.
(A) Just remove the second disk out of rootdg.
1) You need to disassociate the plexes associated from the second disk,
vxplex -g rootdg homevol-02 optvol-02 rootvol-02 standvol-02 swapvol-02 tmpvol-02 usrvol-02 varvol-02
verify the action,
vxprint -t
2) you need to delete the plexes that are disassociated now.
vxedit -g rootdg -r rm homevol-02 optvol-02 rootvol-02 standvol-02 swapvol-02 tmpvol-02 usrvol-02 varvol-02
verify the action,
vxprint -t
3) remove the second disk from the rootdg,
vxdg -g rootdg rmdisk rootdisk02
(B) At the right time when you feel the conf is at ideal state in the boot disk of managed by VXVM(rootdg), create a LVM boot disk which would be created using the actual boot disk in the rootdg.
/etc/vx/bin/vxres_lvmroot -v /dev/dsk/c1t0d0
NOTE: at this stage you have 2 independent boot disk one maintained by VXVM and the other by LVM.
CO-RELATION:
Now lets correlate this situation as per your requirement.
Lets us assume, the system is unbootable from the VXVM boot disk. Now boot from the second disk, which is maintained by LVM. Once you have the access to the OS. Thrash the data in the first disk "/dev/dsk/c0t0d0", now you can create a fresh VXVM boot disk on "/dev/dsk/c0t0d0" (so called rootabilty) and now you have a working copy of VXVM boot disk on "/dev/dsk/c0t0d0". This restores the data as it was when you created the LVM boot disk. Now you can reboot from the first disk as is your "current requirement".
The command for this activity is...
/etc/vx/bin/vxcp_lvmroot -v /dev/dsk/c0t0d0
regards,
Senthil Kumar .A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2006 08:33 PM
03-14-2006 08:33 PM
Re: frozen rootdg copy - detached mirror or snapshot?
vxplex -g rootdg dis homevol-02 optvol-02 rootvol-02 standvol-02 swapvol-02 tmpvol-02 usrvol-02 varvol-02
,Sorry missed the "dis" keyword.
Regards,
Senthil Kumar .A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2006 11:50 AM
03-16-2006 11:50 AM
Re: frozen rootdg copy - detached mirror or snapshot?
Ok, so I want to dissociate plexes rather than detach them, but since the plexes are not in volumes, can the alternate disk be booted? Not likely. But I tried putting the dissociated plex into a volume and could see that the data was still intact, but then when I wanted to remove the test volume to release the plex, being the only one on the volume, VxVM blew away the volume, the plex, and the subdisk. How useful. There also seems to be no way to refresh an associated plex with the data on a dissociated plex, unless its snap stuff, but can you boot a standby disk of snaps? All just a bunch of mess.
And everytime I dissociate a plex of a mounted file system, I get IOFAIL rather than STALE. So I think I'll just forget about trying to accomplish anything with VxVM and fallback to the idea that I still need LVM for a flexible world.
Thanks for the information by the responders.
Thanks,
Scott