Results 1 to 4 of 4

Thread: MDADM increased raid size, new size is not being detected

  1. #1
    Join Date
    Jun 2010
    Location
    Michigan
    Beans
    92
    Distro
    Ubuntu

    MDADM increased raid size, new size is not being detected

    Hello,

    I recently upgraded my raid 5 from 3 x 4tb drives to 4 x 4tb drives. It completed the resync process without issue and according to WEBMIN the new raid size is 10.93tb, however if I create a share for the raid, windows only says there is 7.21tb available.

    My current setup is ubuntu 13.04 with KVM installed. The physical machine shares the mdadm raid via NFS to a virtual machine. The virtual machine is then sharing the mount via SAMBA so the windows machines on my network can access the data.

    cat / proc/mdstat gives me the following:
    Code:
    jake@Morpheus:~$ cat /proc/mdstat
    Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
    md0 : active raid5 sdc[1] sdd[3] sde[0] sdb[4]
          11720661504 blocks super 1.2 level 5, 512k chunk, algorithm 2 [4/4] [UUUU]
    
    unused devices: <none>
    jake@Morpheus:~$
    NFS Exports (on physical machine):
    Code:
    /Backup       192.168.1.145(rw,fsid=0,insecure,no_subtree_check,async)
    SAMBA config (on virtual machine):
    Code:
    [Backup]
            writeable = yes
            public = yes
            path = /Backup
    I have removed and re installed mdadm, I have recreated the SAMBA share, I have recreated the NFS export. No matter what windows is still only detecting 7tb of space. If anyone has any ideas please let me know.

    Thanks
    Jake
    I have also attached a picture showing what WEBMIN is detecting
    Attached Images Attached Images

  2. #2
    Join Date
    Jul 2010
    Location
    Michigan, USA
    Beans
    2,136
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: MDADM increased raid size, new size is not being detected

    Besides expanding the mdadm array, you need to expand your filesystem as well. To do this safely, I normally: 1. unmount the filesystem, 2. run and fsck on the the array, and 3. then resize the filesystem. Here is how it works on an ext4 filesystem.

    Code:
    umount /Backup
    fsck.ext4 -f /dev/md0
    resize2fs /dev/md0
    Last edited by rubylaser; March 18th, 2014 at 12:05 PM.

  3. #3
    Join Date
    Jun 2010
    Location
    Michigan
    Beans
    92
    Distro
    Ubuntu

    Re: MDADM increased raid size, new size is not being detected

    As usual RUBYLASER saves the day. Thanks a lot

  4. #4
    Join Date
    Jul 2010
    Location
    Michigan, USA
    Beans
    2,136
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: MDADM increased raid size, new size is not being detected

    No problem. Glad you got it figured out

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
  •