From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,b2cb2fb1a7fef27 X-Google-Attributes: gidfee84,public From: tl@ae.chalmers.se (Torbj|rn Lindgren) Subject: Re: [HELP] How to restore advfs inconsistency? Date: 1995/05/29 Message-ID: <3qckgi$o0r@nyheter.chalmers.se>#1/1 X-Deja-AN: 103491010 references: organization: Dept. of Applied Electronics, Chalmers Univ. of Technology keywords: advfs restore inconsistency newsgroups: comp.unix.osf.osf1 In article , Wolfram Klaus wrote: >Of course our backup is not too new. So we are desperately seeking for >a way two recover from the inconsistency without loosing too much >data. You don't say which version of OSF/1 you are running! Anyway, you could try /usr/field/msfsck (repeat a couple of times) and then /usr/field/vchkdir (repeat a couple of times). If you run them without parameters you get a small help-note (that isn't correct in all details!). I have appended a tech-note containing more information about /usr/field in OSF/1 3.0 at the end. The syntax given there seems to be correct one for both 2.x and 3.0, and in both cases the help given by the programs are slightly wrong (but close enough that you could probably figure it out without the tech-note). Another way is using vdump/vrestore. At least in OSF/1 2.x you sometimes had to do the vrestore to an UFS filesystem to get rid of the inconsistency's! - ADVFS Utilities in /usr/field NOTE: This is a description of the ADVFS v3.0 version of these programs. Earlier versions may not support all these features (or they may not even exist on earlier version of ADVFS). msfsck This is the ADVFS bitfile-subsystem metadata structure checker. It verifies low-level meta-structures like the BMT, storage bitmap, and tag directories. The file domain must be inactive to run msfsck. You also need at least one mounted fileset (this is because msfsck uses the .tags directory in the fileset to access the metadata). To run it, first 'cd' to the mount point of a mounted fileset. Then, run "/usr/field/msfsck -t ". vchkdir This is the ADVFS directory structure checker and fixer. It verifies that the directory structure is correct and that all directory entries reference a valid file (tag) and that all files (tags) have a directory entry. The -f flag will create symlinks in "/lost+found/" to all files (tags) that do not contain a directory entry; these are called lost files. The -f flag also remove 'dead' directory entries (ones that do not point to valid tags). The -d option will delete lost files and it will delete corrupted directories. Note, that you may need to run vchkdir several times to cleanup a fileset. The file domain must be inactive to run vchkdir. The fileset to be checked/fixed must be mounted. To run it do "/usr/field/vchkdir ". shfragbf This program displays information about a fileset's Fragment File. The Fragment File contains file fragments less than 8K. These are used to minimize wasted disk space due to internal file fragmentation (for example, ADVFS will store a 1 byte file in a 1K fragment rather in a 8K page). The Fragment File is always tag (inode) 1 in a fileset and can be accessed via the fileset's .tags directory. To run it do "/usr/field/shfragbf /.tags/1". tag2name This program will display the full pathname of a file when only the file's tag (inode) number is known. This is mainly a debugging aid when msfsck or vchkdir report errors for specific tags. To run it do "/usr/field/tag2name /.tags/". switchlog This program provides the capability to resize the transaction log or to move it to a specific volume in a domain. NOTE: To date there has been no reason to change the size of the transaction log so we do not recommend doing this. To move the transaction log to another disk do "/usr/field/switchlog ". Use showfdmn to determine the current volume that contains the log and to determine a suitible target volume. switchlog can be used on an active system. vods Displays the BMT on-disk structure. It is beyond the scope of this note to describe this utility as it requires initimate knowledge of the BMT structure to use and interpret the output of 'vods'. It is mainly a low-level debugging tool.