Re: UFS2 partition with negative used space
Hello, Hi, Julien, 在 2005-06-10五的 07:09 +0200,Julien Gabel写道: Hi, Filesystem SizeUsed Avail Capacity Mounted on /dev/ad0s1e989M-46M956M-5% /var/tmp Any hints? I had to run fsck(8) on /tmp, which was in the same state as shown here, three time in the last five months. You may want to have mount -f -u -ordonly /tmp before running fsck in foreground, and then mount -u /tmp to restore its mount options. I had use 'mount -u -o ro /tmp' (don't know that the -f option may help in this case before you write it :), but since the problem appears on a desktop, i was able to switch to single user to umount/fsck/mount the corresponding file system. Thank for the -f tip anyway! -- -jpeg. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: UFS2 partition with negative used space
Hi, On Jun 9, 2005, at 11:50 PM, Xin LI wrote: Hi, Suleiman, 2005-06-09 23:35 -0400Suleiman Souhlal Hi, [...] It used to be recomputed by the kernel at mount time if the filesystem was dirty, but delphij changed it so that background fsck recomputes it instead. For some reason, in this case, this wasn't enough to synchronize the superblock's cg summary with the actual summary stored in the cgs. I'll have to investigate some more. Will setting vfs.ffs.compute_summary_at_mount=1 before mounting the volume help the situation? Unfortunately, we didn't try that (well, we actually did, but I forgot to tell Jean-Yves to make sure his volume was dirty before mounting it). -- Suleiman Souhlal | [EMAIL PROTECTED] The FreeBSD Project | [EMAIL PROTECTED] ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
UFS2 partition with negative used space
Hi, Filesystem SizeUsed Avail Capacity Mounted on /dev/ad0s1e989M-46M956M-5%/var/tmp Any hints? -- Jean-Yves Lefort [EMAIL PROTECTED] http://lefort.be.eu.org/ pgpUZfbMliJgC.pgp Description: PGP signature
Re: UFS2 partition with negative used space
(The mail to this node is rather slow, so I'm sure someone else will have replied by now.) On Fri, 10 Jun 2005, Jean-Yves Lefort wrote: Filesystem SizeUsed Avail Capacity Mounted on /dev/ad0s1e989M-46M956M-5%/var/tmp Any hints? Yep: delete some files on /var/tmp. :-) If you're asking 'how can I have negative disk space?', you might want to read newfs(8) and tunefs(8), particularly the sections dealing with the -m flag. Basically, FreeBSD reserves 8% of the disk by default for maintenance reasons: it prevents fragmentation, among other things. The super-user can override these limitations, but it's a bad idea for any length of time. (I think I'm going to tell other Windows people that it just shows how much more efficient BSD is with your disk space.) Cheers, David Adam [EMAIL PROTECTED] ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: UFS2 partition with negative used space
On Fri, 10 Jun 2005 10:32:04 +0800 (WST) David Adam [EMAIL PROTECTED] wrote: On Fri, 10 Jun 2005, Jean-Yves Lefort wrote: Filesystem SizeUsed Avail Capacity Mounted on /dev/ad0s1e989M-46M956M-5% /var/tmp Yep: delete some files on /var/tmp. :-) [blah blah blah] -- Jean-Yves Lefort [EMAIL PROTECTED] http://lefort.be.eu.org/ pgphohnrKYjHp.pgp Description: PGP signature
Re: UFS2 partition with negative used space
Filesystem SizeUsed Avail Capacity Mounted on /dev/ad0s1e989M-46M956M-5% /var/tmp /me reads again. Whoa. In that case, I have no idea. Sorry for the spam. Yep: delete some files on /var/tmp. :-) [blah blah blah] Glad to know my words are appreciated, anyway. David Adam [EMAIL PROTECTED] UCC Wheel Member ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: UFS2 partition with negative used space
On Fri, Jun 10, 2005 at 10:32:04AM +0800, David Adam wrote: (The mail to this node is rather slow, so I'm sure someone else will have replied by now.) On Fri, 10 Jun 2005, Jean-Yves Lefort wrote: Filesystem SizeUsed Avail Capacity Mounted on /dev/ad0s1e989M-46M956M-5% /var/tmp Any hints? Yep: delete some files on /var/tmp. :-) If you're asking 'how can I have negative disk space?', you might want to read newfs(8) and tunefs(8), particularly the sections dealing with the -m flag. Look closer :-) In comment to the original question: when unmounting filesystems on 5.x and 6.x which have had a lot of activity I commonly see status messages about negative number of files/blocks being used: ffs_vfsops.c: printf(%s: unmount pending error: blocks %jd files %d\n, Kris pgpU3oKfbdWYN.pgp Description: PGP signature
Re: UFS2 partition with negative used space
Hi, On Jun 9, 2005, at 10:22 PM, Jean-Yves Lefort wrote: Hi, Filesystem SizeUsed Avail Capacity Mounted on /dev/ad0s1e989M-46M956M -5%/var/tmp Any hints? During a private discussion I had with Jean-Yves, we have determined that the problem was due to the cylinder group summary being stale. It used to be recomputed by the kernel at mount time if the filesystem was dirty, but delphij changed it so that background fsck recomputes it instead. For some reason, in this case, this wasn't enough to synchronize the superblock's cg summary with the actual summary stored in the cgs. I'll have to investigate some more. In the meantime, a fsck -y is enough to fix it. Bye. -- Suleiman Souhlal | [EMAIL PROTECTED] The FreeBSD Project | [EMAIL PROTECTED] ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: UFS2 partition with negative used space
Hi, Suleiman, 2005-06-09 23:35 -0400Suleiman Souhlal Hi, [...] It used to be recomputed by the kernel at mount time if the filesystem was dirty, but delphij changed it so that background fsck recomputes it instead. For some reason, in this case, this wasn't enough to synchronize the superblock's cg summary with the actual summary stored in the cgs. I'll have to investigate some more. Will setting vfs.ffs.compute_summary_at_mount=1 before mounting the volume help the situation? Cheers, -- Xin LI delphij delphij net http://www.delphij.net/ signature.asc Description: This is a digitally signed message part
Re: UFS2 partition with negative used space
Hi, Filesystem SizeUsed Avail Capacity Mounted on /dev/ad0s1e989M-46M956M-5% /var/tmp Any hints? I had to run fsck(8) on /tmp, which was in the same state as shown here, three time in the last five months. -- -jpeg. ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: UFS2 partition with negative used space
Hi, Julien, 2005-06-10 07:09 +0200Julien Gabel Hi, Filesystem SizeUsed Avail Capacity Mounted on /dev/ad0s1e989M-46M956M-5% /var/tmp Any hints? I had to run fsck(8) on /tmp, which was in the same state as shown here, three time in the last five months. You may want to have mount -f -u -ordonly /tmp before running fsck in foreground, and then mount -u /tmp to restore its mount options. Cheers, -- Xin LI delphij delphij net http://www.delphij.net/ signature.asc Description: This is a digitally signed message part