From: CACook@quantum-sci.com
To: Chris Mason <chris.mason@oracle.com>
Cc: "linux-btrfs" <linux-btrfs@vger.kernel.org>
Subject: Re: Cannot Deinstall a Debian Package
Date: Thu, 5 May 2011 13:32:18 -0700 [thread overview]
Message-ID: <201105051332.20992.CACook@quantum-sci.com> (raw)
In-Reply-To: <1304625253-sup-3665@think>
[-- Attachment #1: Type: Text/Plain, Size: 4270 bytes --]
Here is the relevant section of strace:
---------------------------------------------------------------------------------------------
chmod("/etc/grub.d/05_debian_theme.dpkg-new", 0755) = 0
unlink("/etc/grub.d/05_debian_theme.dpkg-new") = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0
write(6, "2011-05-05 13:21:57 status unpac"..., 56) = 56
write(4, "Package: grub-pc\nStatus: install"..., 1795) = 1795
ftruncate(4, 1795) = 0
fsync(4) = 0
close(4) = 0
munmap(0x7f32f8490000, 4096) = 0
rename("/var/lib/dpkg/updates/tmp.i", "/var/lib/dpkg/updates/0011") = 0
open("/var/lib/dpkg/updates/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
fsync(4) = 0
close(4) = 0
open("/var/lib/dpkg/updates/tmp.i", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
fcntl(4, F_GETFD) = 0
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
fstat(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f32f8490000
write(4, "#padding\n#padding\n#padding\n#padd"..., 4096) = 4096
write(4, "padding\n#padding\n#padding\n#paddi"..., 512) = 512
lseek(4, 0, SEEK_SET) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2819, ...}) = 0
write(6, "2011-05-05 13:21:58 status half-"..., 63) = 63
write(4, "Package: grub-pc\nStatus: install"..., 1802) = 1802
ftruncate(4, 1802) = 0
fsync(4) = 0
close(4) = 0
munmap(0x7f32f8490000, 4096) = 0
rename("/var/lib/dpkg/updates/tmp.i", "/var/lib/dpkg/updates/0012") = 0
open("/var/lib/dpkg/updates/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 4
fsync(4) = 0
close(4) = 0
open("/var/lib/dpkg/updates/tmp.i", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
fcntl(4, F_GETFD) = 0
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
fstat(4, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f32f8490000
write(4, "#padding\n#padding\n#padding\n#padd"..., 4096) = 4096
write(4, "padding\n#padding\n#padding\n#paddi"..., 512) = 512
lseek(4, 0, SEEK_SET) = 0
stat("/var/lib/dpkg/info/grub-pc.postinst", {st_mode=S_IFREG|0755, st_size=23003, ...}) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f32f8475a70) = 29950
rt_sigaction(SIGQUIT, {SIG_IGN, [], SA_RESTORER, 0x7f32f7d281e0}, {SIG_DFL, [], SA_RESTORER, 0x7f32f7d281e0}, 8) = 0
rt_sigaction(SIGINT, {SIG_IGN, [], SA_RESTORER, 0x7f32f7d281e0}, {SIG_DFL, [], SA_RESTORER, 0x7f32f7d281e0}, 8) = 0
wait4(29950, grub-probe: error: cannot stat `/dev/root'.
^C <unfinished ...>
---------------------------------------------------------------------------------------------
/var/lib/dpkg/info/grub-pc.postinst is attached. I can't make sense of it.
BTW, I fixed the 'no space left on device' on the other machine with a btrfs balance. No one seems to know this, but even though df reports that 64% of the disk array is used, apparently one of the disks did get full somehow and was preventing even a simple mkdir. But a balance fixed it.
I thought balancing was supposed to be automatic in BTRFS?
Is defrag not automatic?
On Thursday 5 May, 2011 12:55:44 you wrote:
> Excerpts from CACook's message of 2011-05-05 15:50:02 -0400:
> >
> > I was afraid of this finger-pointing.
>
> We're not finger pointing, but we also don't maintain the script that is
> failing. I'm happy to patch up bugs in the FS (or point you to newer
> kernels that have them fixed) but at this point we don't have enough
> info to say if it is an FS problem or a debian package problem.
>
> Perhaps if you ran it under strace?
>
> Other distros don't have problems with btrfs on /, so somehow this is
> specific to debian's setup.
>
> -chris
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
[-- Attachment #2: grub-pc.postinst --]
[-- Type: application/x-shellscript, Size: 23003 bytes --]
next prev parent reply other threads:[~2011-05-05 20:32 UTC|newest]
Thread overview: 56+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-03 19:27 Cannot Deinstall a Debian Package CACook
2011-05-03 21:26 ` Fajar A. Nugraha
2011-05-03 22:20 ` CACook
2011-05-03 23:02 ` Chuck Burns
2011-05-04 0:12 ` CACook
2011-05-04 0:25 ` Chuck Burns
2011-05-04 1:20 ` Chris Samuel
2011-05-04 2:44 ` Fajar A. Nugraha
2011-05-04 9:51 ` Sander
2011-05-05 14:49 ` CACook
2011-05-05 18:09 ` CACook
2011-05-05 19:09 ` cwillu
2011-05-05 19:28 ` cwillu
2011-05-05 19:50 ` CACook
2011-05-05 19:55 ` Chris Mason
2011-05-05 20:32 ` CACook [this message]
2011-05-05 20:40 ` cwillu
2011-05-05 21:40 ` CACook
2011-05-05 21:48 ` cwillu
2011-05-05 22:33 ` CACook
2011-05-05 23:06 ` Miguel Garrido
2011-05-06 3:53 ` Helmut Hullen
2011-05-06 6:49 ` Sander
2011-05-05 20:31 ` cwillu
2011-05-05 20:57 ` CACook
2011-05-05 20:59 ` Lars Wirzenius
2011-05-05 21:48 ` CACook
2011-05-05 21:50 ` cwillu
2011-05-05 21:11 ` cwillu
2011-05-06 6:43 ` Sander
2011-05-06 6:33 ` Sander
2011-05-06 12:09 ` CACook
2011-05-06 12:20 ` Sander
2011-05-06 12:57 ` CACook
2011-05-06 13:21 ` Sander
2011-05-06 13:56 ` CACook
2011-05-06 14:17 ` Sander
2011-05-06 14:53 ` CACook
2011-05-06 14:58 ` Sander
2011-05-06 15:15 ` CACook
2011-05-06 17:09 ` CACook
2011-05-06 20:04 ` CACook
2011-05-06 20:16 ` Tomasz Torcz
2011-05-06 20:56 ` CACook
2011-05-06 21:23 ` Peter Stuge
2011-05-06 20:40 ` Sander
2011-05-06 20:51 ` Peter Stuge
2011-05-06 21:20 ` CACook
2011-05-06 21:28 ` Peter Stuge
2011-05-06 21:32 ` Hugo Mills
2011-05-06 22:17 ` David G Beausang
2011-05-07 1:51 ` C Anthony Risinger
2011-05-07 2:05 ` C Anthony Risinger
[not found] ` <201105062008.26159.CACook@quantum-sci.com>
2011-05-07 6:21 ` C Anthony Risinger
2011-05-07 7:03 ` Helmut Hullen
2011-05-06 13:30 ` Helmut Hullen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201105051332.20992.CACook@quantum-sci.com \
--to=cacook@quantum-sci.com \
--cc=chris.mason@oracle.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.