Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot activate quota, not supported in kernel #367

Closed
Nardol opened this issue Aug 31, 2013 · 5 comments
Closed

Cannot activate quota, not supported in kernel #367

Nardol opened this issue Aug 31, 2013 · 5 comments

Comments

@Nardol
Copy link

Nardol commented Aug 31, 2013

Hello,
When I do sudo apt-get install quota, I have the following error:
[ ok ] Checking quotas...done.
[....] Turning on quotas...quotaon: using //aquota.group on /dev/root [/] : No such process
quotaon: Quota format not supported in kernel.
quotaon: using //aquota.user on /dev/root [/] : No such process
quotaon: Quota format not supported in kernel.
quotaon: using /mnt/ssd1/aquota.group on /dev/sda1 [/mnt/ssd1] : No such process
quotaon: Quota format not supported in kernel.
quotaon: using /mnt/ssd1/aquota.user on /dev/sda1 [/mnt/ssd1] : No such process
quotaon: Quota format not supported in kernel.
quotaon: using /mnt/ssd2/aquota.group on /dev/sda2 [/mnt/ssd2] : No such process
quotaon: Quota format not supported in kernel.
quotaon: using /mnt/ssd2/aquota.user on /dev/sda2 [/mnt/ssd2] : No such process
quotaon: Quota format not supported in kernel.
invoke-rc.d: initscript quota, action "start" failed.
I seen a post which repport this issue, but no solutions:
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=27&t=28392

I am not sure it is relative to raspbian or not so I posted it to raspbian to at:
https://bugs.launchpad.net/raspbian/+bug/1218865

Some informations:
pzajda@rsp1:$ uname -a
Linux rsp1 3.6.11+ #528 PREEMPT Tue Aug 20 00:25:53 BST 2013 armv6l GNU/Linux
pzajda@rsp1:
$ sudo dpkg -s libc6 | grep ^Version
Version: 2.13-38+rpi2

@popcornmix
Copy link
Collaborator

Added the QFMT_V1 and QFMT_V2 modules in latest update.
Please test.

@Nardol
Copy link
Author

Nardol commented Sep 8, 2013

Hi,

Le 08/09/2013 18:59, popcornmix a écrit :

Added the QFMT_V1 and QFMT_V2 modules in latest update.
Please test.

OK, it works well now.

Thanks!

Patrick ZAJDA
patrick@zajda.fr
Skype : gansta93
MSN : patrickzajda@hotmail.com

fastcat pushed a commit to fastcat/linux-pps that referenced this issue Sep 25, 2013
In ext4_nonda_switch(), if the file system is getting full we used to
call writeback_inodes_sb_if_idle().  The problem is that we can be
holding i_mutex already, and this causes a potential deadlock when
writeback_inodes_sb_if_idle() when it tries to take s_umount.  (See
lockdep output below).

As it turns out we don't need need to hold s_umount; the fact that we
are in the middle of the write(2) system call will keep the superblock
pinned.  Unfortunately writeback_inodes_sb() checks to make sure
s_umount is taken, and the VFS uses a different mechanism for making
sure the file system doesn't get unmounted out from under us.  The
simplest way of dealing with this is to just simply grab s_umount
using a trylock, and skip kicking the writeback flusher thread in the
very unlikely case that we can't take a read lock on s_umount without
blocking.

