°Ô½Ã¹° 51°Ç
   
GFS2 ±¸¼º ¿¹½Ã
±Û¾´ÀÌ : theko ³¯Â¥ : 2016-01-11 (¿ù) 14:39 Á¶È¸ : 5249
$ uname -a
Linux tibero01 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
 $ cat /etc/*-release
CentOS release 6.3 (Final)

 

1. GFS ±¸¼ºÀ» À§ÇØ ÆÐÅ°Áö ¼³Ä¡

yum groupinstall "Cluster Storage"

yum groupinstall "Clustering"

 

2. Cluster ¼³Á¤ ÆÄÀÏ »ý¼º

´ÙÀ½°ú °°ÀÌ »ý¼º ÈÄ ´Ù¸¥ ³ëµå¿¡ º¹»ç

# cat /etc/cluster/cluster.conf
<?xml version="1.0"?>
<cluster config_version="14" name="rac_tac">
        <clusternodes>
                <clusternode name="rac01" nodeid="1"/>
                <clusternode name="rac02" nodeid="2"/>
        </clusternodes>
        <cman expected_votes="1" transport="udpu" two_node="1"/>
        <rm>
                <resources>
                        <clusterfs device="/dev/mapper/datavg-datalv" force_unmount="1" fsid="32134" fstype="gfs2" mountpoint="/rac_data" name="tibdata" self_fence="1"/>
                        <lvm lv_name="raw1" name="rawdev1" vg_name="oravg"/>
                        <lvm lv_name="raw2" name="rawdev2" vg_name="oravg"/>
                        <lvm lv_name="raw3" name="rawdev3" vg_name="oravg"/>
                        <lvm lv_name="raw4" name="rawdev4" vg_name="oravg"/>
                </resources>
        </rm>
</cluster>

 

3. gfs2 ÆÄÀÏ ½Ã½ºÅÛ »ý¼º

- lvm »ý¼º

pvcreate /dev/sda

vgcreate volGFS /dev/sda

lvcreate -L 8G volGFS

pvscan

vgscan

 

- ÆÄƼ¼Ç Æ÷¸Ë

mkfs.gfs2 -p lock_dlm -t cluster112:gfs1 -j 3 /dev/volGFS/lvol0

 

- gfs ÆÄƼ¼Ç ¸¶¿îÆ®

mount -t gfs2 -o upgrade /dev/volGFS/lvol0 /mnt/gfs

 

- /etc/fstab¿¡ ¸¶¿îÆ® Á¤º¸ ÀÔ·Â

/dev/volGFS/lovl0  /mnt/gfs  gfs2  defaults 0 0

 

4. ¼­ºñ½º ½ÃÀÛ

¾ç ³ëµå¿¡¼­ ¼öÇà

service cman start

service clvmd start

service gfs2 restart

 

chkconfig cman on

chkconfg clvmd on

chkconfg gfs2 on

chkconfg acpid off

 

5. ¼­ºñ½º È®ÀÎ

# cman_tool nodes
Node  Sts  Inc  Joined              Name
  1  M    24  2013-04-28 16:36:59  rac01
  2  M    52  2013-04-29 12:47:36  rac02
[root@tibero01 ~]# cman_tool status
Version: 6.2.0
Config Version: 14
Cluster Name: rac_tac
Cluster Id: 51130
Cluster Member: Yes
Cluster Generation: 52
Membership state: Cluster-Member
Nodes: 2
Expected votes: 1
Total votes: 2
Node votes: 1
Quorum: 1 
Active subsystems: 9
Flags: 2node
Ports Bound: 0 11 177 
Node name: tibero01
Node ID: 1
Multicast addresses: 239.192.199.130
Node addresses: 192.168.127.206

[Ãâó] LINUX GFS ±¸¼ºÇϱâ|ÀÛ¼ºÀÚ ¹ÌÇϽÃ
http://blog.naver.com/jsmguy/90172771278

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com