[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference aosg::lsm

Title:LSM
Moderator:SMURF::SHIDERLY
Created:Mon Jan 17 1994
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:803
Total number of notes:2852

756.0. "copying raw LSM volumes?" by DYOSW5::WILDER (Does virtual reality get swapped?) Thu Feb 13 1997 22:08

    My customer has 9 4GB spindles in an LSM diskgroup. This disk group is
    carved into 46 raw volumes, striped across all 9 disks. They want to
    make a copy of the data onto another set of 9 spindles. This is because
    they will be running tests, and need to "reload" the original data back
    onto the first set of disks. Therefore, they will do dg1 --> dg2, and
    then there will be several dg2 --> dg1.
    
    They would like to use dd. My question is: can I use dd with if=  and
    of=  being raw LSM volumes and do this for all 46 LSM volumes? Is dd
    LSM aware? Is there another/better way of doing this? If there is, what
    would be the syntax? For that matter, if dd will work, what would be
    the syntax of the dd command, including blocking factor?
    
    Thanks in advance for your help.
    
    /jim
    
T.RTitleUserPersonal
Name
DateLines
756.1Snapstart / snapshot feature of volplex is what you need.BACHUS::DEVOSManu Devos DEC/SI Brussels 856-7539Mon Feb 17 1997 08:4616
Hi,

Have a look in volplex(8) snapstart and snapshot operation.

But, to use that feature, you first need to integrate the 9 new disks
in LSM, and then create 46 plexes with the same size/characteristic as
the existing one.

Before starting your test, you make a snapstart of each of your 46 volumes
with the 46 newly created plexes, then, when the copy is finished, you can
make a snapstart to create 46 new volume with the old data.

Then run your test, and once you need to reload your data, simply revert 
the snapstart/snapshot operation.

Regards, Manu.
756.2okay, but another issueDYOSW5::WILDERDoes virtual reality get swapped?Mon Feb 17 1997 13:340
756.3Okay, but another issueDYOSW5::WILDERDoes virtual reality get swapped?Mon Feb 17 1997 13:3714
Okay, we'll look into volplex snapshot. However, this brings up 
another issue.

When the customer created the LSM disk group with the original 9 
disks, they took the default of 10 for the maximun number of disks 
that will be in the disk group. Now, if I add 9 more disks for the 
volplex, the disk count will be 18, which is obviously more than 10. 
What problems will this cause? Is there a way to increase the maximun 
number of disks allowed in an existing disk group?

Thanks in advance.

/jim

756.4BACHUS::DEVOSManu Devos DEC/SI Brussels 856-7539Tue Feb 18 1997 07:3122
Jim,

Don't worry. The default answer of 10 is only used to figure out how much
space should be given to the LSM PRIVate area on the disk. You will get 
512 sectors for the config and I think it should be enough to store about
300 records. 

With 18 disks + 2x46 sub-disks + 2x46 plexes + 46 volumes, you reach about
250 records.

If you are missing some space, then you can still decrease the default number
of configuration in ALL your disks with the command:

	# voldisk moddb nconfig=1 rzxx

and repeat it for all the disk of the diskgroup such that 

	# voldg list diskgroup

shows that you only have ONE configuration in ALL your disks.

Regards, Manu.
756.5How to "restore"?DYOSW5::WILDERDoes virtual reality get swapped?Fri Feb 21 1997 10:2313
    Well volplex(8) snapstart and snapshot seem to work fine for making 
    the first copy. However, reversing it is not as easy. The plex copied
    to it appears must not be in a volume. Removing the original volumes
    does not work because the original volumes are drd in a TruCluster
    system. There doesn't seem to be any easy way to bring the copied
    plexes back over the original - like doing a restore from tape.
    
    Unless someone has some EASY script that guarantees that there will be
    no problems with the underlying structure that clusters needs, I guess
    I will resort to using dd - slow but it will work.
    
    /jim
    
756.6BACHUS::DEVOSManu Devos DEC/SI Brussels 856-7539Mon Feb 24 1997 07:2720
Hello Jim,

You are right, it is not easy to reverse it.

What you can do is:

1) stop the database after the test.
2) stop every LSM volumes of the database
3) Make all plexes of these LSM volume STALE 
4) Dissociate the "backup" plexes from the snapstarted voluumes.
5) Attach them to the original volume and make them clean
6) Restart the database volumes. As the moved plexes are CLEAN and the
   other plexes are STALE, the volumes will be synchronized on the CLEAN
   plexes. But you still have to wait the end of the synchronisation before
   restarting your test to avoid impairing the performance of the test by
   the synchronisation process.

But, anyway, dd would be most likely easier to use if your are not an LSM expert.

Regards, Manu.
756.7Thanks...using ddDYOSW5::WILDERDoes virtual reality get swapped?Tue Feb 25 1997 10:237
    Well, we have the dd scripts setup. Can can dd 36GB per system (72GB in
    total) in about 50 minutes. This is accepptable to the customer.
    
    Thanks for all the help. I will try the last response in the future.
    
    /jim