PeterNic
01-10-2009, 03:18 PM
The grid impex volume (where apps and volumes to be imported/exported are temporarily stored) is 10GB by default. The size of the impex volume is defined during grid install and cannot be changed later.
If you are the grid maintainer (or can ask the grid maintainer to follow this procedure), there is a workaround that would allow you to get a temporary larger impex volume, so you can do the larger import/export operation.
NOTE: This procedure uses root-level access to the grid controller appliance and undocumented internal grid utilities. It is possible to damage the grid if you make a mistake.
The procedure has the following steps:
1. Create a new volume that's large enough to hold the entity you want to export or import (you may want to create an empty app to hold the volume, or in 2.4+, use global volumes. The commands can be executed by a regular user via the shell:
- create app impex
- create vol impex:data size=1024G fs=ext3
2. Mount the new, temporary impex volume in the place of the regular impex volume.
2.0. Log in as root on the controller.
2.1. Check and remember the block device that is mounted as /vol/_impex (using "mount | grep impex"). It will be most likely /dev/md2
2.2. Unmount the filesystem of the current impex volume (using "umount /vol/_impex")
2.3. Mount the new volume as a block device (using "3tctl mount sysvol app.user.volume", where app is the application name and volume is the volume name, so it would be "3tctl mount sysvol impex.user.data" using the example app/volume name above)
2.4. The output from the command will show you the device name (e.g., it will look something like "mount_id = /dev/md3"). Remember the name of the device
2.5. Mount the filesystem of the block device to the impex directory (using "mount /dev/md3 /vol/_impex")
2.6. Now you should have a large impex volume available
3. Perform the import/export operation. Keep in mind that if the grid is rebooted, it will re-mound the original impex volume (i.e., the steps above are non-persistent).
4. Undo the above steps in reverse:
4.1 unmount the temp impex volume filesystem ("umount /vol/_impex") (before that, make sure you are not in a subdirectory of /vol/_impex -- do "cd /" first)
4.2. unmount the temp impex volume device ("3tctl umount sysvol app.user.volume")
4.3. re-mount the original impex volume ("mount /dev/md2 /vol/_impex")
4.4. destroy the temp impex app/volume if you no longer need them
4.5. verify that you can still access the grid normally, including the old impex volume
Before using this procedure, please verify it on a test grid. I will also ask someone from our support group to do a step-by-step verification on AppLogic 2.1.1 and 2.4.7 and make corrections to the above if needed.
Best regards,
-- Peter
If you are the grid maintainer (or can ask the grid maintainer to follow this procedure), there is a workaround that would allow you to get a temporary larger impex volume, so you can do the larger import/export operation.
NOTE: This procedure uses root-level access to the grid controller appliance and undocumented internal grid utilities. It is possible to damage the grid if you make a mistake.
The procedure has the following steps:
1. Create a new volume that's large enough to hold the entity you want to export or import (you may want to create an empty app to hold the volume, or in 2.4+, use global volumes. The commands can be executed by a regular user via the shell:
- create app impex
- create vol impex:data size=1024G fs=ext3
2. Mount the new, temporary impex volume in the place of the regular impex volume.
2.0. Log in as root on the controller.
2.1. Check and remember the block device that is mounted as /vol/_impex (using "mount | grep impex"). It will be most likely /dev/md2
2.2. Unmount the filesystem of the current impex volume (using "umount /vol/_impex")
2.3. Mount the new volume as a block device (using "3tctl mount sysvol app.user.volume", where app is the application name and volume is the volume name, so it would be "3tctl mount sysvol impex.user.data" using the example app/volume name above)
2.4. The output from the command will show you the device name (e.g., it will look something like "mount_id = /dev/md3"). Remember the name of the device
2.5. Mount the filesystem of the block device to the impex directory (using "mount /dev/md3 /vol/_impex")
2.6. Now you should have a large impex volume available
3. Perform the import/export operation. Keep in mind that if the grid is rebooted, it will re-mound the original impex volume (i.e., the steps above are non-persistent).
4. Undo the above steps in reverse:
4.1 unmount the temp impex volume filesystem ("umount /vol/_impex") (before that, make sure you are not in a subdirectory of /vol/_impex -- do "cd /" first)
4.2. unmount the temp impex volume device ("3tctl umount sysvol app.user.volume")
4.3. re-mount the original impex volume ("mount /dev/md2 /vol/_impex")
4.4. destroy the temp impex app/volume if you no longer need them
4.5. verify that you can still access the grid normally, including the old impex volume
Before using this procedure, please verify it on a test grid. I will also ask someone from our support group to do a step-by-step verification on AppLogic 2.1.1 and 2.4.7 and make corrections to the above if needed.
Best regards,
-- Peter