3
Jun

Mount Block Volume as a Shared File System on multiple Linux servers on Oracle Cloud

Goal:

A single Block Volume to be mounted on multiple servers.
 
We will attach a block volume on node 1 i.e. erpapp1.
The same block volume will be mounted on node 2 i.e. erpapp2.

 
Create a block volume and attach it to the compute instance.
 

There are two unformatted drives on Node 1:

  • /dev/sdc
  • /dev/sdc
     
    Format the drive.
     

    mkfs.xfs /dev/sdc
    mkfs.xfs /dev/sdc


    [root@erpapp1 ~]# mkfs.xfs /dev/sdd
    meta-data=/dev/sdd isize=256 agcount=4, agsize=3276800 blks
    = sectsz=4096 attr=2, projid32bit=1
    = crc=0 finobt=0, sparse=0, rmapbt=0, reflink=0
    data = bsize=4096 blocks=13107200, imaxpct=25
    = sunit=0 swidth=0 blks
    naming =version 2 bsize=4096 ascii-ci=0 ftype=1
    log =internal log bsize=4096 blocks=6400, version=2
    = sectsz=4096 sunit=1 blks, lazy-count=1
    realtime =none extsz=4096 blocks=0, rtextents=0


    [root@erpapp1 ~]# blkid
    /dev/sda3: UUID="b1d6c458-09df-4003-91f8-274d9bb47090" TYPE="xfs" PARTUUID="de4cf50d-6ab6-4b33-a1bb-b702baadb616"
    /dev/sda1: SEC_TYPE="msdos" UUID="87DD-8565" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="8fb535c2-3a84-4cba-b9d1-46861f4ce6fb"
    /dev/sda2: UUID="72b79731-1dec-4324-849b-ce3027278329" TYPE="swap" PARTUUID="a01c99a8-6311-4a73-9861-a107ea867dc3"
    /dev/sdb: UUID="43b5eb95-de8d-452f-a8c3-8c883bf4c587" TYPE="xfs"
    /dev/sdc: UUID="fd78adbf-d224-4552-b59a-89e93bf7bfcc" TYPE="xfs"
    /dev/sdd: UUID="e958eed2-a136-4395-b8c0-e4718d46c571" TYPE="xfs"

    Read more...

  • Back to Top