- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vxvm mirror for data disks
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
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
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-19-2008 06:54 AM
тАО09-19-2008 06:54 AM
vxvm mirror for data disks
I am using hp-ux 11.31 with my root disk on lvm and data file system layout on vxvm. Now I have a requirement to migrate my data volumes to another emc array. I know that with lvm you could mirror on the new disk and then do an lvreduce specifically on the old disk.Now if someone can help me on the following
1) how do I mirror and existing volume on a partucalr disk
like lvextend -m 1 /dev/vgora/vol1 /dev/dsk/c0t0d1
2) Similar command lvreduce -m 0 /dev/vg0ra/vol1 olddisk
3) is there any specific licence for vxvm mirror it if yes
how do i check it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2008 07:43 AM
тАО09-19-2008 07:43 AM
Re: vxvm mirror for data disks
read here.
http://www.docs.hp.com/en/5992-4589/ch03s04.html#cbddaicd
2) correct
3) vxlicrep for starters.
The rest of the info is found here.
http://www.docs.hp.com/en/oshpux11iv3.html#VxVM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2008 07:46 AM
тАО09-19-2008 07:46 AM
Re: vxvm mirror for data disks
Your 1st two bullets indicate LVM managed entities ( mirroring requires the purchase of Mirror/UX ).
Your last bullet references a VxVM question.
Just checking to see that we do not confuse anything. LVM is LVM and VxVM is VxVM. The commands are not interchangable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2008 08:00 AM
тАО09-19-2008 08:00 AM
Re: vxvm mirror for data disks
swlist |grep -i mirror
then to check vxfs license:
vxlicrep or vxlicence command will help
# vxlicense -p
vrts:vxlicense: INFO: Feature name: HP_OnlineJFS [50]
vrts:vxlicense: INFO: Number of licenses: 1 (non-floating)
vrts:vxlicense: INFO: Expiration date: Sun Jun 24 10:00:00 2007 (107.0 days ago) <== Lizenz is abgelaufen!
vrts:vxlicense: INFO: Release Level: 22
vrts:vxlicense: INFO: Machine Class: All
vrts:vxlicense: INFO: Site ID: 0
lvextend -m 1 /dev/vgora/vol1 /dev/dsk/c0t0d1 is exactly OK
lvreduce -m 0 /dev/vg0ra/vol1 olddisk this ios also right
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2008 10:33 AM
тАО09-19-2008 10:33 AM
Re: vxvm mirror for data disks
1. vxmirror -g
(before that you would need to add the newdisk in the diskgroup as with vgextend. "vxdg -g diskgroup adddisk disk=diskpath)
2. vxplex -o rm dis
(vxdg -g disk-group rmdisk disk-name, the vgreduce equivalent)
3. You need the full version of VxVM, you can not do this with BaseVxVM.
As an alternative (I think much better than mirroring), you should also look at the vxevac command which is the equivalent of the "pvmove" command.
vxevac -g diskgroup old-disk new-disk
(you still need to add the new-disk to the diskgroup and after the vxevac remove the old-disk).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2008 10:44 AM
тАО09-19-2008 10:44 AM
Re: vxvm mirror for data disks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2008 01:01 PM
тАО09-19-2008 01:01 PM
Re: vxvm mirror for data disks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2008 01:13 AM
тАО09-20-2008 01:13 AM
Re: vxvm mirror for data disks
> 3) is there any specific licence for vxvm
> mirror it if yes
To mirror datavolumes you will need the vxvm full license.
You can check if with the vxdctl license command.
yakuza # vxdctl license
All features are available:
Mirroring <<<< This is what you need.
Root Mirroring
Concatenation
Disk-spanning
Striping
RAID-5
VxSmartSync
Array Snapshot Integration Feature
Clustering-lite
FastResync
DGSJ
Site Awareness
DMP (multipath enabled)
CDS
Hardware assisted copy
If you have the "Mirroring" line, you can vxvm mirror.
If you dont have the mirroring line, install product B9116CA, which includes the full vxvm license, which will add the "Mirroring" line.
Note : the above system has a lot more licenses available then even the B9116CA will give, as it has one of the sms (=storage management suite) 2.0 bundles installed, which installs except for the mirroring license also a lot of other licenses.
yakuza # swlist
[cut]
T2774CB A.02.00 HP Serviceguard Storage Management for Oracle Premium
> I know that with lvm you could mirror on
> the new disk and then do an lvreduce
> specifically on the old disk.Now if
> someone can help me on the following
You can "emulate" youre lvm procedure without problem in vxvm.
See beneath procedure. (Which will first setup a diskgroup with a couple of xp12k luns and create volumes on it.. and then will show how to move this volumes to another diskarray, in this case a xp24k diskarray)
1. setup
yakuza # vxdmpadm listenclosure all
ENCLR_NAME ENCLR_TYPE ENCLR_SNO STATUS ARRAY_TYPE
============================================================================
[cut]
XP10K-12K0 XP10K-12K 0274F CONNECTED A/A
XP10K-12K1 XP10K-12K 02770 CONNECTED A/A
>> CONCLUSION -- yakuza has a xp12k (ENCLR_NAME=XP10K-12K0) diskarray and a xp24k diskarray (ENCLR_NAME=XP10K-12K1) connected to it.
yakuza # vxdmpadm listctlr all
CTLR-NAME ENCLR-TYPE STATE ENCLR-NAME
=====================================================
[cut]
c20 XP10K-12K ENABLED XP10K-12K0
c11 XP10K-12K ENABLED XP10K-12K0
c26 XP10K-12K ENABLED XP10K-12K1
c23 XP10K-12K ENABLED XP10K-12K1
>> CONCLUSION -- c20/c11 are the devicefiles for the 2 "paths" leading to the xp12k, c23/c26 are the devicefiles for the 2 paths leading to the xp24k
yakuza # vxdisk -o alldgs -e list
DEVICE TYPE DISK GROUP STATUS OS_NATIVE_NAME
disk626 auto - (irmdg) online c20t4d1
disk629 auto - (irmdg) online c20t4d2
[cut]
disk537 auto - (irmdg) online c23t1d5
disk538 auto - (irmdg) online c23t1d6
>> CONCLUSION -- picking up 2 luns of the xp12k and 2 luns of the xp24k.. which are part of the deported irmdg diskgroup .. but as this is a testsystem connected to teststorage, I can destroy what I like ;)
2. uninitialize the choosen luns.
yakuza # cd /usr/lib/vxvm/bin
yakuza # ./vxdiskunsetup -C disk626
yakuza # ./vxdiskunsetup -C disk629
yakuza # ./vxdiskunsetup -C disk537
yakuza # ./vxdiskunsetup -C disk538
>> CONCLUSION -- more or less forcely (-C) uninitialized the choosen luns.
yakuza # vxdisk -o alldgs list|grep
-e "disk626" -e "disk629"
-e "disk537" -e "disk538"
DEVICE TYPE DISK GROUP STATUS
disk626 auto:none - - online invalid
disk629 auto:none - - online invalid
disk537 auto:none - - online invalid
disk538 auto:none - - online invalid
>> CONCLUSION -- status of luns changed to "online invalid"
3. initialize the choosen luns
yakuza # ./vxdisksetup -i disk626
yakuza # ./vxdisksetup -i disk629
yakuza # ./vxdisksetup -i disk537
yakuza # ./vxdisksetup -i disk538
yakuza # vxdisk -o alldgs list|grep
-e "disk626" -e "disk629"
-e "disk537" -e "disk538"
DEVICE TYPE DISK GROUP STATUS
disk626 auto:cdsdisk - - online
disk629 auto:cdsdisk - - online
disk537 auto:cdsdisk - - online
disk538 auto:cdsdisk - - online
>> CONCLUSION -- status of the online luns changed to "online"
4. now create a diskgroup which only takes luns from the xp12k diskarray and create some volumes on it.
disk626 and disk629 are part of the xp12k diskarray (see above)
yakuza # vxdg init whitedg whitedg01=disk626
yakuza # vxdg -g whitedg adddisk whitedg02=disk629
yakuza # vxassist -g whitedg make vola 100m
[root@yakuza]/usr/lib/vxvm/bin
yakuza # vxassist -g whitedg make volb 100m !disk629
NOTE: ! translates with "vxassist make" to "on". (i.e. create 100m volume volb "on(=!)" disk629 )
[root@yakuza]/usr/lib/vxvm/bin
yakuza # vxprint -th -g whitedg
DG NAME NCONFIG NLOG MINORS GROUP-ID
ST NAME STATE DM_CNT SPARE_CNT APPVOL_CNT
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
RV NAME RLINK_CNT KSTATE STATE PRIMARY DATAVOLS SRL
RL NAME RVG KSTATE STATE REM_HOST REM_DG REM_RLNK
CO NAME CACHEVOL KSTATE STATE
VT NAME RVG KSTATE STATE NVOLUME
V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE
SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE
SC NAME PLEX CACHE DISKOFFS LENGTH [COL/]OFF DEVICE MODE
DC NAME PARENTVOL LOGVOL
SP NAME SNAPVOL DCO
EX NAME ASSOC VC PERMS MODE STATE
SR NAME KSTATE
dg whitedg default default 9000 1221899661.336.yakuza
dm whitedg01 disk626 auto 32768 20438144 -
dm whitedg02 disk629 auto 32768 20438144 -
v vola - ENABLED ACTIVE 102400 SELECT - fsgen
pl vola-01 vola ENABLED ACTIVE 102400 CONCAT - RW
sd whitedg01-01 vola-01 whitedg01 0 102400 0 c20t4d1 ENA
v volb - ENABLED ACTIVE 102400 SELECT - fsgen
pl volb-01 volb ENABLED ACTIVE 102400 CONCAT - RW
sd whitedg02-01 volb-01 whitedg02 0 102400 0 c20t4d2 ENA
>> CONCLUSION -- vola took randomly space on 1 of the disks.. volb was specified to take space on disk629=c20t4d2
5. for completeness
yakuza # vxdisk -o alldgs -e list|grep
-e "disk626" -e "disk629"
-e "disk537" -e "disk538"
DEVICE TYPE DISK GROUP STATUS OS_NATIVE_NAME
disk626 auto whitedg01 whitedg online c20t4d1
disk629 auto whitedg02 whitedg online c20t4d2
disk537 auto - - online c23t1d5
disk538 auto - - online c23t1d6
6. add the xp24k luns "disk537" , "disk538" to the diskgroup whitedg
yakuza # vxdg -g whitedg adddisk whitedg03=disk537 whitedg04=disk538
[root@yakuza]/usr/lib/vxvm/bin
yakuza # vxdisk -g whitedg list
DEVICE TYPE DISK GROUP STATUS
disk626 auto:cdsdisk whitedg01 whitedg online
disk629 auto:cdsdisk whitedg02 whitedg online
disk537 auto:cdsdisk whitedg03 whitedg online
disk538 auto:cdsdisk whitedg04 whitedg online
7. mirror volume vola and volume volb to the luns of the xp24k diskarray
yakuza # vxassist -g whitedg mirror vola mirror=enclr
[root@yakuza]/usr/lib/vxvm/bin
yakuza # vxassist -g whitedg mirror volb mirror=enclr
[root@yakuza]/usr/lib/vxvm/bin
yakuza # vxprint -th -g whitedg
DG NAME NCONFIG NLOG MINORS GROUP-ID
ST NAME STATE DM_CNT SPARE_CNT APPVOL_CNT
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
RV NAME RLINK_CNT KSTATE STATE PRIMARY DATAVOLS SRL
RL NAME RVG KSTATE STATE REM_HOST REM_DG REM_RLNK
CO NAME CACHEVOL KSTATE STATE
VT NAME RVG KSTATE STATE NVOLUME
V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE
SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE
SC NAME PLEX CACHE DISKOFFS LENGTH [COL/]OFF DEVICE MODE
DC NAME PARENTVOL LOGVOL
SP NAME SNAPVOL DCO
EX NAME ASSOC VC PERMS MODE STATE
SR NAME KSTATE
dg whitedg default default 9000 1221899661.336.yakuza
dm whitedg01 disk626 auto 32768 20438144 -
dm whitedg02 disk629 auto 32768 20438144 -
dm whitedg03 disk537 auto 32768 51158144 -
dm whitedg04 disk538 auto 32768 51158144 -
v vola - ENABLED ACTIVE 102400 SELECT - fsgen
pl vola-01 vola ENABLED ACTIVE 102400 CONCAT - RW
sd whitedg01-01 vola-01 whitedg01 0 102400 0 c20t4d1 ENA
pl vola-02 vola ENABLED ACTIVE 102400 CONCAT - RW
sd whitedg03-01 vola-02 whitedg03 0 102400 0 c23t1d5 ENA
v volb - ENABLED ACTIVE 102400 SELECT - fsgen
pl volb-01 volb ENABLED ACTIVE 102400 CONCAT - RW
sd whitedg02-01 volb-01 whitedg02 0 102400 0 c20t4d2 ENA
pl volb-02 volb ENABLED ACTIVE 102400 CONCAT - RW
sd whitedg04-01 volb-02 whitedg04 0 102400 0 c23t1d6 ENA
>> CONCLUSION -- vola was moved to lun disk537 of the xp24k. volb was moved to lun disk538 of the xp24k
8. remove the original mirrors from the xp12k
yakuza # vxassist -g whitedg remove mirror vola !enclr:XP10K-12K0
NOTE: !=translates with "remove" as "from" (i.e. remove mirror vola "from (=!)" enclosure XP10K-12K0
NOTE2:You need to be carefull with the (!) sign.. sometimes with some attributes/commands it translates as "on" sometimes as "from".. (so be sure to test it out first on a testsystem.. before "doing it on a "real" volume)
yakuza # vxassist -g whitedg remove mirror volb !enclr:XP10K-12K0
yakuza # vxprint -th -g whitedg
DG NAME NCONFIG NLOG MINORS GROUP-ID
ST NAME STATE DM_CNT SPARE_CNT APPVOL_CNT
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
RV NAME RLINK_CNT KSTATE STATE PRIMARY DATAVOLS SRL
RL NAME RVG KSTATE STATE REM_HOST REM_DG REM_RLNK
CO NAME CACHEVOL KSTATE STATE
VT NAME RVG KSTATE STATE NVOLUME
V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE
SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE
SC NAME PLEX CACHE DISKOFFS LENGTH [COL/]OFF DEVICE MODE
DC NAME PARENTVOL LOGVOL
SP NAME SNAPVOL DCO
EX NAME ASSOC VC PERMS MODE STATE
SR NAME KSTATE
dg whitedg default default 9000 1221899661.336.yakuza
dm whitedg01 disk626 auto 32768 20438144 -
dm whitedg02 disk629 auto 32768 20438144 -
dm whitedg03 disk537 auto 32768 51158144 -
dm whitedg04 disk538 auto 32768 51158144 -
v vola - ENABLED ACTIVE 102400 SELECT - fsgen
pl vola-02 vola ENABLED ACTIVE 102400 CONCAT - RW
sd whitedg03-01 vola-02 whitedg03 0 102400 0 c23t1d5 ENA
v volb - ENABLED ACTIVE 102400 SELECT - fsgen
pl volb-02 volb ENABLED ACTIVE 102400 CONCAT - RW
sd whitedg04-01 volb-02 whitedg04 0 102400 0 c23t1d6 ENA
>> CONCLUSION -- volumes only available on the xp24k diskarray
9. remove the "freed up" xp12k luns from the whitedg diskgroup
yakuza # vxdg -g whitedg rmdisk whitedg01
yakuza # vxdg -g whitedg rmdisk whitedg02
yakuza # vxdisk -g whitedg list
DEVICE TYPE DISK GROUP STATUS
disk537 auto:cdsdisk whitedg03 whitedg online
disk538 auto:cdsdisk whitedg04 whitedg online
yakuza # vxdisk -o alldgs list|grep -e "disk626" -e "disk629" \^J-e "disk537">
disk626 auto:cdsdisk - - online
disk629 auto:cdsdisk - - online
disk537 auto:cdsdisk whitedg03 whitedg online
disk538 auto:cdsdisk whitedg04 whitedg online
Greetz,
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2008 05:43 AM
тАО09-22-2008 05:43 AM
Re: vxvm mirror for data disks
In my example i have migrated volumes with name "data53, data54, data55 and data56) and my volumes are striped...
1. Allocate NEW free LUNS from EMC-2 to your host
2. ioscan or whatever to scan the new disks
4. vxdctl enable
5. Attach new LUNS (vxdg -g adddisk) to YOURdg
6. Mirror the above volumes with one which is with EMC-2.
vxassist -b -g YOURdg mirror data53(volume name) layout=stripe ncols=4 disk1 disk2 disk3 disk4
vxassist -b -g YOURdg mirror data54 layout=stripe ncols=4 disk5 disk6 disk7 disk8
vxassist -b -g YOURdg mirror data55 layout=stripe ncols=4 disk9 disk10 disk11 disk12
vxassist -b -g YOURdg mirror data56 layout=stripe ncols=4 disk13 disk14 disk15 disk16
.............so on......
check with vxtask list to check if the mirror is running in the background.
7. Once SYNC is completed, remove the plexes / detach the mirror
vxplex -g YOURdg dis data53-01
vxedit -g YOURdg -r rm data52-01
vxplex -g YOURdg dis data55-01
vxedit -g YOURdg -r rm data55-01
vxplex -g YOURdg dis data56-01
vxedit -g YOURdg -r rm data56-01
vxplex -g YOURdg dis data57-01
vxedit -g YOURdg -r rm data57-01
8.do vxdiskunsetup on all the devices and
Remove the devices from YOURdg (ex 16 devices)
vxdg -g YOURdg rmdisk c4t33d226
vxdg -g YOURdg rmdisk c4t33d227
vxdg -g YOURdg rmdisk c4t33d228
vxdg -g YOURdg rmdisk c4t33d229
vxdg -g YOURdg rmdisk c4t33d242
vxdg -g YOURdg rmdisk c4t33d243
vxdg -g YOURdg rmdisk c4t33d244
vxdg -g YOURdg rmdisk c4t33d245
vxdg -g YOURdg rmdisk c4t33d246
vxdg -g YOURdg rmdisk c4t33d247
vxdg -g YOURdg rmdisk c4t33d248
vxdg -g YOURdg rmdisk c4t33d249
vxdg -g YOURdg rmdisk c4t33d250
vxdg -g YOURdg rmdisk c4t33d251
vxdg -g YOURdg rmdisk c4t33d252
vxdg -g YOURdg rmdisk c4t33d253
....so ON....
hope this helps..Best of Luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2008 05:46 AM
тАО09-22-2008 05:46 AM
Re: vxvm mirror for data disks
Licensed features:
Root Mirroring
Concatenation
Disk-spanning
Striping
Clustering-lite
DMP (single path enabled)
====================
I had one more question
1) If I have named a disk wrongly while adding the disk how can i rename it so that it can show it right in the vxdisk list command.
2) Is there any script or command to find out at one shot how many disks are in volume group I mean something like the total PV that we get from the vgdisplay command.
Thanks
white
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2008 06:34 AM
тАО09-22-2008 06:34 AM
Re: vxvm mirror for data disks
1. #vxedit rename disk01 disk03
2. #vxdisk -g