To change the appliance disk configuration:
Note that adding more storage may not keep the problem from happening again. If possible, find the cause and fix it first. |
There are 2 options to modify the appliance disk configuration without using the GUI: Option 1: In the case of a virtual appliance, increase the size of the virtual disk hosting the datastore partition and resize it using procedure from Resizing a partition and file system. Option 2: Add a new disk and use tw_disk_utils to move some data into it as explained in the steps below.
- The tw_disk_utils utility does not support LVM. - The tw_disk_utils utility can only move one set of Discovery data to a given disk. The entire new disk will be used. The data components that can be moved are:
- Moving more than a single data component (backup_data, record_pool, ...) to a single disk cannot be done with tw_disk_utils. $ tw_disk_utils --move datastore_data:/dev/sdc --move datastore_logs:/dev/sdd - The tw_disk_utils utility can create a swap partition on the same disk as part of a move operation. For example, suppose the appliance has an existing datastore partition (/mnt/addm/db_data) on /dev/sdc, and that disk also had a swap partition. The datastore has outgrown the current partition and needs to be moved to a new disk. As part of the move operation, it is recommended to also create a new swap partition on the destination disk. If this is not done in one operation, it won't be possible to add a swap partition to the new disk later (but a swap file can be added anytime).
1) Stop all the Discovery services, then shut down the VM. This can be done from the command line ('sudo shutdown -h now') or simply power off the VM from the VMWare console $ sudo /sbin/service tideway stop (for RedHat/CentOS 6)
Filename Type Size Used Priority Then it means an 8 gb swap partition exists on /dev/sdc, and a similar partition should be created on the new disk. See below for further steps in this case. $ cd /usr/tideway 8) Move the datastore and/or create new swap to the new disk with the following commands: $ screen The screen command above allows us to restore a terminal session if the connection is dropped. $ tw_disk_utils --move datastore_data:/dev/sdc Replace /dev/sdc with the correct name of the new disk noted in step 5 above. This command will format and partition the new disk and move the datastore to it. $ tw_disk_utils --move datastore_data:/dev/sdc --new-swap 8000:/dev/sdc Replace /dev/sdc with the correct name of the new disk noted in step 5 above.
Notes: $ tail -f /usr/tideway/log/tw_disk_utils.log - Some errors are normal and can be ignored, such as the one below. If provided with the option to proceed in spite of errors, do so. [tideway@appliance ~]$ tw_disk_utils --move datastore_data:/dev/sdc --new-swap 8000:/dev/sdc
|