ZFS replication_exercise

Controller ZFS1 192.168.4.220 project zfs1_proj
is replicated to Controller ZFS2 192.168.4.230.

Controller ZFS1 zfs1_proj has share zfs1_proj_fs1 that is mounted
by solaris 10 to mountpoint /mnt/fs1

On ZFS1
* create project zfs1_proj and filesystem zfs1_proj_fs1 *
* make sure the filesystem is created in zfs1_proj! *
(this is not described)

1. Create replication target.
"Configuration" "Services" "Remote Replication" "+target"
In the Add Replication Target enter:
Name: zfs2_target
Hostname: 192.168.4.230
Root Password: *******

2. Setup replication to ZFS2.
"Shares" -> "Projects" edit "zfs_proj" -> "Replication"
"+Actions"
In the Add Replication Action window enter:
Target: zfs2_target
Pool: p0
Scheduled

On Solaris 10

Mount the share on /mnt/fs1 and create a file.
# mount 192.168.4.220:/export/zfs1_proj_fs1 /mnt/fs1
# cd /mnt/fs1; touch a

On ZFS1
"Projects" edit "zfs_proj" -> "Replication"
Click on "Sync now" ... watch the status bar.

On ZFS2
"Shares" "Projects" "Replica"
edit "zfs_proj"
Try to add a filesystem and note the errormessage.
Ok

On ZFS2
"Shares" "Projects" "Replica"
edit "zfs_proj"
"Replication"
Note the four icons: enable/disable, clone, sever, reverse.

Click on the "sever" icon.
In the Sever Replication windows enter:
"zfs2_proj"

Now the replication is stopped and the share on ZFS2 is accessible
by clients.

On Solaris
# umount -f /mnt/fs1
# mount 192.168.4.230:/export/zfs1_proj_fs1 /mnt/fs1
# ls /mnt/fs1
a

Do the same exercise a second time, but now click on the icon "reverse".
What happens?

This entry was posted in Uncategorized. Bookmark the permalink.

Comments are closed.