veritas cluster filesystem 生产库测试日志(2)

4. 建立集群文件系统


4.1 格式化卷集hydravs1
 
bash-3.00# mkfs -V vxfs /dev/vx/dsk/hydradg/hydravs1 
    version 7 layout
    83886080 sectors, 41943040 blocks of size 1024, log size 65536 blocks
    largefiles supported






4.2 在三个节点创建要挂载的目录


mkdir /hydra



4.3 加入到cfscluster配置中


bash-3.00# cfsmntadm add hydradg hydravs1 /hydra all=suid,rw
  Mount Point is being added...
  /hydra added to the cluster-configuration


4.4 使用cfscluster自动挂在目录


bash-3.00# cfsmount /hydra
  Mounting...
  [/dev/vx/dsk/hydradg/hydravs1] mounted successfully at /hydra on dbp560
  [/dev/vx/dsk/hydradg/hydravs1] mounted successfully at /hydra on dbp5701
  [/dev/vx/dsk/hydradg/hydravs1] mounted successfully at /hydra on dbp5702


4.5 观察一下


bash-3.00# cfscluster status


  Node             :  dbp560
  Cluster Manager  :  running
  CVM state        :  running
  MOUNT POINT    SHARED VOLUME  DISK GROUP        STATUS
  /hydra         hydravs1       hydradg           MOUNTED       
 。。。 




  Node             :  dbp5701
  Cluster Manager  :  running
  CVM state        :  running
  MOUNT POINT    SHARED VOLUME  DISK GROUP        STATUS
  /hydra         hydravs1       hydradg           MOUNTED       
 。。。    




  Node             :  dbp5702
  Cluster Manager  :  running
  CVM state        :  running
  MOUNT POINT    SHARED VOLUME  DISK GROUP        STATUS
  /hydra         hydravs1       hydradg           MOUNTED       
。。。


4.5.1 三个节点使用df -g 命令查看一下


bash-3.00# df -g | grep hydra
/dev/vx/dsk/hydradg/hydravs1     40.00     37.31    7%        4     1% /hydra

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/21813.html