Path: utzoo!utgpu!water!watmath!clyde!rutgers!cmcl2!brl-adm!umd5!ames!oliveb!felix!zemon From: gordon@prls.UUCP (Gordon Vickers) Newsgroups: comp.unix.ultrix Subject: problem with dump/restore across filesystems Message-ID: <22152@felix.UUCP> Date: 19 Feb 88 22:06:52 GMT Sender: zemon@felix.UUCP Reply-To: gordon@prls.UUCP (Gordon Vickers) Lines: 92 Approved: zemon@felix.UUCP Reply-Path: To aid in the speady customization of Ultrix2.0, prior to doing the installation, I decided to free up an RA80 for awhile and just backup my system disk by copying one filesystem to another. For some reason, my backup filesystems are about 10Mbytes larger than the originals. Prior to doing the backup, I used 'newfs' and then 'df' to verify that the new filesystem was empty (except for an empty lost+found directory). Seems that the backup filesystems contain partial referances to files that have been deleted. Anyone know how I can circumvent this problem without using tape and why I am having the problem ? The backups were made using the all familiar, straight from the book (restore(1) example) : dump 0f - /usr | ( cd /v12/usr; restore xf -) I am running Ultrix 1.2 on an VAX 11/750 . I was the only user and in multiuser mode and operating as root. Here is what I ended up with ( df(1) ): Filesystem total kbytes kbytes percent inodes inodes percent node kbytes used free used used free used Mounted on /dev/ra0g 40095 27210 8875 75% 3756 2900 56% /a /dev/ra1g 40156 36424 0 101% 3755 1621 70% /A /dev/ra0d 60335 39165 15136 72% 4854 2890 63% /usr /dev/ra1h 51860 49804 0 107% 4854 1290 79% /v12/usr using du(1) : |--- /usr |--- /v12/usr v V 8 ./lost+found 8 1 ./adm/crash 4 181 ./adm/old 212 2 ./adm/bin/data 8 29 ./adm/bin 44 28 ./adm/lib 32 580 ./adm 644 2653 ./bin 2832 29 ./dict/papers 40 ls -al /usr/adm/crash : total 2 drwxrwxr-x 2 root 512 Dec 9 14:34 . drwxrwxr-x 6 root 1024 Dec 11 15:26 .. ls -al /v12/usr/adm/crash : total 8 drwxrwxr-x 2 root 512 Dec 9 14:34 . drwxrwxr-x 6 root 1024 Dec 11 15:26 .. Similar findings found for each of the other directories. Using the public domain utility xod to inspect the directory file proper shows that the directories restored contains entries to deleted files. Dump: /usr/adm Offset: 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 00000000: c0 02 00 00 0c 00 01 00 2e 00 00 00 02 00 00 00 | ................ | 00000010: 0c 00 02 00 2e 2e 00 00 80 05 00 00 10 00 05 00 | ................ | 00000020: 63 72 61 73 68 00 6f 75 c1 02 00 00 10 00 04 00 | crash.ou........ | 00000030: 61 63 63 74 00 00 6f 75 c2 02 00 00 10 00 06 00 | acct..ou........ | 00000040: 61 63 75 6c 6f 67 00 75 c3 02 00 00 10 00 07 00 | aculog.u........ | 00000050: 6c 61 73 74 6c 6f 67 00 c4 02 00 00 14 00 08 00 | lastlog......... | 00000060: 6d 65 73 73 61 67 65 73 00 64 00 00 c5 02 00 00 | messages.d...... | 00000070: 10 00 07 00 6c 70 32 61 63 63 74 00 c6 02 00 00 | ....lp2acct..... | 00000080: 10 00 06 00 6d 73 67 62 75 66 00 00 c7 02 00 00 | ....msgbuf...... | Dump: /v12/usr/adm Offset: 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 00000000: 80 01 00 00 0c 00 01 00 2e 00 00 00 02 00 00 00 | ................ | 00000010: 0c 00 02 00 2e 2e 00 00 00 03 00 00 10 00 05 00 | ................ | 00000020: 63 72 61 73 68 00 6f 75 80 04 00 00 0c 00 03 00 | crash.ou........ | 00000030: 6f 6c 64 00 00 06 00 00 0c 00 03 00 62 69 6e 00 | old.........bin. | 00000040: 00 09 00 00 0c 00 03 00 6c 69 62 00 8a 01 00 00 | ........lib..... | 00000050: 10 00 04 00 61 63 63 74 00 66 2e 73 8b 01 00 00 | ....acct.f.s.... | 00000060: 10 00 06 00 61 63 75 6c 6f 67 00 73 8c 01 00 00 | ....aculog.s.... | 00000070: 10 00 07 00 6c 61 73 74 6c 6f 67 00 8d 01 00 00 | ....lastlog..... | 00000080: 14 00 08 00 6d 65 73 73 61 67 65 73 00 64 61 74 | ....messages.dat | What's going on here ? I haven't noticed this problem when using tape. Thank you very much for any assistance. Gordon P. Vickers, (408) 991-5370, Signetics Corp. PO Box 3409 M/S 69 Sunnyvale, California, USA 94086 {pyramid, philabs}!prls!gordon "Of all the things I haven't got, I like gold the best" - Elmer Fudd in _The_Wacky_Wabbit_