X-Git-Url: https://gitweb.dragonflybsd.org/ikiwiki.git/blobdiff_plain/9c4d145c04c67373db5ce81f8b148b79184195c7..HEAD:/docs/how_to_implement_hammer_pseudo_file_system__40___pfs___41___slave_mirroring_from_pfs_master/index.mdwn?ds=sidebyside diff --git a/docs/how_to_implement_hammer_pseudo_file_system__40___pfs___41___slave_mirroring_from_pfs_master/index.mdwn b/docs/how_to_implement_hammer_pseudo_file_system__40___pfs___41___slave_mirroring_from_pfs_master/index.mdwn deleted file mode 100644 index b6714375..00000000 --- a/docs/how_to_implement_hammer_pseudo_file_system__40___pfs___41___slave_mirroring_from_pfs_master/index.mdwn +++ /dev/null @@ -1,47 +0,0 @@ -[[!toc]] -#Scenario -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. - -#Creating the master pfs on Disk 1 - -The hammer file systems on Disk 1 and Disk2 are mounted in '/etc/fstab' according to the following. - - /dev/ad4s1h /Backup1 hammer rw 2 2 - /dev/ad6s1h /Backup2 hammer rw 2 2 - -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. - - # pwd - /Backup1 - # mkdir pfs - - # hammer pfs-master /Backup1/pfs/test - Creating PFS #3 succeeded! - /Backup1/pfs/test - sync-beg-tid=0x0000000000000001 - sync-end-tid=0x000000013f63be90 - shared-uuid=b793b798-b3d2-11de-9bef-011617202aa6 - unique-uuid=b793b7db-b3d2-11de-9bef-011617202aa6 - label="" - prune-min=00:00:00 - operating as a MASTER - snapshots dir for master defaults to /snapshots - # ls pfs - test - -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. -You can mount the pfs under the hammer file system on Disk 1 by doing the following. - - # mkdir /Backup1/test - -Now Edit '/etc/fstab' to contain the following line. - - /Backup1/pfs/test /Backup1/test null rw 0 0 - -Now mount the pfs by doing. - - # mount -a - # mount |grep test - /Backup1/pfs/@@-1:00003 on /Backup1/test (null, local) - -