not able to move volume from one dg to other
i have 2 dgs rootdg and datadg as shown below
root@SDPPAP01 # vxprint -htg datadg
dg datadg default default 71000 1288246437.26.SDPPAP01
dm mirrordisk c0t1d0s2 auto 20351 143328960 -
v appsvol - DISABLED CLEAN 4194304 SELECT - fsgen
pl appsvol-01 appsvol DETACHED STALE 4194304 CONCAT - RW
sd mirrordisk-04 appsvol-01 mirrordisk 0 4194304 0 c0t1d0s2 ENA
root@SDPPAP01 # vxprint -htg rootdg
dg rootdg default default 95000 1287981732.6.SDPPAP01
dm rootdisk c0t0d0s2 auto 20351 143328960 -
v rootvol - ENABLED ACTIVE 51205632 ROUND - root
pl rootvol-01 rootvol ENABLED ACTIVE 51205632 CONCAT - RW
sd rootdg01-02 rootvol-01 rootdisk 40968575 51205632 0 c0t0d0 ENA
pl rootvol-02 rootvol DISABLED REMOVED 51205632 CONCAT - RW
sd mirrordisk-02 rootvol-02 mirrordisk 40968576 51205632 0 - RMOV
v swapvol - ENABLED ACTIVE 40968576 ROUND - swap
pl swapvol-01 swapvol ENABLED ACTIVE 40968576 CONCAT - RW
sd rootdg01-B0 swapvol-01 rootdisk 143328959 1 0 c0t0d0 ENA
sd rootdg01-01 swapvol-01 rootdisk 0 40968575 1 c0t0d0 ENA
pl swapvol-02 swapvol DISABLED REMOVED 40968576 CONCAT - RW
sd mirrordisk-01 swapvol-02 mirrordisk 0 40968576 0 - RMOV
root@SDPPAP01 # vxdg move datadg rootdg appsvol
VxVM vxdg ERROR V-5-1-4597 vxdg move datadg rootdg failed
Objects specified are not self contained.
(not all subdisks on mirrordisk are selected).
See the '-o expand' option in the vxdg(1m) man page
does anybody know whats exactly wrong over here?
You have only one disk in datadg with 3 volumes - it is not possible to move one volume to another dg as the underlying disk needs to move with it. A disk can belong to one dg only.