Date: Thu, 6 Mar 2003 17:21:00 +0300 (MSK)
        From: Maxim Konovalov <[EMAIL PROTECTED]>
        To: [EMAIL PROTECTED]
        Cc: [EMAIL PROTECTED]
        Subject: 4.8-RC / 5-CURRENT UFS1 interoperability problem

        Hello,

        In short, there is a problem using the same UFS1 filesystem under
        -stable and -current. Please look at an attached typescript for
        details.

        I noticed a wrong superblock information either:

        [EMAIL PROTECTED] ~]$ df /spare
        Filesystem  1K-blocks Used    Avail Capacity  Mounted on
        /dev/ad0s2a  22520288 -125476 20844144    -1%    /spare

        Is it known bug?

        -- 
        Maxim Konovalov, [EMAIL PROTECTED], [EMAIL PROTECTED]

Executive summary: you need to run `fsck -f -p' whenever you switch
to or from a 4.X (stable) and a 5.X (current) kernel. The reason
is that the UFS1 superblock summary information is maintained in
different parts of the superblock on these two systems. Neither
system maintains the summary information used by the other. There
is no risk of trashing your filesystem if you fail to run the fsck,
but the information reported by `df' will be wrong until you run
the fsck.

        Kirk McKusick

=-=-=-=-=-=-=

golf# uname -a
FreeBSD golf.macomnet.net 4.8-PRERELEASE FreeBSD 4.8-PRERELEASE #19: Thu Feb 27 
13:33:49 GMT 2003     [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386
golf# fsck /dev/ad0s2a
** /dev/ad0s2a
** Last Mounted on /mnt
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
3 files, 3 used, 5630069 free (21 frags, 703756 blocks, 0.0% fragmentation)
golf# mount /dev/ad0s2a /mnt
golf# mount | grep mnt
/dev/ad0s2a on /mnt (ufs, local, soft-updates)
golf# exit
exit

- clean reboot

golf# uname -a
FreeBSD golf.macomnet.net 5.0-CURRENT FreeBSD 5.0-CURRENT #6: Wed Feb 19 10:01:22 MSK 
2003     [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GOLF5  i386
golf# fsck /dev/ad0s2a
** /dev/ad0s2a
** Last Mounted on /mnt
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
SUMMARY INFORMATION BAD
SALVAGE? [yn] y

SUMMARY BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE? [yn] y

94155 files, 220230 used, 5409842 free (15210 frags, 674329 blocks, 0.3% fragmentation)

***** FILE SYSTEM WAS MODIFIED *****
golf# mount /dev/ad0s2a /mnt
golf# mount | grep mnt
/dev/ad0s2a on /mnt (ufs, local, nodev, noexec, nosuid, soft-updates)
golf# exit

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to