Shared Mount Point

If the primary storage type is Shared Mount Point (SMP), ZStack allows you to use network shared storages provided by commonly used distributed file systems, such as MooseFS, GlusterFS, OCFS2, and GFS2.
  • Similar to addling a Local Storage, you only need to provide the local directory where the host is mounted. Then, ZStack can complete the docking of various distributed file systems.
  • An SMP primary storage corresponds to an ImageStore or SFTP backup storage.
  • If you use SMP as the primary storage, you need to configure the corresponding distributed file system in advance, and mount the shared file system on each host to the same file directory according to the client configurations of different storage systems.
    The following is an example of configuring a primary storage by using MooseFS:
    • Download and install the MooseFS client tool mfsmount, and create a corresponding directory as a mount node.
    • Assume that the IP address of the MooseFS Master Server is 172.20.12.19. Create /mnt/mfs/mnt/mfs as the mount point and use the mfsmount command to mount the MooseFS system.
    • You can also use the mfssetgoal command to set the number of file copies to save as needed.
    [root@localhost ~]#mkdir /mnt/mfs 
    [root@localhost ~]#mfsmount /mnt/mfs -H 172.20.12.19
    [root@localhost ~]#mkdir /mnt/mfs/zstack
    [root@localhost ~]#mfssetgoal -r 2 /mnt/mfs/zstack/
    #The above commands mount the files in the /mnt/mfs/zstack/ directory to the remote client 172.20.12.19, and saves two copies on the MooseFS storage server.