Date: Wed, 9 Aug 2000 04:25:14 -0500 From: Ben Weaver <bweaver@tranquility.net> To: freebsd-questions@freebsd.org, freebsd-hackers@freebsd.org Subject: An sblock magic number is... Message-ID: <20000809042514.A46006@tranquility.net>
next in thread | raw e-mail | index | archive | help
Hey all, Here's the story... I am trying to back up a server running freebsd 2.2.8 onto another freebsd box running 4.0-RELEASE. I am attempting to achieve this by using dump over ssh. I created a user on the 2.2.8 box called backup and put it into the correct group allowing it read access to the raw drives. Here is the info on the 2.2.8 box: $ df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/sd0s1a 3976982 909105 2749719 25% / /dev/sd1s1e 3976982 3359343 299481 92% /home /dev/sd2s1f 992751 817542 95789 90% /var procfs 4 4 0 100% /proc $ ls -l /dev | grep rsd0s1a crw-r----- 1 root operator 13, 0x00020000 Feb 27 1998 rsd0s1a $ ls -l /dev | grep rsd1s1e crw-r----- 1 root operator 13, 0x0002000c Aug 5 1999 rsd1s1e $ ls -l /dev | grep rsd2s1f crw-r----- 1 root operator 13, 0x00020015 Aug 5 1999 rsd2s1f I made the backup user a member of the operator group... On the 4.0 box, I created a large partition called /hold which will hold the dump until it can be written to a tape. On the 4.0 box, I cd to the /hold partition, su to root, and execute this command: ssh backup@serv1 /sbin/dump -0a -f - /dev/sd0s1a | dd of=t1.root serv1 is the hostname for the 2.2.8 box. This dumps the root partition of serv1 into /hold/t1.root. This works like a charm, I am able to do a restore -i -f t1.root and browse the dump just fine. The problem arises when I attempt to dump the /var and /home partitions on serv1: bash-2.03# ssh backup@tranq1 /sbin/dump -0a -f - /dev/sd0s1f | dd of=t1.var backup@tranq1's password: DUMP: Date of this level 0 dump: Wed Aug 9 02:18:04 2000 DUMP: Date of last level 0 dump: the epoch DUMP: Dumping /dev/sd0s1f to standard output DUMP: bad sblock magic number DUMP: The ENTIRE dump is aborted. 0+0 records in 0+0 records out 0 bytes transferred in 6.265023 secs (0 bytes/sec) bash-2.03# ssh backup@tranq1 /sbin/dump -0a -f - /dev/sd0s1e | dd of=t1.home backup@tranq1's password: DUMP: Date of this level 0 dump: Wed Aug 9 02:18:28 2000 DUMP: Date of last level 0 dump: the epoch DUMP: Dumping /dev/sd0s1e to standard output DUMP: bad sblock magic number DUMP: The ENTIRE dump is aborted. 0+0 records in 0+0 records out 0 bytes transferred in 4.395262 secs (0 bytes/sec) There are my two attempts at /var and /home (attempting to dump the the files t1.var and t1.home) It appears that the dumps are completely failing because of a bad sblock magic number, but I don't know what that is... Is this something that can be fixed? Thanks in advance for your help and please try to reply to my email address as well as the mailing list, since I am not a member of all of the lists I have sent this to. -Ben To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000809042514.A46006>