ha

Pacemaker

/usr/sbin/crm_attribute -N node01 -n standby -v on -l forever
/usr/sbin/crm_attribute -N node01 -n standby -v off -l forever

crm resource list

crm resource restart db

# (re)configure
crm configure show
crm configure edit
crm configure commit

# migrate
crm_resource -r fs --migrate
crm_resource -r fs --clear

crm_resource -r fs --un-migrate

# restart resource
crm resource restart www1

# cleanup
crm_resource -r rsc -C -H node

crm_resource -C -r db -H node1
crm_resource -C -r db -H node2

DRBD

# cat /etc/drbd.d/global_common.conf 
global {
		usage-count	yes;
}
 
common {
	startup {
		degr-wfc-timeout	0;
	}
 
	net {
		cram-hmac-alg	sha1;
		shared-secret	****************;
	}
 
	disk {
		on-io-error	detach;
	}
}
 
# cat /etc/drbd.d/r0.res 
resource r0 {
	on scld.sedo.de.intern {
		volume 0 {
			device		/dev/drbd0;
			disk		/dev/vg0/lvol0;
			flexible-meta-disk	internal;
		}
		address		192.168.255.1:7788;
	}
	on ubuntu {
		volume 0 {
			device		/dev/drbd0;
			disk		/dev/sda3;
			flexible-meta-disk	internal;
		}
		address		192.168.255.2:7788;
	}