Hello all.
I need to turn off the quota service and remove the aquota.user and aquota.group files from the root of my disks, so I can give permissions to all folders from root, instead of going one by one (for some reason I cannot delete them logged as root either change their ownership and permissions, I guess because they are system service files).
So I have done the following steps:
1. quotaoff -a
The output of this command was none, but it seems to have worked as it was idle for around 10 minutes.
2. systemctl disable quota
The output of this command was full of errors I do not understand:
Synchronizing state of quota.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable quota
insserv: warning: current start runlevel(s) (empty) of script `quota' overrides LSB defaults (S).
insserv: warning: current stop runlevel(s) (0 6 S) of script `quota' overrides LSB defaults (0 6).
insserv: warning: current start runlevel(s) (empty) of script `quota' overrides LSB defaults (S).
insserv: warning: current stop runlevel(s) (0 6 S) of script `quota' overrides LSB defaults (0 6).
After these 2 commands, 10 out of 12 disks got correctly their quota service turned off, as, after a remount and a reboot, there were no aquota.user and aquota.group files in their root.
But there are 2 disks that still have quota enabled somehow (maybe because of the errors above).
So I manually edited the /etc/openmediavault/config.xml file, and substitute the chain usrjquota=aquota.user,grpjquota=aquota.group by noquota on all the disks, and make a
3. omv-mkconf fstab.
I remounted the disks, reboot, and the /etc/fstab shows the disk correctly as noquota
# /etc/fstab: static file system information.
#
# Use 'blkid' 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>
# / was on /dev/sdb1 during installation
UUID=bbc7e850-1982-4c32-81d2-de9004512620 / ext4 noatime,nodiratime,errors=remount-ro 0 1
# swap was on /dev/sdb5 during installation
#UUID=1126c675-ba7a-44f5-9e1d-fe65aa300475 none swap sw 0 0
tmpfs /tmp tmpfs defaults 0 0
# >>> [openmediavault]
/dev/disk/by-label/peliculas1 /srv/dev-disk-by-label-peliculas1 ext4 defaults,nofail,user_xattr,noexec,noquota,jqfmt=vfsv0,acl 0 2
/dev/disk/by-label/peliculas2 /srv/dev-disk-by-label-peliculas2 ext4 defaults,nofail,user_xattr,noexec,noquota,jqfmt=vfsv0,acl 0 2
/dev/disk/by-label/peliculas3 /srv/dev-disk-by-label-peliculas3 ext4 defaults,nofail,user_xattr,noexec,noquota,jqfmt=vfsv0,acl 0 2
/dev/disk/by-label/peliculas4 /srv/dev-disk-by-label-peliculas4 ext4 defaults,nofail,user_xattr,noexec,noquota,jqfmt=vfsv0,acl 0 2
/dev/disk/by-label/cache /srv/dev-disk-by-label-cache ext4 defaults,nofail,user_xattr,exec,noquota,jqfmt=vfsv0,discard,acl 0 2
/dev/disk/by-label/series1 /srv/dev-disk-by-label-series1 ext4 defaults,nofail,user_xattr,noexec,noquota,jqfmt=vfsv0,acl 0 2
/dev/disk/by-label/series2 /srv/dev-disk-by-label-series2 ext4 defaults,nofail,user_xattr,noexec,noquota,jqfmt=vfsv0,acl 0 2
/dev/disk/by-label/peliculas5 /srv/dev-disk-by-label-peliculas5 ext4 defaults,nofail,user_xattr,noexec,noquota,jqfmt=vfsv0,acl 0 2
/dev/disk/by-label/multimedia1 /srv/dev-disk-by-label-multimedia1 ext4 defaults,nofail,user_xattr,noexec,noquota,jqfmt=vfsv0,acl 0 2
/dev/disk/by-label/musica1 /srv/dev-disk-by-label-musica1 ext4 defaults,nofail,user_xattr,noexec,noquota,jqfmt=vfsv0,acl 0 2
/dev/disk/by-label/juegos1 /srv/dev-disk-by-label-juegos1 ext4 defaults,nofail,user_xattr,noexec,noquota,jqfmt=vfsv0,acl 0 2
/dev/disk/by-label/series3 /srv/dev-disk-by-label-series3 ext4 defaults,nofail,user_xattr,noexec,noquota,jqfmt=vfsv0,acl 0 2
//192.168.13.1/backup /srv/ff32d46a-2f2d-4f09-9672-87cd88c42792 cifs credentials=/root/.cifscredentials-bce66a21-5fb1-49b0-adff-20b303297f54,_netdev,iocharset=utf8,vers=2.0,nofail 0 0
# <<< [openmediavault]
Alles anzeigen
The id of the disks with the aquota.user and aquota.group present are "series3" and "multimedia1" (I cannot find any difference with the other disks and I don't know why these 2 still have those files on root), and I cannot remove them or change ownership.
Watching the logs from monit service I have seen some warnings about filesystem flags being changed (I never got this error before), curiously for disks "series3" and "multimedia1" which are the ones with the quota files still in them.
monit alert -- Filesystem flags changed filesystem_srv_dev-disk-by-label-series3 on the Fri, 15 Mar 2019 19:05:45 GMT
Filesystem flags changed Service filesystem_srv_dev-disk-by-label-series3
Date: Fri, 15 Mar 2019 20:05:45
Action: alert
Host: olmos13nas
Description: filesystem flags changed to 0x1008
monit alert -- Filesystem flags changed filesystem_srv_dev-disk-by-label-multimedia1 on the Fri, 15 Mar 2019 19:05:47 GMT
Filesystem flags changed Service filesystem_srv_dev-disk-by-label-multimedia1
Date: Fri, 15 Mar 2019 20:05:47
Action: alert
Host: olmos13nas
Description: filesystem flags changed to 0x1008
Which is the command to check if the quota service is still on? I tried quotacheck but it results as an error.
Thanks in advance.
Any other output or log needed, just ask me for it.