|
GFS2 ½Ç½À |
[root@node1 ~]# mkfs.gfs2 -t cluster:gfs -p lock_dlm -j 2 /dev/sdb1
¡Ø -j ºÎºÐÀº Àú³Î¸µ³Ñ¹öÀÌ´Ù. ÀÌ ¼ýÀÚ¿¡ µû¶ó °øÀ¯ÇÒ ¼ö ÀÖ´Â ³ëµå ¼ö°¡ °áÁ¤µÈ´Ù. 2À̸é 2´ëÀÇ Å¬·¯½ºÅͰ¡ ¸¶¿îÆ® °¡´É This will destroy any data on /dev/sdb1. It appears to contain a LVM2_member raid. Are you sure you want to proceed? [y/n] y Device: /dev/sdb1 Blocksize: 4096 Device Size 1.00 GB (260857 blocks) Filesystem Size: 1.00 GB (260856 blocks) Journals: 2 Resource Groups: 4 Locking Protocol: "lock_dlm" Lock Table: "cluster:gfs" UUID: 1FA41F1A-600E-B18A-92A7-E562B09B598C [root@node1 ~]# ¾Æ·¡¿Í °°Àº ¹®Á¦ ¹ß»ý [root@node1 ~]# mount -t gfs2 /dev/sdb1 /GFS /sbin/mount.gfs2: fs is for a different cluster /sbin/mount.gfs2: error mounting lockproto lock_dlm [root@node1 ~]# °Ë»öÇØ º¸´Ï.... http://strawman.egloos.com/1132244 [root@node1 ~]# gfs_tool sb /dev/sdb1 table current lock table name = "cluster:gfs" [root@node1 ~]# cman_tool status Version: 6.1.0 Config Version: 11 Cluster Name: RHCS Cluster Id: 1161 Cluster Member: Yes Cluster Generation: 480 Membership state: Cluster-Member Nodes: 1 Expected votes: 1 Total votes: 1 Quorum: 1 Active subsystems: 8 Flags: 2node Dirty Ports Bound: 0 177 Node name: node2 Node ID: 2 Multicast addresses: 239.192.4.141 Node addresses: 10.0.0.200 [root@node1 ~]# [root@node1 ~]# mkfs.gfs2 -t RHCS:gfs -p lock_dlm -j 2 /dev/sdb1 [root@node1 ~]# mount -t gfs2 /dev/sdb1 /GFS ¸¶¿îÆ® ¼º°ø~ [root@node1 ~]# mount /dev/hda3 on / type ext3 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/hdb1 on /home type ext3 (rw) /dev/hda6 on /tmp type ext3 (rw) /dev/hda5 on /var/crash type ext3 (rw) /dev/hda1 on /boot type ext3 (rw) tmpfs on /dev/shm type tmpfs (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) none on /sys/kernel/config type configfs (rw) /dev/sda1 on /GFS type gfs2 (rw,hostdata=jid=0:id=327681:first=1) [root@node1 ~]# ´Ù¸¥ ÆÄÀϽýºÅÛ¿¡ ºñÇØ ÆÄƼ¼Ç¿¡ ¾Æ¹« µ¥ÀÌÅ͵µ ÀúÀåÇÏÁö ¾Ê¾Ò´Âµ¥µµ ±âº» Â÷ÁöÇÏ´Â ¿ë·®ÀÌ 259M °¡·®À¸·Î Á¦¹ý µÈ´Ù. [root@node1 GFS]# df -h Filesystem Size Used Avail Use% Mounted on /dev/hda3 4.4G 4.2G 17M 100% / /dev/hdb1 9.9G 7.5G 2.0G 80% /home /dev/hda6 487M 37M 425M 8% /tmp /dev/hda5 2.9G 69M 2.7G 3% /var/crash /dev/hda1 99M 28M 67M 30% /boot tmpfs 250M 0 250M 0% /dev/shm /dev/sda1 1019M 259M 761M 26% /GFS [root@node1 GFS]# |