System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

DRD clone mirrored root_dg to one disk

 
gigiz
Valued Contributor

DRD clone mirrored root_dg to one disk

Hi guys, 

i have this scenario:

rootdg with 4 disk:

 

dm disk7_p2 disk7_p2 auto 1024 92825504 -
dm rootdisk02 disk6_p2 auto 1024 62551968 -
dm rootmir1 disk9_p2 auto 1024 62550944 -
dm rootmir2 disk10_p2 auto 1024 92825504 -

 

The 62 Gb disks are primary and mirrored of O.S. system

The 92 Gb disk are a secondary Swap.

 

Now i have a 67 Gb disk for clone a rootdg but the error is :

drd The total volume sizes in disk group: "drd_rootdg"  exceed the available capacity by 57243Mb.

 

I have any questions :

Can i clone a DG or VG mirrored  in one clone disk without mirror ?

For a Dg/Vg mirrored what size disk i must use, the total space disk (primary disk+mirrored disk) or also the size of one disk (primary)?

Exist a option for exclude  a mirror for a clone ?

In the count of disk for a clone i must count a SECONDARY SWAP ? 

 

In this situation if i want use one also disk , what size of disk i must  use?

 

What is a clone best practice for this scenario ?

 

Thanks a lot

 

 

 

 

 

13 REPLIES
Torsten.
Acclaimed Contributor

Re: DRD clone mirrored root_dg to one disk

Never done this with VxVM, but a clone is always unmirrored. It is just a clone of the OS. Looks like you need more space even for the unmirrored clone.


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!   
gigiz
Valued Contributor

Re: DRD clone mirrored root_dg to one disk

Why always unmirrored?

Can you explain me?

Thanks a lot 

Torsten.
Acclaimed Contributor

Re: DRD clone mirrored root_dg to one disk

The clone will be mirrored if you specify "-x mirror_disk" only.


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!   
gigiz
Valued Contributor

Re: DRD clone mirrored root_dg to one disk

I don't want mirror a clone.
I want clone a mirror dg in a disk
Torsten.
Acclaimed Contributor

Re: DRD clone mirrored root_dg to one disk

This is was I told you.

 

By default you create a non-mirrored clone, even from a mirrored disk.


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!   
gigiz
Valued Contributor

Re: DRD clone mirrored root_dg to one disk

Ok it's clear.
now another question.
Can i user mutiple target disk for clone?
example:
/opt/drd/bin/drd clone -v -x ignore_unmounted_fs=true -p -t /dev/disk/disk244 -t /dev/disk/disk245

can i user disk244 and disk245 o i must use one target with a total size of two disk?
Torsten.
Acclaimed Contributor

Re: DRD clone mirrored root_dg to one disk

This is what the manual says:

"...The target's physical disk need not be as lar ge as the disk allocated for the root group, as long
as there is enough space for a copy of each logical volume in the root group. However , the disk
needs to be lar ger than the used space in each logical volume because each logical volume will
be created with the number of physical extents currently allocated to the corresponding root group
logical volume ..."


You can use a single target only.

 

 

Maybe you can delete the secondary swap during the cloning?


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!   
gigiz
Valued Contributor

Re: DRD clone mirrored root_dg to one disk

Ok i have used one disk of 200 Gb. Now the space is no longer a problem.

 

/opt/drd/bin/drd clone -vv -p  -x overwrite=true  -t /dev/disk/disk249

 

Now i have another error :

 

* The command "vxrootmir" is being invoked. This step will take some time......
ERROR: Clone file system creation fails.
- Creating the target file systems fails.
- Command "/usr/lib/vxvm/bin/vxbrk_rootmir" fails. The entire output from the command is given below:
- Start of output from /usr/lib/vxvm/bin/vxbrk_rootmir:
- VxVM vxbrk_rootmir INFO V-5-2-4023 12:14: Checking specified disk(s) for presence and type
VxVM vxbrk_rootmir ERROR V-5-2-4943 Some disks in rootdg disk group do not contain all boot volumes

- End of output from /usr/lib/vxvm/bin/vxbrk_rootmir
* Creating New File Systems failed with 1 error.
* Unmounting New System Image Clone
* System image: "sysimage_001" on disk "/dev/disk/disk249"
* Cleaning up after clone errors.
* DRD operation failed, contents of /var/opt/drd/tmp copied to /var/opt/drd/save.

 

HELP ME

Torsten.
Acclaimed Contributor

Re: DRD clone mirrored root_dg to one disk

I think your issue is now here:

 

dm disk7_p2 disk7_p2 auto 1024 92825504 -
dm rootdisk02 disk6_p2 auto 1024 62551968 -
dm rootmir1 disk9_p2 auto 1024 62550944 -
dm rootmir2 disk10_p2 auto 1024 92825504 -

 

 

VxVM vxbrk_rootmir ERROR V-5-2-4943 Some disks in rootdg disk group do not contain all boot volumes

 

 

 

Hopefully somebody with good VxVM knowledge will find this thread ...


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!   
gigiz
Valued Contributor

Re: DRD clone mirrored root_dg to one disk

i have find this post :
http://h30499.www3.hp.com/t5/System-Administration/DRD-spits-up-error-on-disk-not-in-vxvm-disk-group/td-p/4756030

its interessant but at the moment i can't install patch.
I'm interessed to a Hack o work around.

Any idea ??
gigiz
Valued Contributor

Re: DRD clone mirrored root_dg to one disk

anyone know Steven E. Protter .
I asked him by mail about a workaround, but i havenì't response.
thanks
Dennis Handly
Acclaimed Contributor

Re: DRD clone mirrored root_dg to one disk

>anyone know Steven E. Protter?

 

His last post was 2013-01-15.  He is no longer on the EBC forum daily.

gigiz
Valued Contributor

Re: DRD clone mirrored root_dg to one disk

I read a vxbrk_rootmir:
in the script i see this:

#
# Check if the bootdg contains any extra disks in addition to the disks
# containing the boot volumes and their mirrors (apart from the specified dm).
# If yes, then abort the operation here.
# This is a restriction which was put for MBNA when this script was developed.
# The way the breakoff is done in this script is by patching the "dgname"
# using vxprivutil. Since this is not a transactional way of doing things,
# this restriction was imposed.
#

any idea?