View Full Version : How can I access the volumes ?
The short anser: We can find this in the Product Documentation (http://doc.3tera.net).
* Click on the Support Tab of the Dash board, and click Product Documentation
* Then, Grid User's Guide -> Quick Start -> Accessing the Grid
Longer answers:
You can use ssh, scp, sftp, etc.
For any volume:
#First, the application or the appliance using the volume MUST be stopped.
#To modify (writing/removing) the volume belonging to a class, you should branch the class using AppLogic Editor or CLI, to prevent any other apps using the class from affected by the change.
(Of course, unless that's exactly what you want to do. :) )
#Mount the volume in the 3t shell CLI, and you can access it via scp, sftp.
3tShell> vol mount APP_NAME:VOLUME_NAME
or
3tShell> mount vol APP_NAME:VOLUME_NAME
Example: 3tShell> mount vol SugarCRM:data
For the r/w volumes of running apps: You can simply SSH into the desired appliance and read/write as yu want.
PeterNic
01-18-2007, 11:54 PM
For the r/w volumes of running apps: You can simply SSH into the desired appliance and read/write as yu want.
You can also copy files directly in or out of running appliances:
#scp FILENAME root@GRIDHOST:/app/APP_NAME/COMP_NAME/PATH
or
#scp root@GRIDHOST:/app/APP_NAME/COMP_NAME/PATH/FILENAME .
For example:
#scp vBulletin.tar.gz root@mygrid.3tera.net:/app/vbulletin/main.srv/root/
tomdavidson
06-30-2007, 01:58 AM
when i try to use sftp, I only show:
etc/
_impex/
lib/
i have read through the wiki page and just do not understand. my host provider claims i have to create a gateway for the volumes, access the files, and then del the gateway OR send the files to them and have them do it.
I suppose I need it explained in simpler more detailed terms.
thank you, tom
Hi Tom,
You need to mount the volume you want to access, first.
1. Log into the 3t shell with ssh or GUI, issue "ca APPNAME" and "mount vol VOLNAME"
2. Use sftp and cd into the directory of the APPNAME.
Then you will see the volume.
Don't forget to unmount once you have done with sftp operation.
Nobu
tomdavidson
07-02-2007, 05:32 PM
thank you. this is progress - i think, but I get the following:
BRZ vTigerCRM> mount vol config
Mounting volume vTigerCRM:config on /vol/vTigerCRM/config ...
Failed to mount volume 'vTigerCRM:config'.
-tom
tomdavidson
07-02-2007, 09:58 PM
i had the app running. I have access now. thank you for the right direction. I had wasted alot of time on my host's support, but resolved it quickly here.
-tom
Glad to hear you got it. :)
(Sorry. I forgot to mention about stopping the app before mounting its volume)
Nobu
Anthony
08-18-2007, 02:53 PM
I want to bring this thread back up since the question as to how to transfer to a live app.
I used the method as Peter said, but it can't find the app.
Heres the command I used:
scp file.tar.gz root@IPaddressOfController:/app/AppName/main.content/mnt/data
It then comes up as 'No such file or directory'. I've tried all different kinds of combinations without any luck.
What am I doing wrong?
Version is 2.0.2.
PeterNic
08-18-2007, 08:53 PM
Anthony,
This should work. One possible reason is if you are using Putty's pscp as a scp client; that doesn't work for scp to live apps since it actually doesn't use the scp protocol (uses sftp instead). If so, try a different client -- post here if you find a good scp client for Windows.
If you can't copy into a live appliance from Linux scp client, please PM Jessie and arrange a support call.
Regards,
-- Peter
PeterNic
08-18-2007, 09:10 PM
Another possible reason: for the copy from/to live app to work, you must be using a ssh key that corresponds to a regular user, not a maintainer. The maintainer keys must not be available during the scp operation (e.g., check the ssh agent, too).
Note: this possible cause affects only those users who have licensed the AppLogic software for installing on their own hardware; users of hosted grids will not experience this problem.
Anthony
08-20-2007, 12:17 PM
That was it, needed to use the regular user key. Thanks!
PeterNic
03-03-2008, 04:16 AM
It is possible to access the filesystem of a running appliance using scp. This page briefly shows how:
http://doc.3tera.net/AppLogic2/GridAccess.html
One caveat: if your client is a Windows machine and you use PuTTY, WinSCP or FileZilla, you will not be able to access the live appliance (although all other access types work). This is because these utilities use the sftp protocol even when you ask them to do scp.
The alternative is to use the Cygwin package for Windows; its OpenSSH scp client works properly. For more information, see http://support.3tera.net/showthread.php?p=758#poststop
Regards,
-- Peter
andybrucenet
08-04-2011, 11:37 AM
This is a late response to an old thread, but I was hunting how to do a bulk upload to a non-running application volume and trying to use the (obsolete) rmacros.sh scripting support (short answer: I cannot get them to work).
In case any one else finds this page, here is a good tip for you: Peter's phrase that "cygwin scp won't work because it uses sftp" is not correct. Rather, it is, but that's the point; scp and sftp are the same thing. Both use SSH to connect and both spawn an SFTP server on the backend (it's spawned automatically as part of the SSH connection).
SCP uses SFTP under the covers (the difference is the front-end client, not the protocol). For those who (like me) would not believe any of this and have a healthy sense of assertive curiosity, see this excellent blog derived from an O'Reilly book: http://docstore.mik.ua/orelly/networking_2ndEd/ssh/ch03_08.htm
HTH, Andy
PeterNic
08-08-2011, 05:06 PM
Thanks, Andy.
I will ping the maintainer of the rmacros.sh scripts - I believe these should be still working. Which version of AppLogic did you have the problem with?
Best regards,
- Peter
LeoKalev
08-09-2011, 12:36 AM
WRT: rmacros.sh. This is still maintained and should work on AppLogic 3.0 (I am using it myself with 3.0). NOTE that the version currently available on the publicly-visible documentation site is out of date. The new version is only in the Wiki pages (on the AppLogic 2.9 documentation web), but this is no longer being mirrored to doc.3tera.com, so you need access to the Wiki to get the file. More info and an attached copy of the current rmacros.sh here:
http://forum.3tera.com/showthread.php?t=3741
...
In case any one else finds this page, here is a good tip for you: Peter's phrase that "cygwin scp won't work because it uses sftp" is not correct. Rather, it is, but that's the point; scp and sftp are the same thing. Both use SSH to connect and both spawn an SFTP server on the backend (it's spawned automatically as part of the SSH connection).
SCP uses SFTP under the covers (the difference is the front-end client, not the protocol). For those who (like me) would not believe any of this and have a healthy sense of assertive curiosity, see this excellent blog derived from an O'Reilly book: http://docstore.mik.ua/orelly/networking_2ndEd/ssh/ch03_08.htm
...
This must have been a typo on Peter's side - he is referring to another Windows-based scp client: the PuTTY implementation of 'scp', not to that of Cygwin. Cygwin has the vanilla 'scp' (runs on the standard scp protocol), however PuTTY's 'scp' uses SFTP.
LeoKalev
08-09-2011, 01:00 AM
This is a late response to an old thread, but I was hunting how to do a bulk upload to a non-running application volume and trying to use the (obsolete) rmacros.sh scripting support (short answer: I cannot get them to work).
...
rmacros.sh is not exactly "obsolete", I still own this and I would like to keep it useful. The short "I cannot get them to work" doesn't allow me to do much to help you.
Please do the following:
try the new version (see previous post); if it does not work e-mail me the details of the problem. See the rmacros.sh doc page for my e-mail.
vBulletin® v3.7.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.