Before You Begin

Ensure the following:

  • You have an extra disk/partition on both servers that can be used for data replication. A target volume’s size must be equal to or larger than the size of its source disk/partition.

Partition local storage for use with SIOS Data Replication

Primary Server

On your Primary server, perform the following actions:

  1. Identify an existing free, unused disk partition to use as our Apache repository. Alternatively, create a new partition. Use the “fdisk” utility to partition your disk appropriately. In this example /dev/sdb is an unused disk where we will create a single partition

a. fdisk /dev/sdb

b. Press “n” to create a new partition

c. Press “p” to create a primary partition

d. This example uses a new disk, so we will use all default values (Partition 1, entire disk) Hit Enter twice to confirm these parameters

e. Press “w” to write the partition table and exit fdisks


[root@LinuxPrimary ~]# fdisk /dev/sdb

Command (m for help): n

Command action

e extended
p primary partition (1-4)


Partition number (1-4): 1
First cylinder (1-256, default 1): <enter>
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-256, default 256): <enter>
Using default value 256

Command (m for help): w
The partition table has been altered! Calling ioctl() to re-read partition table.
Syncing disks.

[root@LinuxPrimary ~]#

[root@LinuxPrimary ~]# df /var/lib/mysql
Filesystem        1K-blocks    Used     Available    Use%    Mounted on
/dev/sdb1        253855      11083      229666      5%      /var/lib/mysq

  1. Format the newly created disk partition

# mkfs.ext3 /dev/sdb1

  1. Mount the partition temporarily at /mnt

# mount /dev/sdb1 /mnt

  1. Move any existing data from /var/lib/mysql/ into this new disk partition (assumes a default MySQL configuration)

# cd /var/lib/mysql
# mv * /mnt

  1. Remount /dev/sdb1 at /var/lib/mysql

# cd /root
# umount /mnt
# mount /dev/sdb1 /var/lib/mysql

  1. Note: there is no need to add this partition to /etc/fstab. Lifekeeper will take care of mounting this automatically.


[root@LinuxPrimary ~]# df /var/lib/mysql
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdb1 253855 11083 229666 5% /var/lib/mysql<

Secondary Server

  1. On your Secondary server, only perform Step #1 above, where you partition the disk. The size of the Target disk/partition needs to be the same size, or greater, than our Source disk/partition.


Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment