yum groupinstall "Cluster Storage" # egrep 'GFS2|DLM' /boot/config-2.6.32-* /boot/config-2.6.32-131.2.1.el6.x86_64:CONFIG_GFS2_FS=m /boot/config-2.6.32-131.2.1.el6.x86_64:CONFIG_GFS2_FS_LOCKING_DLM=y /boot/config-2.6.32-131.2.1.el6.x86_64:CONFIG_DLM=m /boot/config-2.6.32-131.2.1.el6.x86_64:CONFIG_DLM_DEBUG=y /boot/config-2.6.32-71.el6.x86_64:CONFIG_GFS2_FS=m /boot/config-2.6.32-71.el6.x86_64:CONFIG_GFS2_FS_LOCKING_DLM=y /boot/config-2.6.32-71.el6.x86_64:CONFIG_DLM=m /boot/config-2.6.32-71.el6.x86_64:CONFIG_DLM_DEBUG=y
pvcreate /dev/sdb3 vgcreate vg01 /dev/sdb3 lvcreate -L 500G -n lvol0 vg01 mkfs.gfs2 -p lock_dlm -t alpha:mydata1 -j 8 /dev/vg01/lvol0
# pvcreate /dev/sdb3 Physical volume "/dev/sdb3" successfully created # vgcreate vg01 /dev/sdb3 Volume group "vg01" successfully created # lvcreate -L 500G -n lvol0 vg01 Logical volume "lvol0" created # mkfs.gfs2 -p lock_dlm -t alpha:mydata1 -j 8 /dev/vg01/lvol0 This will destroy any data on /dev/vg01/lvol0. It appears to contain: symbolic link to `../dm-6' Are you sure you want to proceed? [y/n] y Device: /dev/vg01/lvol0 Blocksize: 4096 Device Size 500.00 GB (131072000 blocks) Filesystem Size: 500.00 GB (131071998 blocks) Journals: 8 Resource Groups: 2000 Locking Protocol: "lock_dlm" Lock Table: "alpha:mydata1" UUID: 4FC256A0-00BD-2087-15DF-8EA4366481AA
# mkdir /mnt/gfs2 # mount -t gfs2 -o noatime /dev/mapper/vg01-lvol0 /mnt/gfs2 gfs_controld join connect error: Connection refused error mounting lockproto lock_dlm
原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。