Cover V03, I04
Article
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7

jul94.tar


Figure 4: Correcting a possible file size error

# fsck

/dev/dsk/0s1
File System:  Volume:

** Phase 1 - Check Blocks and Sizes
POSSIBLE FILE SIZE ERROR I=1822

nblks=10039, filesize=5957

** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Free List
2867 files 79452 blocks 49568 free
#

# cd /etc
# cat checklist
/dev/dsk/0s1
#

# ncheck -i 1822
/dev/dsk/0s1:
1822    /usr/acct/unify/file.db
1822    /usr/acct/unify/file.dbr
#

# cd /usr/acct/unify
# ls -li fil*
1822 -rw-rw-rw-   2 ncesd    usr      10236984 Aug  9 14:10 file.db
1822 -rw-rw-rw-   2 ncesd    usr      10236984 Aug  9 14:10 file.dbr
#

# rm file.dbr
# cp file.db bac_file.db
# ls -li *file.db
1884 -rw-rw-rw-   1 root     rootgrp  10236984 Aug 30 14:48 bac_file.db
1822 -rw-rw-rw-   1 ncesd    usr      10236984 Aug  9 14:10 file.db
#

# mv bac_file.db file.db
# ln file.db file.dbr
# chgrp usr file.db*
# chown ncesd file.db*
#

# ls -li file.db*
1884 -rw-rw-rw-   2 ncesd    usr      10236984 Aug 30 14:48 file.db
1884 -rw-rw-rw-   2 ncesd    usr      10236984 Aug 30 14:48 file.dbr
#

# fsck

/dev/dsk/0s1
File System:  Volume:

** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Free List
2867 files 87616 blocks 41404 free
#