Skip to end of metadata
Go to start of metadata

Step-by-step guide

  1. You need to detach the volume first to have access to the expand option
  2. After you expand the volume attached back to the instance
  3. Providing that the file system is xfs you can check the current status 

    xfs_info /data/artifactory_data/
    meta-data=/dev/vdb               isize=512    agcount=4, agsize=49152000 blks
             =                       sectsz=512   attr=2, projid32bit=1
             =                       crc=1        finobt=0 spinodes=0
    data     =                       bsize=4096   blocks=196608000, imaxpct=25
             =                       sunit=0      swidth=0 blks
    naming   =version 2              bsize=4096   ascii-ci=0 ftype=1
    log      =internal               bsize=4096   blocks=96000, version=2
             =                       sectsz=512   sunit=0 blks, lazy-count=1
    realtime =none                   extsz=4096   blocks=0, rtextents=0
  4. Expand to the maximum available size

    [root@artifactory centos]# xfs_growfs /data/artifactory_data/
    meta-data=/dev/vdb               isize=512    agcount=4, agsize=49152000 blks
             =                       sectsz=512   attr=2, projid32bit=1
             =                       crc=1        finobt=0 spinodes=0
    data     =                       bsize=4096   blocks=196608000, imaxpct=25
             =                       sunit=0      swidth=0 blks
    naming   =version 2              bsize=4096   ascii-ci=0 ftype=1
    log      =internal               bsize=4096   blocks=96000, version=2
             =                       sectsz=512   sunit=0 blks, lazy-count=1
    realtime =none                   extsz=4096   blocks=0, rtextents=0
    data blocks changed from 196608000 to 393216000
  5. Check the result

    [root@artifactory centos]# xfs_info /data/artifactory_data/
    meta-data=/dev/vdb               isize=512    agcount=8, agsize=49152000 blks
             =                       sectsz=512   attr=2, projid32bit=1
             =                       crc=1        finobt=0 spinodes=0
    data     =                       bsize=4096   blocks=393216000, imaxpct=25
             =                       sunit=0      swidth=0 blks
    naming   =version 2              bsize=4096   ascii-ci=0 ftype=1
    log      =internal               bsize=4096   blocks=96000, version=2
             =                       sectsz=512   sunit=0 blks, lazy-count=1
    realtime =none                   extsz=4096   blocks=0, rtextents=0

 

There is no content with the specified labels


  • No labels