cancel
Showing results for 
Search instead for 
Did you mean: 

not able to move volume from one dg to other

sandy321
Level 4
Certified

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?

1 ACCEPTED SOLUTION

Accepted Solutions

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

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.

View solution in original post

11 REPLIES 11

g_lee
Level 6

The plex for appsvol is currently showing as detached - so this could be why it's giving the error as it doesn't consider it attached to the volume you're trying to move, so it can't move the associated subdisks.

As this is the only plex for this volume (ie: it's not mirrored) - can you try using the procedure below to attach the plex and start the volume, then try moving the volume again?

VxVM 5.0MP3 (Solaris) Administrator's Guide -> Creating and administering plexes -> Reattaching plexes
http://sfdoccentral.symantec.com/sf/5.0MP3/solaris/html/vxvm_admin/ch06s08.htm

sandy321
Level 4
Certified

i detached it purposely

i tried first with volume as enable active but still got the same error

 

and i also have other volumes on in datadg its just i dint post it here for brevity

sandy321
Level 4
Certified

does any body know what

" Objects specified are not self contained."

mean

thanks 

ScottK
Level 5
Employee

Sure, here's what non-self contained objects means.

Example:

Let's say you have a dg with 4 disks and 2 volumes.

Each volume is striped across all 4 disks.

If you try and move one of the volumes to a second dg, how do you do it? You'd have to move all 4 underlying disks. But that would move the other volume too, because the disks are shared by another object.

So perhaps a more formal definition:

The logical object (e.g., volume) you asked to move shares at least one physical object (i.e., disks/LUNs) with a different logical object you did not ask to move.

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

Maybe you can tell us??

I don't understand how c0t1d0s2 was moved to datadg while it seems to have been your rootmirror?

Have a look at it's dm name and even the subdisk:

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

 

rootdg still knows about the mirror and subdisks on mirrordisk but it shows the da name as REMOVED:

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

g_lee
Level 6

If there are other volumes in datadg (on mirrordisk), then this would be why it's failed since the objects aren't self contained, as ScottK explained in his post.

While you may have omitted the other volumes for brevity, it might help to actually mention that you've left them out next time, so anyone trying to assist knows the output is incomplete / doesn't rule out the most obvious answer just because you've neglected to include the full details.

sandy321
Level 4
Certified

i removed the mirrordisk and reinitialised it

how come rootdg knows about mirror disk still when i removed it from rootdg and added to datadg

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

I can only tell you what vxprint tells us.

It seems the disk was removed without properly removing/detaching the mirror first.

Please share the procedure that you've used to remove the disk from rootdg?

vxprint report 2 plexes with the 2nd plex and disk in REMOVED state:

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

You will have to fix this state ASAP....

About moving the volume:

Please post output of 'vxdisk list'.

It seems that you have only one disk in datadg, right? You cannot move/remove the last disk in a diskgroup.

'vxdg move' needs to move the volume and its underlying disk to the new diskgroup. datadg needs to have at least one disk to still exist.

It seems you want to in effect join the two diskgroups. 'Diskgroup split and join' can be used to accomplish this, but you need Enterprise/FlashSnap license and I'm not sure if this feature can be used with rootdg....

Do you only have this one volume on the disk or are there other volumes?

We might be able to provide better assistance if we have all relevant info...

 

 

 

sandy321
Level 4
Certified

i have 2 dg each with 1 disks

i have 3 volumes in datadg out of which i want to move 1 volume to rootdg 

is it possible

i removed the disk used by rootdg previously by detacchung the plexes and then removing volumes 1 by 1

n then initializing it in datadg

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

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.

sandy321
Level 4
Certified

thanks mariane