2012-07-11

How to configure OCFS2

What is OCFS2? Visit this web site.
  1. Connect iSCSI
  2. iscsiadm -m discovery -p [IP_OF_NAS] -t st
    iscsiadm -m node -login
    

  3. Check if iSCSI is connected correctly
  4. fdisk -l
    
    Success if you can see [/dev/sdX]
    * X may be b, but it can be c, d or other if you have several attached HDDs.

  5. Generate Cluster
  6. /etc/ocfs2/cluster.conf
    
    • Configure Cluster Driver : /etc/init.d/o2cb configure
    • NM : Node Manager, cluster.conf - Track status of all installed nodes
    • HB : Heartbeat - Notify UP/DOWN status when a node join/drop into a cluster
    • TCP : Communicate inter-nodes
    • DLM : Distributed Lock Manager - Track status and owner of LOCK
    • CONFIGFS : Configuration File System mounted to User Space(/config)
    • DLMFS : User Space Interface for Kernel Space DLM

  7. Make partition
  8. fdisk /dev/sdX
    
    or
    cfdisk /dev/sdX
    

  9. Make filesystem(run once on a server)
  10. mkfs -t ocfs2 /dev/sdb1
    

  11. Mount filesystem(run on all servers)
  12. mount -t ocfs2 -o _netdev,nointr /dev/sdb1 /mnt/ocfs2
    

  13. Test read/write operation

No comments:

Post a Comment