(no commit message)
[openafs-wiki.git] / AFSLore / ReplacingthefsckProgramonDigitalUNIXSystems.mdwn
1 In this section, you make modifications to guarantee that the appropriate fsck program runs on AFS server partitions. The fsck program provided with the operating system must never run on AFS server partitions. Because it does not recognize the structures that the File Server uses to organize volume data, it removes all of the data. To repeat:
2
3 Never run the standard fsck program on AFS server partitions. It discards AFS volumes.
4
5 On Digital UNIX systems, the files /sbin/fsck and /usr/sbin/fsck are driver programs. Rather than replacing either of them, you replace the actual binary included in the Digital UNIX distribution as /sbin/ufs\_fsck and /usr/sbin/ufs\_fsck.
6
7 1. Install the vfsck binary to the /sbin and /usr/sbin directories. The AFS CD-ROM must still be mounted at the /cdrom directory.
8
9        # cd /cdrom/alpha_dux40/root.server/etc
10
11        # cp vfsck /sbin/vfsck
12
13        # cp vfsck /usr/sbin/vfsck
14
15 1. Rename the Digital UNIX fsck binaries and create symbolic links to the vfsck program.
16
17        # cd /sbin
18
19        # mv ufs_fsck ufs_fsck.noafs
20
21        # ln -s vfsck ufs_fsck
22
23        # cd /usr/sbin
24
25        # mv ufs_fsck ufs_fsck.noafs
26
27        # ln -s vfsck ufs_fsck