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 equal to or larger than the size of its source disk/partition.

Partition local storage for use with SIOS DataKeeper for Linux

Primary Server

On your Primary server, perform the following actions:

  1. Identify an existing free, unused disk partition to use as the source of the mirror. 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

Example

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

Command (m for help): n

Command action

e extended

p primary partition (1-4)

p

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/mysql

  1. Format the newly created disk partition

# mkfs.ext3 /dev/sdb1

  1. Mount the partition at the desired location, for example /var/lib/mysql

# mount /dev/sdb1 /var/lib/mysql

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

Result
[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. There is no need to format or mount the filesystem.

Feedback

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