Results 1 to 3 of 3

Thread: 12.04 - How to refresh disk info after RAID expansion?

  1. #1
    Join Date
    May 2007
    Location
    Minneapolis
    Beans
    123
    Distro
    Ubuntu 8.04 Hardy Heron

    12.04 - How to refresh disk info after RAID expansion?

    I just expanded an Areca hardware RAID with another disk in my server. Everything went fine, but parted and fdisk still see the old size of the disk, so I can't expand my XFS partition. This is an active server and I can't unmount or reboot the machine (which is fine for XFS, since the partition has to be mounted to be expanded anyway). How can I refresh the device information so it sees the new disk size without unmounting or rebooting the machine?
    --iissmart--

  2. #2
    Join Date
    Nov 2009
    Location
    Catalunya, Spain
    Beans
    14,560
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: 12.04 - How to refresh disk info after RAID expansion?

    Are you talking about disk size or filesystem size? There is a difference.

    After expanding the array the disk size should already be updated. But the filesystem doesn't expand automatically.

    I don't know about XFS, but for ext2/3/4 to resize the filesystem using the whole partition (device) you run:
    sudo resize2fs /dev/mapper/......
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

  3. #3
    Join Date
    May 2007
    Location
    Minneapolis
    Beans
    123
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: 12.04 - How to refresh disk info after RAID expansion?

    Disk size. The Areca OOB interface reports the RAID at the new larger size, but the kernel still reports the old size. I can't expand my partition if it thinks there isn't any unpartitioned space on the RAID (I've tried).
    --iissmart--

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •