- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Mirroring a VxVM rootdg in integrity platform
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
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
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
02-21-2011 08:59 AM
02-21-2011 08:59 AM
Mirroring a VxVM rootdg in integrity platform
I had to do a ignite restore last week, due to a badly corrupted volume and now I am on a single root disk, in disparate need to create a mirror volume with bootable properties.
Here is my ioscan output:
disk 1 0/4/1/0.0.0.0.0 sdisk CLAIMED DEVICE HP DG072A8B54
/dev/dsk/c1t0d0 /dev/rdsk/c1t0d0
/dev/dsk/c1t0d0s2 /dev/rdsk/c1t0d0s2
disk 2 0/4/1/0.0.0.1.0 sdisk CLAIMED DEVICE HP DG072A9BB7
/dev/dsk/c1t1d0 /dev/rdsk/c1t1d0
disk 3 0/4/1/0.0.0.2.0 sdisk CLAIMED DEVICE HP DG072A9BB7
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0 /dev/dsk/c1t2d0s1 /dev/rdsk/c1t2d0s1 /dev/dsk/c1t2d0s2 /dev/rdsk/c1t2d0s2 /dev/dsk/c1t2d0s3 /dev/rdsk/c1t2d0s3
disk 4 0/4/1/0.0.0.3.0 sdisk CLAIMED DEVICE HP DG072A8B54 /dev/dsk/c1t3d0 /dev/rdsk/c1t3d0 /dev/dsk/c1t3d0s1 /dev/rdsk/c1t3d0s1 /dev/dsk/c1t3d0s2 /dev/rdsk/c1t3d0s2 /dev/dsk/c1t3d0s3 /dev/rdsk/c1t3d0s3
here is current setboot output:
# setboot
Primary bootpath : 0/4/1/0.0.0.2.0
HA Alternate bootpath : 0/0/2/0
Alternate bootpath : 0/4/1/0.0.0.2.0
And last but not the least here is the vxprint output:
# vxprint
Disk group: rootdg
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
dg rootdg rootdg - - - - - -
dm rootdg01 c1t1d0 - 71682744 - - - -
dm rootdg02 c1t0d0 - 71682744 - - - -
dm rootdg03 c1t2d0 - 71681696 - - - -
dm rootdisk01 c1t3d0s2 - 70762400 - - - -
v optvol fsgen ENABLED 6017112 - ACTIVE - -
pl optvol-01 optvol ENABLED 6017112 - ACTIVE - -
sd rootdisk01-04 optvol-01 ENABLED 6017112 0 - - -
v rootvol root ENABLED 34376360 - ACTIVE - -
pl rootvol-01 rootvol ENABLED 34376360 - ACTIVE - -
sd rootdisk01-03 rootvol-01 ENABLED 34376360 0 - - -
v standvol fsgen ENABLED 307200 - ACTIVE - -
pl standvol-01 standvol ENABLED 307200 - ACTIVE - -
sd rootdisk01-01 standvol-01 ENABLED 307200 0 - - -
v swapvol swap ENABLED 8356864 - ACTIVE - -
pl swapvol-01 swapvol ENABLED 8356864 - ACTIVE - -
sd rootdisk01-02 swapvol-01 ENABLED 8356864 0 - - -
v tmpvol fsgen ENABLED 2097152 - ACTIVE - -
pl tmpvol-01 tmpvol ENABLED 2097152 - ACTIVE - -
sd rootdisk01-05 tmpvol-01 ENABLED 2097152 0 - - -
v usrvol fsgen ENABLED 35840000 - ACTIVE - -
pl usrvol-01 usrvol ENABLED 35840000 - ACTIVE - -
sd rootdg02-01 usrvol-01 ENABLED 35840000 0 - - -
v varvol fsgen ENABLED 9076472 - ACTIVE - -
pl varvol-01 varvol ENABLED 9076472 - ACTIVE - -
sd rootdisk01-06 varvol-01 ENABLED 9076472 0 - - -
Now, if this was an LVM system, I would figure our the second disk and go with
pvcreate -b -f
vgextend
and then lvextend -m 1
but since this is VxVM and Integrity, I don't even know which disk to take as my root mirror. Looking at these outputs above, all I can say is /dev/dsk/c1t2d0 is my primary boot disk (or is it /dev/dsk/c1t2d0s2 ?)
which disk am I going to select as my mirror disk ?
after figuring out the disk
vxdisksetup cXtXdX
vxdiskadd (syntax ??)
then I need to mirror the rootvg contents onto this new drive but how ?
Thank you for all your help.
J.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2011 09:07 AM
02-21-2011 09:07 AM
Re: Mirroring a VxVM rootdg in integrity platform
IMHO there are only a few people using VxVM - at least for boot.
You should consult the
Veritasâ ¢ Volume Manager 5.0. 1
Administrator's Guide
HP-UX 11i v3
guide chapter 2 - root disk mirrors from hp.com
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2011 09:11 AM
02-21-2011 09:11 AM
Re: Mirroring a VxVM rootdg in integrity platform
http://h20000.www2.hp.com/bizsupport/TechSupport/DocumentIndex.jsp?lang=en&cc=us&contentType=SupportManual&prodTypeId=18964&prodSeriesId=4296010&docIndexId=64255
scroll down!
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2011 09:17 AM
02-21-2011 09:17 AM
Re: Mirroring a VxVM rootdg in integrity platform
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2011 09:55 AM
02-21-2011 09:55 AM
Re: Mirroring a VxVM rootdg in integrity platform
This may work, though its not working very well for me.
/etc/vx/bin/vxbrk_rootmir -v -g drd_rootdg disk27
VxVM vxbrk_rootmir INFO V-5-2-4023 11:49: Checking specified disk(s) for presence and type
VxVM vxbrk_rootmir INFO V-5-2-4679 11:49: Using new-style DSF names
VxVM vxbrk_rootmir INFO V-5-2-4025 11:49: DA disk27_p2, DM rootmirr is a valid root mirror
VxVM vxbrk_rootmir INFO V-5-2-4052 11:49: Saving configuration data for later restoration
VxVM vxbrk_rootmir ERROR V-5-2-4596 More than 1 plex on DM rootmirr for optvol (optvol-02
varoptvol-02)
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2011 10:29 AM
02-21-2011 10:29 AM
Re: Mirroring a VxVM rootdg in integrity platform
But if you are allowed to do, there are several ways to convert the root disks to LVM.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2011 11:00 AM
02-21-2011 11:00 AM
Re: Mirroring a VxVM rootdg in integrity platform
I was in a hurry and got this from HP support which seems to work.
vxprint -g rootdg | grep ^pl | grep -F "02" | awk '{printf "vxplex -g rootdg -o
rm dis %s\n", $2}' > /tmp/rmplex.sh
vi /tmp/rmplex.sh
sh /tmp/rmplex.sh
vxprint list all
vxdisk -o alldgs list
vxprint -g rootdg
vxdg -g rootdg rmdisk rootmirr
vxprint -g rootdg
rootmirr was the name of my root mirror
Be careful. I'm very new to vxvm but thus far have not clobbered my system.
First thing I did before doing any of this is an ignite make_net_recovery backup.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2011 11:03 AM
02-21-2011 11:03 AM
Re: Mirroring a VxVM rootdg in integrity platform
I am running VxVM v4.1 on HPUX 11.23 over Rx3600 series hardware.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2011 11:07 AM
02-21-2011 11:07 AM
Re: Mirroring a VxVM rootdg in integrity platform
"Veritas File System 4.1 Administrator's Guide (HP-UX 11i v3, February 2007)"
document.
Copy the link will not work, just search it on the page.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2011 12:24 PM
02-21-2011 12:24 PM
Re: Mirroring a VxVM rootdg in integrity platform
I am extremely new to VxVM too!! Here you will see terms like "plex", "volume", and "disk group" . However, the vxrootmir command is one of the biggest advantage if any as you don't have to bother about the L.V's, label file, LVM headers {PVRA,VGSA,MCR etc}, LIF and BDRA in LVM TERMS. One command vxrootmir does all that for you.
1) Identify an available disk {search for â online invalidâ } disk
vxdisk â o alldgs list
2) Overwrite any headers in the first 1GB at the top of the new mirror
dd if=/dev/zero of=/dev/rdsk/cxtxdx bs=1048576 count=1024
3) Configure cxtxdx as the alternate VxVM boot disk {mirroring of the boot disk volumes}
/etc/vx/bin/vxrootmir -v cxtxdx
4)Determine the new boot diskâ s hardware path and add it to the appropriate boot order
ioscan â k /dev/dsk/cxtxdx {so this would be the disk you fired a dd on}
Add that new boot disk hardware path with
setboot â h
setboot â a
To set the alternate path and HAA path if the server is capable of "high availability alternate" path
Populate the HPSP partition if you want!
The boot and VxVM headers are automatically created with vxrootmir and makes your job easier and you don't have to write that 'for' script or continuosly extend the mirrors with lvextend accross all the L.Vs, again in LVM terms
I am pretty sure the efi_ls and setboot commands remain consistent and lvlnboot would be a vxvmboot here, so if you want to check your consistency on NVRAM or boot area or the contents of integrity boot disk structures, you could do that else just boot the mirror!!
Hope this helps. Please don't forget to assign points.
Regards
Ismail Azad