PDA

View Full Version : copy from one app's volume to volume in another app


jonesy
01-06-2008, 03:51 AM
I've provisioned the LampCluster app, and I want to copy this really enormous sql dump file from the volume on the old app (I'll call it "old") to a volume on my new app (I'll call it "new").

What I'm currently doing is:
vol copy old:dumpvol new:dumpvol

Then, I told my dbase server in 'new' to mount 'dumpvol' next time I start the new application. However, this is really slow and tedious, as I'm forced to copy a 100GB volume instead of the 8GB (compressed) dump file.

My other option, as I see it, is to scp the dump file down to my local machine, then scp it up again, but that would likely take just as long as copying the whole volume. Any reason 3tera can't just give me something of a more complete controller shell so I can directly manipulate the files on the various app volumes without all of these crazy antics? (whoops, maybe this should've gone into the 'features' area).

Please let me know if I'm able to copy, say, old:dumpvol:/dump.sql new:somevol:/dump.sql - where 'dumpvol' and 'somevol' are different volumes belonging to different applications, and are not copies of each other.

thanks.

jonesy
01-06-2008, 03:57 AM
I decided I could do 'vol move' which is (as I expected) much much much faster. However, the question still stands, because this is useful stuff to know anyway (I may have another use for this information where a 'move' would not be suitable).

thanks again.

JosephD
01-09-2008, 12:36 AM
Solve for this issue is found on this thead.

http://support.3tera.net/showthread.php?t=203

Joseph
3tera

jonesy
01-11-2008, 02:38 PM
That thread does not answer the question. To be clear, the question is (quoted from above):

"Please let me know if I'm able to copy, say, old:dumpvol:/dump.sql new:somevol:/dump.sql - where 'dumpvol' and 'somevol' are different volumes belonging to different applications, and are not copies of each other."

I'm still curious about that answer.
Thanks!

PeterNic
01-18-2008, 03:09 AM
Brian,

You are correct; the topic Joseph linked to doesn't seem to address your question.

There are really two questions:

Q. How can you copy only the 8GB dump file rather than the whole 100GB volume?
A. Use the --fscopy option of 'vol copy'. This will do a file-by-file copy of the volume rather than block-by-block. The only requirement is that the AppLogic controller has built-in support for the file system of the volume (which I assume is the case). The --fscopy option can also be used when changing the size of the volume.

Q. "Any reason 3tera can't just give me something of a more complete controller shell so I can directly manipulate the files on the various app volumes without all of these crazy antics?"
A. No, in fact we are working on a new way of providing access to passive volumes (i.e., volumes that are not currently attached to any running appliance). You will have the volume mounted as if it was a second hard disk in a physical server. This will allow us to give you full Linux shell (root) when accessing passive volumes.

Regards,
-- Peter