Also, we now check the cirteria for kicking the writeback thread
before we decide to whether to fall back to non-delayed writeback, so
if there are any outstanding delayed allocation writes, we try to get
them resolved as soon as possible.

   [ INFO: possible circular locking dependency detected ]
   3.6.0-rc1-00042-gce894ca raspberrypi#367 Not tainted
   -------------------------------------------------------
   dd/8298 is trying to acquire lock:
    (&type->s_umount_key#18){++++..}, at: [<c02277d4>] writeback_inodes_sb_if_idle+0x28/0x46

   but task is already holding lock:
    (&sb->s_type->i_mutex_key#8){+.+...}, at: [<c01ddcce>] generic_file_aio_write+0x5f/0xd3

   which lock already depends on the new lock.

   2 locks held by dd/8298:
    #0:  (sb_writers#2){.+.+.+}, at: [<c01ddcc5>] generic_file_aio_write+0x56/0xd3
    raspberrypi#1:  (&sb->s_type->i_mutex_key#8){+.+...}, at: [<c01ddcce>] generic_file_aio_write+0x5f/0xd3

   stack backtrace:
   Pid: 8298, comm: dd Not tainted 3.6.0-rc1-00042-gce894ca raspberrypi#367
   Call Trace:
    [<c015b79c>] ? console_unlock+0x345/0x372
    [<c06d62a1>] print_circular_bug+0x190/0x19d
    [<c019906c>] __lock_acquire+0x86d/0xb6c
    [<c01999db>] ? mark_held_locks+0x5c/0x7b
    [<c0199724>] lock_acquire+0x66/0xb9
    [<c02277d4>] ? writeback_inodes_sb_if_idle+0x28/0x46
    [<c06db935>] down_read+0x28/0x58
    [<c02277d4>] ? writeback_inodes_sb_if_idle+0x28/0x46
    [<c02277d4>] writeback_inodes_sb_if_idle+0x28/0x46
    [<c026f3b2>] ext4_nonda_switch+0xe1/0xf4
    [<c0271ece>] ext4_da_write_begin+0x27/0x193
    [<c01dcdb0>] generic_file_buffered_write+0xc8/0x1bb
    [<c01ddc47>] __generic_file_aio_write+0x1dd/0x205
    [<c01ddce7>] generic_file_aio_write+0x78/0xd3
    [<c026d336>] ext4_file_write+0x480/0x4a6
    [<c0198c1d>] ? __lock_acquire+0x41e/0xb6c
    [<c0180944>] ? sched_clock_cpu+0x11a/0x13e
    [<c01967e9>] ? trace_hardirqs_off+0xb/0xd
    [<c018099f>] ? local_clock+0x37/0x4e
    [<c0209f2c>] do_sync_write+0x67/0x9d
    [<c0209ec5>] ? wait_on_retry_sync_kiocb+0x44/0x44
    [<c020a7b9>] vfs_write+0x7b/0xe6
    [<c020a9a6>] sys_write+0x3b/0x64
    [<c06dd4bd>] syscall_call+0x7/0xb

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@vger.kernel.org
@acastano59
Copy link

Hi,

I have the same problem,

apt-get install quota -y

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
g++-4.6 libstdc++6-4.6-dev
Use 'apt-get autoremove' to remove them.
Suggested packages:
libnet-ldap-perl default-mta mail-transport-agent
The following NEW packages will be installed:
quota
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/614 kB of archives.
After this operation, 1,373 kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package quota.
(Reading database ... 67494 files and directories currently installed.)
Unpacking quota (from .../quota_4.00-4+deb7u1_armhf.deb) ...
Processing triggers for man-db ...
Setting up quota (4.00-4+deb7u1) ...
[ ok ] Checking quotas...done.
[....] Turning on quotas...quotaon: using /home/aquota.user on /dev/sda [/home]: No such process
quotaon: Quota format not supported in kernel.
invoke-rc.d: initscript quota, action "start" failed.
dpkg: error processing quota (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
quota
E: Sub-process /usr/bin/dpkg returned an error code (1)

uname -a
Linux noname 3.6.11+ #538 PREEMPT Fri Aug 30 20:42:08 BST 2013 armv6l GNU/Linux

@Nardol
Copy link
Author

Nardol commented Dec 11, 2013

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

With the latest firmware, this problem doesn't occurs anymore...

Patrick
Le 11/12/2013 10:10, acastano59 a écrit :

Hi,

I have the same problem,

apt-get install quota -y Reading package lists... Done Building

dependency tree Reading state information... Done The following
packages were automatically installed and are no longer required:
g++-4.6 libstdc++6-4.6-dev Use 'apt-get autoremove' to remove
them. Suggested packages: libnet-ldap-perl default-mta
mail-transport-agent The following NEW packages will be installed:
quota 0 upgraded, 1 newly installed, 0 to remove and 0 not
upgraded. Need to get 0 B/614 kB of archives. After this operation,
1,373 kB of additional disk space will be used. Preconfiguring
packages ... Selecting previously unselected package quota.
(Reading database ... 67494 files and directories currently
installed.) Unpacking quota (from
.../quota_4.00-4+deb7u1_armhf.deb) ... Processing triggers for
man-db ... Setting up quota (4.00-4+deb7u1) ... [ ok ] Checking
quotas...done. [....] Turning on quotas...quotaon: using
/home/aquota.user on /dev/sda [/home]: No such process quotaon:
Quota format not supported in kernel. invoke-rc.d: initscript
quota, action "start" failed. dpkg: error processing quota
(--configure): subprocess installed post-installation script
returned error exit status 1 Errors were encountered while
processing: quota E: Sub-process /usr/bin/dpkg returned an error
code (1)

uname -a Linux noname 3.6.11+ #538 PREEMPT Fri Aug 30 20:42:08 BST
2013 armv6l GNU/Linux

--- Reply to this email directly or view it on GitHub:
#367 (comment)


Patrick ZAJDA
Skype : gansta93
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSqDR5AAoJEKPVT2DeSPb4Mn0IAI/c8M3yqCDTluPER8Ln9w+O
0XYhFUbUQbOqTFldG8izKE8qenPJ0M4pWcZ64p2fODgIRdEDA4rXJSslcnqdlCw3
hyQwd4vd0payrURdcjoM5XJatP6abIJphwj4c20wnwMsvcGcIKjFlgpiL7sQGZ+6
kkMWKPwiBvJWYNwpSrd0Vw+PQFjluiKG5In8kVhLc/XTupqQbL0ybW91OABaHnzz
Bf42Lc9agv9hmwG0doCEYG3tkwmIs+slKGXTd0qjD1rXNrtd7YVTA0v5woefGL17
5D5RzNquEF99KqtuSp0IUA7Uwq9SErh0VKUSejrm78lKfKXhNbGfjGs7dbx4cwg=
=ZS/R
-----END PGP SIGNATURE-----

@acastano59
Copy link

Shame on me!! I did not reboot the raspberry, once I did it, it works like
a charm.

Sorry and have a nice day!


Alejandro Castaño Fernández

On Wed, Dec 11, 2013 at 10:47 AM, Patrick ZAJDA notifications@github.comwrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

With the latest firmware, this problem doesn't occurs anymore...

Patrick
Le 11/12/2013 10:10, acastano59 a écrit :

Hi,

I have the same problem,

apt-get install quota -y Reading package lists... Done Building

dependency tree Reading state information... Done The following
packages were automatically installed and are no longer required:
g++-4.6 libstdc++6-4.6-dev Use 'apt-get autoremove' to remove
them. Suggested packages: libnet-ldap-perl default-mta
mail-transport-agent The following NEW packages will be installed:
quota 0 upgraded, 1 newly installed, 0 to remove and 0 not
upgraded. Need to get 0 B/614 kB of archives. After this operation,
1,373 kB of additional disk space will be used. Preconfiguring
packages ... Selecting previously unselected package quota.
(Reading database ... 67494 files and directories currently
installed.) Unpacking quota (from
.../quota_4.00-4+deb7u1_armhf.deb) ... Processing triggers for
man-db ... Setting up quota (4.00-4+deb7u1) ... [ ok ] Checking
quotas...done. [....] Turning on quotas...quotaon: using
/home/aquota.user on /dev/sda [/home]: No such process quotaon:
Quota format not supported in kernel. invoke-rc.d: initscript
quota, action "start" failed. dpkg: error processing quota
(--configure): subprocess installed post-installation script
returned error exit status 1 Errors were encountered while
processing: quota E: Sub-process /usr/bin/dpkg returned an error
code (1)

uname -a Linux noname 3.6.11+ #538 PREEMPT Fri Aug 30 20:42:08 BST
2013 armv6l GNU/Linux

--- Reply to this email directly or view it on GitHub:
#367 (comment)


Patrick ZAJDA
Skype : gansta93
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSqDR5AAoJEKPVT2DeSPb4Mn0IAI/c8M3yqCDTluPER8Ln9w+O
0XYhFUbUQbOqTFldG8izKE8qenPJ0M4pWcZ64p2fODgIRdEDA4rXJSslcnqdlCw3
hyQwd4vd0payrURdcjoM5XJatP6abIJphwj4c20wnwMsvcGcIKjFlgpiL7sQGZ+6
kkMWKPwiBvJWYNwpSrd0Vw+PQFjluiKG5In8kVhLc/XTupqQbL0ybW91OABaHnzz
Bf42Lc9agv9hmwG0doCEYG3tkwmIs+slKGXTd0qjD1rXNrtd7YVTA0v5woefGL17
5D5RzNquEF99KqtuSp0IUA7Uwq9SErh0VKUSejrm78lKfKXhNbGfjGs7dbx4cwg=
=ZS/R
-----END PGP SIGNATURE-----


Reply to this email directly or view it on GitHubhttps://github.com//issues/367#issuecomment-30306666
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants