ZFS shadow migration exercise

Setting up shadow migration.
Solaris 10 has ip-address 192.168.4.159
ZFS appliance has ip-address 192.168.4.220

1. On Solaris10.

Create a directory called /mnt/data and put some files in it.

# mkdir /mnt/data
# cd /mnt/data
# cp /var/log/* .

Share /mnt/data with NFS.
# echo "share /mnt/data" >> /etc/dfs/dfstab
# svcadm enable nfs/server
# dfshares
RESOURCE SERVER ACCESS TRANSPORT
solaris10:/mnt/data solaris10 - -

2. On the storage appliance.

"Shares" "+Filesystems"
In the "Create Filesystem" screen, specify the name: "mig".
Set the Data migration source to "NFS".
Specify the source: "192.168.4.159:/mnt/data".
Apply

3. On Solaris 10.
Check whether /export/mig is shared.
# dfshares 192.168.4.220
RESOURCE SERVER ACCESS TRANSPORT
192.168.4.220:/export/mig 192.168.4.220 - -

Mount the share.
# cd /net/192.168.4.220/export/mig
# ls
Xorg.0.log snmpd.log syslog.1 syslog.5
Xorg.0.log.old sysidconfig.log syslog.2 syslog.6
authlog syslog syslog.3 syslog.7
postrun.log syslog.0 syslog.4

Done.

Create a share in the CLI:

zfs1:> shares
zfs1:shares> select default
zfs1:shares default> filesystem mig3
zfs1:shares default/mig3 (uncommitted)>set shadow=nfs://192.168.4.159/mnt/data
shadow = nfs://192.168.4.159/mnt/data (uncommitted)
zfs1:shares default/mig3 (uncommitted)> commit

Done.

This entry was posted in Uncategorized. Bookmark the permalink.

Comments are closed.