警告
name: pacemaker
in corosync.conf and insert the following line anywhere inside the block:
clustername: myname
# mkfs.gfs2 -p lock_dlm -j 2 -t pcmk:web /dev/drbd1 This will destroy any data on /dev/drbd1. It appears to contain: data Are you sure you want to proceed? [y/n] y Device: /dev/drbd1 Blocksize: 4096 Device Size 1.00 GB (131072 blocks) Filesystem Size: 1.00 GB (131070 blocks) Journals: 2 Resource Groups: 2 Locking Protocol: "lock_dlm" Lock Table: "pcmk:web" UUID: 6B776F46-177B-BAF8-2C2B-292C0E078613
# mount /dev/drbd1 /mnt/# cat <<-END >/mnt/index.html <html> <body>My Test Site - GFS2</body> </html> END # umount /dev/drbd1 # drbdadm verify wwwdata#