DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] Drive ran out of storage, now has space missing
@ 2010-08-28 23:56 Nick Semenkovich
  2010-08-29  1:21 ` Arno Wagner
  0 siblings, 1 reply; 3+ messages in thread
From: Nick Semenkovich @ 2010-08-28 23:56 UTC (permalink / raw)
  To: dm-crypt

A few days ago, a batch process I was running accidentally exhausted
100% of my partition's storage. One directory on this partition is
encrypted with dm-crypt.


After killing the process, I tried to free up some space by deleting
files from the encrypted directory. Strangely, after RM-ing ~4 GB of
files, I noticed that "df -h" showed that there wasn't any additional
free space.

df's "Used" column value was decreasing, but the "Avail" column wasn't
increasing.

When I RM-ed files outside of the encrypted directory (but on the same
partition), "df -h" behaved normally (with "Used" decreasing as
"Avail" increased).

dmesg had many messages of the type:
[  140.267890] ecryptfs_encrypt_page: Error attempting to write lower
page; rc = [-28]
[  140.267894] ecryptfs_write_end: Error encrypting page (upper index
[0x0000000000000000])

Those messages stopped appearing (after space was freed and I
rebooted), but now there are intermittent messages of the type:
[18819.518304] Valid eCryptfs headers not found in file header region
or xattr region
[18819.518311] Either the lower file is not in a valid eCryptfs
format, or the key could not be retrieved. Plaintext passthrough mode
is not enabled; returning -EIO


As of now, dm-crypt seems to be working fine, and all the encrypted
files (that i know of) are completely accessible.

However, the dmesg warning still appears intermittently (is there any
way to identify what file access is causing it?).

** More importantly, the ~4 GB of files (that I deleted during the
out-of-storage event), seems to have vanished from accessible storage:

$ df -h
...
/var/encrypted/.Private
                       74G   40G   30G  58% /var/encrypted
...


Any advice?

Best,
Nick

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-08-29  2:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-28 23:56 [dm-crypt] Drive ran out of storage, now has space missing Nick Semenkovich
2010-08-29  1:21 ` Arno Wagner
     [not found]   ` <AANLkTi=U8cTH0H0fNXAtdnw3S28nbCphQ1APciNSV17o@mail.gmail.com>
2010-08-29  2:05     ` Nick Semenkovich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox