Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Raid 5 array says 1.27tb free but I cant copy file over!

  1. #1
    Join Date
    Mar 2007
    Beans
    48

    Raid 5 array says 1.27tb free but I cant copy file over!

    I have had my RAID 5 setup for a 5+ years now and have ran into this issue yet. It has 8 1tb disks making 6.26tb of total usable data (one spare drive). There is 1.27tb free right now but when I try transferring a 4.5gig file over to my server it fails and tells me there is not enough space. I have win7 on one of my computers that I am trying to transfer the file from and it just keeps popping up with an error saying the disk is full. I have attatched a picture of the error bellow. Is there something I need to do to the RAID 5 configuration? All the disks are in the array and it shows it as an active sync. Please let me know any suggestions as this one has me baffled


    -haryy
    Attached Images Attached Images

  2. #2
    Join Date
    Jun 2012
    Location
    Colorado springs, CO
    Beans
    53
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Raid 5 array says 1.27tb free but I cant copy file over!

    That is wierd. Are you using ubunt server?

  3. #3
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: Raid 5 array says 1.27tb free but I cant copy file over!

    What is the output of:
    Code:
    df -i
    Cheesemill

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

    Re: Raid 5 array says 1.27tb free but I cant copy file over!

    Quote Originally Posted by Cheesemill View Post
    What is the output of:
    Code:
    df -i
    +1 it is likely this is a free inodes problem. Along with that, can you post the output of these?

    Code:
    df -h
    Code:
    mdadm --detail --scan
    Code:
    cat /etc/fstab

  5. #5
    Join Date
    Mar 2007
    Beans
    48

    Re: Raid 5 array says 1.27tb free but I cant copy file over!

    Quote Originally Posted by rubylaser View Post
    +1 it is likely this is a free inodes problem. Along with that, can you post the output of these?

    Code:
    df -h
    Code:
    mdadm --detail --scan
    Code:
    cat /etc/fstab
    Sorry for the late reply never got an email alert Here is the outputs for what you guys asked:

    df -i
    Code:
    Filesystem            Inodes   IUsed   IFree IUse% Mounted on
    /dev/sda1             593344  148621  444723   26% /
    none                   61783    1032   60751    2% /dev
    none                   63477       3   63474    1% /dev/shm
    none                   63477      68   63409    1% /var/run
    none                   63477       1   63476    1% /var/lock
    /dev/md0             854671360  374240 854297120    1% /var/media
    df -h
    Code:
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/sda1             8.9G  3.3G  5.3G  39% /
    none                  242M  660K  241M   1% /dev
    none                  248M  164K  248M   1% /dev/shm
    none                  248M  3.0M  246M   2% /var/run
    none                  248M     0  248M   0% /var/lock
    /dev/md0              6.3T  4.8T  1.3T  79% /var/media
    mdadm --detail --scan
    Code:
    ARRAY /dev/md0 metadata=0.90 UUID=72fa18f5:bf5d1a62:31a05266:02bffc2c
    cat /etc/fstab
    Code:
    # /etc/fstab: static file system information.
    #
    # Use 'blkid -o value -s UUID' to print the universally unique identifier
    # for a device; this may be used with UUID= as a more robust way to name
    # devices that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    nodev,noexec,nosuid 0       0
    # / was on /dev/sda1 during installation
    UUID=1baa5edb-438e-4012-b553-46d0f573b410 /               ext4    errors=remount-ro 0       1
    # swap was on /dev/sda5 during installation
    UUID=86f7fdfc-eded-41f7-aa9f-ad86656397d4 none            swap    sw              0       0

  6. #6
    Join Date
    Mar 2007
    Beans
    48

    Re: Raid 5 array says 1.27tb free but I cant copy file over!

    Any ideas on what to do with this? I make HD videos for people (weddings, etc) and I have run out of room to store all of my current projects. Please let me know if there is anything that I can go to try and get this going for me, thanks!

    -haryy

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

    Re: Raid 5 array says 1.27tb free but I cant copy file over!

    Your mdadm array isn't in your /etc/fstab, how are you mounting it, and what filesystem do you have on it?

    Code:
    sudo -i
    mount
    Also, what happens if you try to write to the array locally (not over SAMBA from Windows)?
    Code:
    dd if=/dev/zero of=/var/media/testfile.out bs=1M count=10000
    This will make a 10GB file on your array at /var/media/testfile.out. Please post the output of that command, and then feel free to delete the file.
    Code:
    rm /var/media/testfile.out
    Last edited by rubylaser; June 28th, 2012 at 12:47 AM.

  8. #8
    Join Date
    Mar 2007
    Beans
    48

    Re: Raid 5 array says 1.27tb free but I cant copy file over!

    Every time I have to boot up the server I manually mount it. I had issues when I first setup the array with auto mounting in the fstab. Reason being is that once in a great while it wouldnt recognize a disk and it would go ahead and build the array with 7 disks and then I would have to re-add the disk to the array and risk loosing data while it was being re-built. So I just manually do it now which I have never had any issues with and it gives me some security.

    Here is the result:

    dd if=/dev/zero of=/var/media/testfile.out bs=1M count=10000

    Code:
    dd if=/dev/zero of=/var/media/testfile.out bs=1M count=10000
    dd: writing `/var/media/testfile.out': No space left on device
    1697+0 records in
    1696+0 records out
    1779216384 bytes (1.8 GB) copied, 116.644 s, 15.3 MB/s
    mount

    Code:
    /dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=0)
    proc on /proc type proc (rw,noexec,nosuid,nodev)
    none on /sys type sysfs (rw,noexec,nosuid,nodev)
    fusectl on /sys/fs/fuse/connections type fusectl (rw)
    none on /sys/kernel/debug type debugfs (rw)
    none on /sys/kernel/security type securityfs (rw)
    none on /dev type devtmpfs (rw,mode=0755)
    none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
    none on /dev/shm type tmpfs (rw,nosuid,nodev)
    none on /var/run type tmpfs (rw,nosuid,mode=0755)
    none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
    binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
    /dev/md0 on /var/media type ext3 (rw)
    Looks like it only wrote 1.8GB onto the array.


    -haryy

  9. #9
    Join Date
    Mar 2007
    Beans
    48

    Re: Raid 5 array says 1.27tb free but I cant copy file over!

    Any suggestions that I could try or anything? Thanks!

    -haryy

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

    Re: Raid 5 array says 1.27tb free but I cant copy file over!

    Sorry for the delay, I was out of town with my family. This is interesting. Your filesystem isn't out of inodes, and has available space. You are not using quotas on your filesystem, so that isn't preventing the write either. Can I see all the info for your array, and the permissions on that path?

    Code:
    mdadm --detail /dev/md0
    Code:
    ls /var/ | grep media
    Code:
    du -hs --max-depth=1 /var/media
    Another thing, you could do is unmount your array, and run an fsck on it. Have it run even if it says it's clean. You might find some inode links / counts are way off and for some reason the drive never got flagged as dirty.

    Code:
    sudo -i
    umount /var/media
    fsck.ext3 /var/media
    After the fsck completes, you can remount the array.
    Last edited by rubylaser; July 2nd, 2012 at 03:05 PM.

Page 1 of 2 12 LastLast

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
  •