3 I have two 500 GB hard disks both having hammer file system. I want to create a master pfs in one of the hard disk and a slave pfs in the other disk. I want to mirror the data continuosly from the master pfs to the slave pfs. This will help me avoid long 'fsck'and raid parity rewrite times after an unclean shut down and also will give me a set up some what like Raid.
5 #Creating the master pfs on Disk 1
7 The hammer file systems on Disk 1 and Disk2 are mounted in '/etc/fstab' according to the following.
9 /dev/ad4s1h /Backup1 hammer rw 2 2
10 /dev/ad6s1h /Backup2 hammer rw 2 2
12 Go to the hammer file system on Disk 1. We will be creaing a master pfs called 'test' and will be mounting it using a null mount.
18 # hammer pfs-master /Backup1/pfs/test
19 Creating PFS #3 succeeded!
21 sync-beg-tid=0x0000000000000001
22 sync-end-tid=0x000000013f63be90
23 shared-uuid=b793b798-b3d2-11de-9bef-011617202aa6
24 unique-uuid=b793b7db-b3d2-11de-9bef-011617202aa6
28 snapshots dir for master defaults to <fs>/snapshots
32 Now the master pfs 'test' is created. make a note of its 'shared-uuid' because we will need to use that to create the Slave pfs for mirroring.
33 You can mount the pfs under the hammer file system on Disk 1 by doing the following.
37 Now Edit '/etc/fstab' to contain the following line.
39 /Backup1/pfs/test /Backup1/test null rw 0 0
41 Now mount the pfs by doing.
45 /Backup1/pfs/@@-1:00003 on /Backup1/test (null, local)