1. (BOTH) apt-get install drbd8-utils heartbeat nfs-kernel-server pacemaker lvm2
2.	(BOTH) etc/drbd.d/nfs.res
resource nfs {
        protocol C;
        handlers {
                pri-on-incon-degr "echo o > /proc/sysrq-trigger ; halt -f";
                pri-lost-after-sb "echo o > /proc/sysrq-trigger ; halt -f";
                local-io-error "echo o > /proc/sysrq-trigger ; halt -f";
                outdate-peer "/usr/lib/heartbeat/drbd-peer-outdater -t 5";
        }
        startup {
                degr-wfc-timeout 120;
        }
        disk {
                on-io-error   detach;
        }
        net {
                cram-hmac-alg sha1;
                shared-secret "password";
                after-sb-0pri disconnect;
                after-sb-1pri disconnect;
                after-sb-2pri disconnect;
                rr-conflict disconnect;
        }
        syncer {
                rate 1000M;
                group 1;
                verify-alg sha1;
                al-extents 257;
        }
        on KNTCLFS001 {
                device     /dev/drbd0;
                disk       /dev/KNTCLFS001/Storage;
                address    192.168.1.5:7788;
                meta-disk  /dev/KNTCLFS001/Metadata[0];
        }

        on KNTCLFS002 {
                device    /dev/drbd0;
                disk      /dev/KNTCLFS002/Storage;
                address   192.168.1.10:7788;
                meta-disk /dev/KNTCLFS002/Metadata[0];
        }
}
3.	(BOTH) 
chgrp haclient /sbin/drbdsetup
chmod o-x /sbin/drbdsetup
chmod u+s /sbin/drbdsetup
chgrp haclient /sbin/drbdmeta
chmod o-x /sbin/drbdmeta
chmod u+s /sbin/drbdmeta 

4.  (BOTH) /etc/exports
/Storage 10.89.96.0/22(rw,no_root_squash,no_all_squash,sync)
5. (BOTH) modprobe drbd
6. (BOTH) /etc/lvm/lvm.conf
filter = [ "a|/dev/drbd.*|", "r|.*|" ]
write_cache_state = 0
7. (BOTH) drbdadm create-md nfs
9. (BOTH) service drbd start
9. (PRIMARY) drbdadm -- --overwrite-data-of-peer primary nfs
10. (PRIMARY) wait until drbd sync is done
	Mkfs.jfs /dev/drbd0
	mount /dev/drbd0 /Storage

10. (BOTH) /etc/heartbeat/ha.cf
logfacility     local0
keepalive 2
deadtime 30
warntime 10
initdead 120
bcast eth1
node KNTCLFS001
node KNTCLFS002
crm yes

11. (BOTH) /etc/heartbeat/authkey
auth 3
3 md5 password
12. (BOTH) /etc/heartbeat/haresources
KNTCLFS001 IPaddr::10.89.99.30/22/eth1 drbddisk::nfs Filesystem::/dev/drbd0::/Storage::jfs nfs-kernel-server

13. (BOTH) chmod 600 /etc/ha.d/authkeys

14.  (BOTH) crm configure
crm(live)# configure
crm(live)configure# property stonith-enabled="false"
crm(live)configure# property no-quorum-policy="ignore"
crm(live)configure# rsc_defaults resource-stickiness="200"
crm(live)configure# commit
crm(live)configure# primitive p_drbd_nfs ocf:linbit:drbd params drbd_resource="nfs" op monitor interval="15" role="Master" op monitor interval="30" role="Slave"
crm(live)configure# ms ms_drbd_nfs p_drbd_nfs meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"
crm(live)configure# commit
crm(live)configure# primitive p_lsb_nfsserver lsb:nfs-kernel-server op monitor interval="30s"
crm(live)configure# clone cl_lsb_nfsserver p_lsb_nfsserver
crm(live)configure# commit
crm(live)configure# primitive p_exportfs_root ocf:heartbeat:exportfs params fsid=0 directory="/Storage" options="rw,crossmnt" clientspec="10.89.96.0/255.255.252.0" op monitor interval="30s"
crm(live)configure# clone cl_exportfs_root p_exportfs_root
15.  (BOTH) echo 10 > /proc/fs/nfsd/nfsv4leasetime