OMV partition full

    • OMV 2.x
    • Resolved

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • OMV partition full

      I'm running omv 2 on rpi2 system.
      My omv partition is almost full and the data is empty, why and how can I handle this? I'm using a 8GB microSd card with 2 external USB attached to the raspberry
      Images
      • Screen Shot 2016-07-01 at 23.33.34.png

        127.37 kB, 1,824×428, viewed 1,154 times
    • this is the result

      Source Code

      1. sudo du -hx --max-depth=1 /
      2. 2.6M /home
      3. 0 /run
      4. 4.0K /.Trashes
      5. 7.9M /etc
      6. 9.5M /boot.bak
      7. 0 /dev
      8. 16K /lost+found
      9. 4.0K /selinux
      10. 13K /media
      11. 0 /sys
      12. 44K /root
      13. 2.3M /tmp
      14. 16K /boot
      15. 312M /var
      16. 16K /srv
      17. 1.1G /export
      18. 44M /opt
      19. 5.9M /bin
      20. 1.3G /usr
      21. 11M /sbin
      22. 0 /proc
      23. 494M /lib
      24. 1.1G /mnt
      25. 4.2G /
      Display All


      I installed mysql and nginx to start using wordpress but I configured nginx to use the usb attached drive as document root.

      Can I resize the /data partition and add space to omv?

      I'm mounting via fstab a remote samba share (router usb drive) via

      Source Code

      1. ​//192.168.0.1/USB_Storage /mnt/ready_share cifs guest,uid=1000,gid=1000,iocharset=utf8 0 0

      I don't know why this makes the "omv" partition full.
      I had issue using the "remote share" plugin as described there Mount smb share from not attached drive

      The post was edited 2 times, last by mcgyver83 ().

    • In /mnt I have the folder ready_share that is a remote samba share from a usb drive attached to the router.
      I'm mounting it via fstab with

      Source Code

      1. #//192.168.0.1/USB_Storage /mnt/ready_share cifs guest,uid=1000,gid=1000,iocharset=utf8 0 0


      How can I mount this remote share without impacting on the raspberry microSD space (so OMV and data partitions)?
      From OMV gui I see a device named mmcblk0p2 that is labelled OMV (3,18GB) that is full and another mmcblk0p3 labelled data (3,94GB) that is almost empty.
      As said there Mount smb share from not attached drive there is some issue using remote share from OMV (when I mount the remote share that has already some files in it seems to fill up all the space of the dev where I'm mounting the share) so how can I reach this share from the OMV gui avoiding the space full problem?

      And why /dev/mmcblk0p3 is automatically mounted on /media/fa36508a-b3c4-4499-b30a-711dd5994225 but mmcblk0p2 (that should be the OMV partition) isn't?
      I have an usb drive attached directly to the raspberry and another plugged into the router accessed via samba share.

      Source Code

      1. df -h Thu Jul 14 09:55:29 2016
      2. Filesystem Size Used Avail Use% Mounted on
      3. /dev/root 3.2G 2.9G 172M 95% /
      4. devtmpfs 483M 0 483M 0% /dev
      5. tmpfs 98M 428K 97M 1% /run
      6. tmpfs 5.0M 0 5.0M 0% /run/lock
      7. tmpfs 195M 0 195M 0% /run/shm
      8. /dev/mmcblk0p1 56M 21M 35M 38% /boot
      9. /dev/sda1 458G 335G 100G 78% /media/d67cade7-889e-47ba-9c68-6667ddd03259
      10. /dev/mmcblk0p3 4.0G 3.1M 3.8G 1% /media/fa36508a-b3c4-4499-b30a-711dd5994225
      11. /dev/root 3.2G 2.9G 172M 95% /var/folder2ram/var/lib/openmediavault/rrd
      12. /dev/root 3.2G 2.9G 172M 95% /var/folder2ram/var/lib/monit
      13. /dev/root 3.2G 2.9G 172M 95% /var/folder2ram/var/log
      14. folder2ram 487M 524K 487M 1% /var/lib/openmediavault/rrd
      15. /dev/root 3.2G 2.9G 172M 95% /var/folder2ram/var/spool
      16. folder2ram 487M 8.0K 487M 1% /var/lib/monit
      17. /dev/root 3.2G 2.9G 172M 95% /var/folder2ram/var/lib/php5
      18. folder2ram 487M 1.6M 486M 1% /var/log
      19. folder2ram 487M 708K 486M 1% /var/spool
      20. /dev/root 3.2G 2.9G 172M 95% /var/folder2ram/var/lib/rrdcached
      21. /dev/root 3.2G 2.9G 172M 95% /var/folder2ram/var/tmp
      22. folder2ram 487M 4.0K 487M 1% /var/lib/php5
      23. folder2ram 487M 0 487M 0% /var/tmp
      24. folder2ram 487M 14M 473M 3% /var/lib/rrdcached
      Display All


      This will find files bigger than 10MB

      Source Code

      1. ​sudo find / -size +10000k -print0 | xargs -0 ls -l -h | grep -v "media" | grep -v "ready_share"
      2. -rw-rw-r-- 1 root users 30M Aug 21 2015 /opt/vc/src/hello_pi/hello_video/test.h264
      3. -rw-r--r-- 1 root root 18M Jul 8 01:17 /usr/lib/arm-linux-gnueabihf/libicudata.so.48.1.1
      4. -rw-r--r-- 1 root root 11M Mar 4 2014 /usr/lib/jvm/jdk-8-oracle-arm-vfp-hflt/jre/lib/arm/server/libjvm.so
      5. -rw-r--r-- 1 root root 63M Mar 4 2014 /usr/lib/jvm/jdk-8-oracle-arm-vfp-hflt/jre/lib/rt.jar
      6. -rw-r--r-- 1 root root 18M Mar 4 2014 /usr/lib/jvm/jdk-8-oracle-arm-vfp-hflt/lib/ct.sym
      7. -rw-r--r-- 1 root root 18M Mar 4 2014 /usr/lib/jvm/jdk-8-oracle-arm-vfp-hflt/lib/tools.jar
      8. -rw-r--r-- 1 root root 21M Mar 4 2014 /usr/lib/jvm/jdk-8-oracle-arm-vfp-hflt/src.zip
      9. -rw-r--r-- 1 root root 24M Jun 20 2014 /usr/share/icons/nuoveXT2/icon-theme.cache
      10. -rw-r--r-- 1 root root 18M Jul 14 11:36 /var/cache/apt/pkgcache.bin
      11. -rw-r--r-- 1 root root 18M Jul 14 11:36 /var/cache/apt/srcpkgcache.bin
      12. -rw-r--r-- 1 root root 34M Jul 14 00:17 /var/lib/apt/lists/mirrordirector.raspbian.org_raspbian_dists_wheezy_main_binary-armhf_Packages
      13. -rw------- 1 root root 70M Jul 13 14:12 /var/swap
      Display All


      I cannot understand where the space goes :(

      The post was edited 2 times, last by mcgyver83 ().

    • mcgyver83 wrote:

      How can I mount this remote share without impacting on the raspberry microSD space (so OMV and data partitions)?


      I already told you there probably content under the mount. You can mount other local or remote devices over folders with existing contents. Probably the share was unmounted and something wrote to it, disconnect it and see if you have contents underneath. Also the /media folder should be zero, i suspect there is also content there, you can try and force unmount of the devices there to see what's underneath.

      p1 is boot partition, obligatory for Pi devices for the bootloader. p2 is root partition and p3 is some data partition created probably because some users complained they could not use the SD card as storage.
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • Coming back again.
      I'm trying to compile ffmpeg.
      I switched to a 16GB microsd, increased /dev/mmcblk0p3 partition using the script present in /root but I'm getting out of space on omv partition and mmcblk0p3 is still almost empty.

      I don't know what is happening while compiling but how can I:
      • use omv partition instead;
      • split the new space gained by the 16GB microsd between omv and root
      Images
      • Screen Shot 2016-09-19 at 19.10.05.png

        61.15 kB, 1,012×318, viewed 111 times
    • If you compile it in /root, you haven't changed the OS partition size. So, you will still have the same problem. To compile on your data drive with the larger partition, you will need to remove the noexec flag from the partition and then compile it from a folder on that drive.

      Why don't you just upgrade to OMV 3.x (debian jessie) and use the jessie-backports version of ffmpeg (3.0.2). It should be new enough, maintained, and a lot less work.
      omv 4.0.10 arrakis | 64 bit | 4.13 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • omv3 core is stable. Not every plugin is.

      I don't recommend migrating unless you are very comfortable with Debian.

      /home is in the os partition too.

      If you don't want it mounted noexec all the time, just issue the command: mount -o remount,exec /dev/mmcblk0p3 (may have to change the device)
      omv 4.0.10 arrakis | 64 bit | 4.13 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • Ok, I will think about migration.
      About the noexec topic, I don't understand: with the command mount -o remount,exec /dev/mmcblk0p3 I make permanent the exec flag?

      Ok, I can clone and compile ffmpeg on /dev/mmcblk0p3 instead of in the home.

      I cannot find the mount directive /dev/mmcblk0p3 in fstab... how can I set the exec flag permanently?
      Why is noexec as default?
      this is my fstab line
      UUID=fa36508a-b3c4-4499-b30a-711dd5994225 /media/fa36508a-b3c4-4499-b30a-711dd5994225 ext4 exec,noatime,nodiratime,defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,discard,acl 0 2

      This is my du scenario

      sudo du -hx --max-depth=1 /
      3.0M /home
      0 /run
      4.0K /.Trashes
      8.8M /etc
      9.5M /boot.bak
      0 /dev
      16K /lost+found
      4.0K /selinux
      17K /media
      0 /sys
      52K /root
      2.3M /tmp
      16K /boot
      359M /var
      16K /srv
      4.0K /export
      93M /opt
      5.9M /bin
      1.5G /usr
      11M /sbin
      0 /proc
      595M /lib
      8.0K /mnt
      2.6G /

      How can I free some space in OMV partition?

      The post was edited 3 times, last by mcgyver83 ().

    • mcgyver83 wrote:

      I make permanent the exec flag?
      No , that command only mounts it exec until reboot or remount.

      mcgyver83 wrote:

      how can I set the exec flag permanently?
      Change config.xml and rewrite fstab

      mcgyver83 wrote:

      Why is noexec as default?
      No reason to have data drives on a NAS mounted with exec. Security is the best reason.

      Your fstab line is wrong. If you want a drive noexec, then add noexec flag, If you want a drive exec, then subtract noexec flag.

      Your directory listing just shows which directory is using the most space. It would take too much time to look for every unneeded file to trim a bit of space away. Put the card in another machine booted with gparted-live and resize the OS partition -OR- temporary mount the data drive exec and compile it on there.
      omv 4.0.10 arrakis | 64 bit | 4.13 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • ryecoaaron wrote:

      mcgyver83 wrote:

      I make permanent the exec flag?
      No , that command only mounts it exec until reboot or remount.

      mcgyver83 wrote:

      how can I set the exec flag permanently?
      Change config.xml and rewrite fstab

      mcgyver83 wrote:

      Why is noexec as default?
      No reason to have data drives on a NAS mounted with exec. Security is the best reason.
      Your fstab line is wrong. If you want a drive noexec, then add noexec flag, If you want a drive exec, then subtract noexec flag.

      Your directory listing just shows which directory is using the most space. It would take too much time to look for every unneeded file to trim a bit of space away. Put the card in another machine booted with gparted-live and resize the OS partition -OR- temporary mount the data drive exec and compile it on there.
      The fstab line for fa36508a-b3c4-4499-b30a-711dd5994225 comes from OMV, I add exec at the beginning of the mounting options, what should be the proper string?
      So what is the matter of the not labelled partition?the /dev/mmcblk0p3 that grow up with the microSd upgrade?
      Ok, let's try with an ubuntu machine or can I use an osx to reduce the /dev/mmcblk0p3 and increase the OMV one?
    • If you want the drive executable, just remove noexec. Don't add exec.

      I don't understand your question about the not labeled partition.

      Ubuntu will work fine if you use gparted.
      omv 4.0.10 arrakis | 64 bit | 4.13 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • Looking this image

      you can see the 11,1GB partition that is /dev/mmcblk0p3 that is the one increased by the /root/resize_mmcp3.sh that has no label.

      /dev/mmcblk0p3 is mounted on /media/fa36508a-b3c4-4499-b30a-711dd5994225 but is "owned" by root, I can only create folder with sudo.
      How can I eable others to write there?

      Ok for ubuntu, but something working and Osx? otherwise I have to install a virtual machine to do this :(

      The post was edited 1 time, last by mcgyver83 ().

    • The partition doesn't have to have a label. Being owned by root is fine. You need the group permissions to be something users can access. To make a folder, create a shared folder in the web interface then give your user the right privileges.

      You mentioned Ubuntu so I said go with it. I dont know what partition resizing options are available for OSX.
      omv 4.0.10 arrakis | 64 bit | 4.13 backports kernel | omvextrasorg 4.1.0
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please don't PM for support... Too many PMs!
    • Hi, coming back with the same issue ;( I moved to OMV 3 but I don't know if is better to open e new thread or use this.
      I tried to compile again ffmpeg to try to use some configure flag to have a better performing video encoding with raspberry.
      In the middle of the compile of some libs I get the omv drive full.
      I stopped but now I don't know how to cleanup the / folder
      Any hints?

      Source Code

      1. sudo du -hx --max-depth=1 /
      2. 6.8M /home
      3. 8.8M /etc
      4. 9.5M /boot.bak
      5. 16K /lost+found
      6. 4.0K /media
      7. 44K /root
      8. 652K /tmp
      9. 905M /var
      10. 16K /srv
      11. 4.0K /export
      12. 42M /opt
      13. 7.9M /bin
      14. 1.7G /usr
      15. 15M /sbin
      16. 367M /lib
      17. 4.0K /mnt
      18. 3.0G /
      Display All