How to add a new disk to the virtual appliance
Gimana Cara untuk menambahkan new disk atau storage virtual di dalam kerio connect appliance.
berikut ini petunjuk yang diambil dari halaman Knowledge Base nya kerio.
Please run a backup first, as some of these commands are potentially destructive and may cause damage to your system if not carried out correctly.
To increase available disk space for the message store it is recommended to add second virtual hard disk to the appliance.
First, using your VM Hypervisor, add a new hard drive to your VM and start the appliance.
Log in to the system console as above.
Check to see that your new hard drive is installed and picked up by Debian. You do this by running the following command in a or at the system console:
fdisk -l
You should see that the disk at /dev/sdb is being picked up but there are no partitions yet for this drive.
Create a new partition on your new drive:
cfdisk /dev/sdb
The cfdisk controller will load up and here you can create a new partition on your drive. From the menus at the bottom select the following:
1. New >> Primary >> Size in MB
2. Once done select Write
3. Select Quit
Your new partition will be created at /dev/sdb1
Format the new disk:
mkfs.ext3 /dev/sdb1
This will now format our partition with the ext3 filesystem which should work fine for your Debian system.
Mount the new drive
mkdir /store
mount -t ext3 /dev/sdb1 /store
The above commands create a new directory for the drive to be mounted in and then we mount the drive to this directory. To check that the drive has been mounted run the following:
ls -lsa /store
Everything is now up and running however we need to add our new drive to /etc/fstab so that it will be mounted automatically when the server is rebooted.
Edit fstab:
vi /etc/fstab
At the end of the file add the following line:
/dev/sdb1 /store ext3 defaults,errors=remount-ro 0 1
Save the file and you’re done.
Now we need to move existing message store to new disk:
Stop Kerio Conect server:
/etc/init.d/kerio-connect stop
Copy all data from old message store:
cp -R -p /opt/kerio/mailserver/store /store
Change message store directory path in Kerio Connect configuration:
sed -i -e “s/\/opt\/kerio\/mailserver\/store/\/store/” /opt/kerio/mailserver/mailserver.cfg
Start Kerio Connect:
/etc/init.d/kerio-connect start