fsck sig 11 (cannot alloc 4216257920 bytes for inoinfo)

From: Ion-Mihai Tetcu <itetcu_at_apropo.ro>
Date: Mon, 8 Dec 2003 18:16:11 +0200
I've sent the mesage on question with no reply so I'm trying my luck
here. I am able to reproduce both dump/restore and the fsck errors, even
after a fdisk-ing, labeling and newfs-ing (from the sysinstall).

The nice thing is that everithing seems to be ok (e.g. on new system
install it comes up and run OK) untill the first unclean shutdown, when
fsck complaines about the UNEXPECTED SOFT UPDATE INCONSISTENCY.



 Hi,


 FreeBSD it.buh.cameradicommercio.ro 5.1-RELEASE-p10 FreeBSD
 5.1-RELEASE-p10 #0: Wed Nov 19 00:01:27 EET 2003    
 root_at_it.buh.cameradicommercio.ro:/usr/obj/usr/src/sys/IT1  i386


 I was trying to dump/restore my data from my 40G HDD (ad3) on a bigger
 120G HDD (ad0).

 I've booted from the CD, used sysinstall to devide the disk, installed
 the minimal distribution, boot up on the new install. Rebooted with the
 old system (multiuser but in the console and with no activity beside
 dump/restore, with all /usr/local/etc/rc.d stoped), mounted each new
 slice and rm -rf * the content.

 dump/restore ad3s2a to ad0s1a (/) 
 dump/restore ad3s2d to ad0s3d (/tmp)
 dump/restore ad3s2e to ad0s1e (/var)

 Untill here everithing OK.

 # mount /dev/ad0s3f /mnt
 # mkdir /mnt/home
 # mount /dev/ad0s3g /mnt/home
 # cd /mnt
 # dump 0aLf - / | restore xf -

 Sometime after 1/3 got dumped I've fpund myself in the debbuger with:
 /mnt: bad dirino 753722
 panic: ufs_dirbad at offset 0: mangled entry

 I've hit the wrong key so I do not have a core, but I'm confident I can
 reproduce if needed.

 Rebooted. After fsck-ing the current disk with good results on the new
 disk I get the errors, with fsck saying (complete messages at the end):
 for ad0s3f
  cannot alloc xxxxxxxxxx bytes for inoinfo 
 and ending with 
  fsck_4.2bsd: bad inode number 376832 to nextinode

 for ad0s3g
  cannot alloc 4216257920 bytes for inoinfo
  UNEXPECTED SOFT UPDATE INCONSISTENCY
  UNKNOWN FILE TYPE I=47104
  UNEXPECTED SOFT UPDATE INCONSISTENCY
  fsck: /dev/ad0s3g: Segmentation fault


 ******* Working on device /dev/ad0 *******
 parameters extracted from in-core disklabel are:
 cylinders=232578 heads=16 sectors/track=63 (1008 blks/cyl)

 Figures below won't work with BIOS for partitions not in cyl 1
 parameters to be used for BIOS calculations are:
 cylinders=232578 heads=16 sectors/track=63 (1008 blks/cyl)

 Media sector size is 512
 Warning: BIOS sector numbering starts with sector 1
 Information from DOS bootblock is:
 The data for partition 1 is:
 sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
     start 63, size 514017 (250 Meg), flag 0
 	beg: cyl 0/ head 1/ sector 1;
 	end: cyl 31/ head 254/ sector 63
 The data for partition 2 is:
 sysid 6 (0x06),(Primary 'big' DOS (>= 32MB))
     start 514080, size 41929650 (20473 Meg), flag 0
 	beg: cyl 32/ head 0/ sector 1;
 	end: cyl 1023/ head 254/ sector 63
 The data for partition 3 is:
 sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
     start 42443730, size 191992815 (93746 Meg), flag 0
 	beg: cyl 1023/ head 255/ sector 63;
 	end: cyl 1023/ head 254/ sector 63
 The data for partition 4 is:
 <UNUSED>

it# bsdlabel -A /dev/ad0s2c
# /dev/ad0s3c:
 type: ESDI
 disk: ad0s3
 label: 
 flags:
 bytes/sector: 512
 sectors/track: 63
 tracks/cylinder: 255
 sectors/cylinder: 16065
 cylinders: 14593
 sectors/unit: 234439535
 rpm: 3600
 interleave: 1
 trackskew: 0
 cylinderskew: 0
 headswitch: 0		# milliseconds
 track-to-track seek: 0	# milliseconds
 drivedata: 0 

 8 partitions:
 #        size   offset    fstype   [fsize bsize bps/cpg]
   b:  2053552 42443730      swap                    
   c: 191992815 42443730    unused        0     0         # "raw" part, don't edit
   d:   524288 44497282    4.2BSD     2048 16384 32776 
   e:   524288 45021570    4.2BSD     2048 16384 32776 
   f: 52428800 45545858    4.2BSD     2048 16384 28552 
   g: 136461887 97974658    4.2BSD     2048 16384 28552 
 bsdlabel: partition c doesn't start at 0!
 bsdlabel: partition c doesn't cover the whole unit!
 bsdlabel: An incorrect partition c may cause problems for standard system utilities


 it# fsck -n ad0s3g
 ** /dev/ad0s3g (NO WRITE)
 ** Last Mounted on /mnt/home
 ** Phase 1 - Check Blocks and Sizes
 cannot alloc 4216257920 bytes for inoinfo

 UNEXPECTED SOFT UPDATE INCONSISTENCY
 UNKNOWN FILE TYPE I=47104
 UNEXPECTED SOFT UPDATE INCONSISTENCY
 fsck: /dev/ad0s3g: Segmentation fault

 
 it# fsck -n ad0s3f
** /dev/ad0s3f (NO WRITE)
 ** Last Mounted on /mnt
 ** Phase 1 - Check Blocks and Sizes
 cannot alloc 688847944 bytes for inoinfo

 UNEXPECTED SOFT UPDATE INCONSISTENCY
 UNKNOWN FILE TYPE I=353280
 UNEXPECTED SOFT UPDATE INCONSISTENCY

 CLEAR? no

 UNKNOWN FILE TYPE I=353281
 UNEXPECTED SOFT UPDATE INCONSISTENCY

 CLEAR? no

 [..]
 
 UNKNOWN FILE TYPE I=376831
 UNEXPECTED SOFT UPDATE INCONSISTENCY

 CLEAR? no

 fsck_4.2bsd: bad inode number 376832 to nextinode


 Any help will be greatly appreciated.


-- 
IOnut
Unregistered ;) FreeBSD user


-- 
IOnut
Unregistered ;) FreeBSD user
Received on Mon Dec 08 2003 - 07:15:54 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:32 UTC