Zoltan Frombach
2005-Apr-29 03:23 UTC
kernel: swap_pager: indefinite wait buffer - on 5.3-RELEASE-p5
Hello All, I have a pretty stable FreeBSD 5.3-p5 production server which worked just fine - until today. I host over 100+ web sites on it (Apache + PHP4 + MySQL), email, ftp, etc. There was a time when it was up for over 6 months without a reboot. So it is stable. But today I had a strange problem with this server. I could ping it, but nothing else worked. I had to reboot it by plugging the power. After it came back, this is what I've found in the log file (and nothing else). Apr 29 02:10:14 www kernel: swap_pager: indefinite wait buffer: device: ad0s1a, blkno: 328636, size: 8192 Apr 29 02:10:24 www kernel: swap_pager: indefinite wait buffer: device: ad0s1e, blkno: 329842, size: 4096 Apr 29 02:10:24 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 330511, size: 8192 Apr 29 02:10:24 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 331470, size: 8192 Apr 29 02:10:24 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 332030, size: 4096 Apr 29 02:10:49 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 332257, size: 8192 Apr 29 02:10:49 www kernel: swap_pager: indefinite wait buffer: device: ad0s1a, blkno: 332309, size: 4096 Apr 29 02:11:14 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 332252, size: 8192 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1a, blkno: 332301, size: 4096 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 332260, size: 4096 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1a, blkno: 332307, size: 8192 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 332229, size: 8192 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 328470, size: 16384 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 328967, size: 16384 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 329231, size: 4096 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 329479, size: 16384 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 329673, size: 16384 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 332224, size: 4096 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 329234, size: 16384 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 316002, size: 4096 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 332185, size: 16384 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 331763, size: 8192 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 318855, size: 4096 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1a, blkno: 319335, size: 4096 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 319135, size: 4096 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 319196, size: 16384 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 319146, size: 16384 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 319243, size: 8192 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 319191, size: 8192 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 319235, size: 4096 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 319183, size: 4096 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 319232, size: 12288 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 319276, size: 8192 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 319189, size: 8192 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 319327, size: 4096 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 319186, size: 12288 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 319206, size: 8192 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 319256, size: 4096 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 301096, size: 4096 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 301145, size: 8192 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 301468, size: 8192 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 301887, size: 4096 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 302503, size: 8192 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 302557, size: 4096 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 302509, size: 4096 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 302554, size: 8192 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1a, blkno: 302635, size: 8192 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 153651, size: 8192 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 163264, size: 8192 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1e, blkno: 302910, size: 8192 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 154346, size: 4096 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 305352, size: 8192 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 305806, size: 8192 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 306642, size: 8192 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 307015, size: 8192 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 305471, size: 4096 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1a, blkno: 305759, size: 4096 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 307088, size: 4096 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 307046, size: 4096 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 307085, size: 12288 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 307045, size: 4096 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 307092, size: 8192 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 293203, size: 4096 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 307060, size: 8192 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1a, blkno: 320047, size: 8192 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 320630, size: 8192 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 320861, size: 8192 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 320842, size: 4096 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 320863, size: 4096 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 320902, size: 8192 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 231845, size: 4096 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 267922, size: 4096 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 232017, size: 4096 Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 231686, size: 8192 Apr 29 02:34:18 www kernel: swap_pager: indefinite wait buffer: device: ad0s1f, blkno: 267959, size: 4096 It works just fine since the reboot. Not even fsck was needed (file system didn't get dirty by plugging the power???)... I've never seen this error message before. This could be an indication of what? A dying IDE hard drive??? I happen to have an identical hard drive around here, unused. If I hook it up as a slave (IDE) drive, is there a way I can mirror the dying drive to the spare one (with all partitions, etc, intact)? Any help/comments would be appreciated. Please CC me, as I am not a subscriber of this list. Thanks!!! Zoltan
Steven Enderle
2005-Apr-29 03:33 UTC
kernel: swap_pager: indefinite wait buffer - on 5.3-RELEASE-p5
Try to mirror the disk with dd (if=/dev/ad0 of=/dev/ad1 bs=1m) You should really think about getting a RAID controller, i can recommend you a 2 channel 3ware controller (less than 100$) Kind regards Steven -- ++ message delivered by gizm0.org <http://gizm0.org/> ++ free webmail - imap, pop3, ssl secured Zoltan Frombach wrote:> Hello All, > > I have a pretty stable FreeBSD 5.3-p5 production server which worked > just fine - until today. I host over 100+ web sites on it (Apache + > PHP4 + MySQL), email, ftp, etc. There was a time when it was up for > over 6 months without a reboot. So it is stable. But today I had a > strange problem with this server. I could ping it, but nothing else > worked. I had to reboot it by plugging the power. After it came back, > this is what I've found in the log file (and nothing else). > > Apr 29 02:10:14 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1a, blkno: 328636, size: 8192 > Apr 29 02:10:24 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1e, blkno: 329842, size: 4096 > Apr 29 02:10:24 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 330511, size: 8192 > Apr 29 02:10:24 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 331470, size: 8192 > Apr 29 02:10:24 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 332030, size: 4096 > Apr 29 02:10:49 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 332257, size: 8192 > Apr 29 02:10:49 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1a, blkno: 332309, size: 4096 > Apr 29 02:11:14 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 332252, size: 8192 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1a, blkno: 332301, size: 4096 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 332260, size: 4096 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1a, blkno: 332307, size: 8192 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 332229, size: 8192 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 328470, size: 16384 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 328967, size: 16384 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 329231, size: 4096 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 329479, size: 16384 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 329673, size: 16384 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 332224, size: 4096 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 329234, size: 16384 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 316002, size: 4096 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 332185, size: 16384 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 331763, size: 8192 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 318855, size: 4096 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1a, blkno: 319335, size: 4096 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 319135, size: 4096 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 319196, size: 16384 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 319146, size: 16384 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 319243, size: 8192 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 319191, size: 8192 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 319235, size: 4096 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 319183, size: 4096 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 319232, size: 12288 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 319276, size: 8192 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 319189, size: 8192 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 319327, size: 4096 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 319186, size: 12288 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 319206, size: 8192 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 319256, size: 4096 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 301096, size: 4096 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 301145, size: 8192 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 301468, size: 8192 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 301887, size: 4096 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 302503, size: 8192 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 302557, size: 4096 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 302509, size: 4096 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 302554, size: 8192 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1a, blkno: 302635, size: 8192 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 153651, size: 8192 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 163264, size: 8192 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1e, blkno: 302910, size: 8192 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 154346, size: 4096 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 305352, size: 8192 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 305806, size: 8192 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 306642, size: 8192 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 307015, size: 8192 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 305471, size: 4096 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1a, blkno: 305759, size: 4096 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 307088, size: 4096 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 307046, size: 4096 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 307085, size: 12288 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 307045, size: 4096 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 307092, size: 8192 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 293203, size: 4096 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 307060, size: 8192 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1a, blkno: 320047, size: 8192 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 320630, size: 8192 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 320861, size: 8192 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 320842, size: 4096 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 320863, size: 4096 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 320902, size: 8192 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 231845, size: 4096 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 267922, size: 4096 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 232017, size: 4096 > Apr 29 02:33:35 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 231686, size: 8192 > Apr 29 02:34:18 www kernel: swap_pager: indefinite wait buffer: > device: ad0s1f, blkno: 267959, size: 4096 > > It works just fine since the reboot. Not even fsck was needed (file > system didn't get dirty by plugging the power???)... > > I've never seen this error message before. This could be an indication > of what? A dying IDE hard drive??? > > I happen to have an identical hard drive around here, unused. If I > hook it up as a slave (IDE) drive, is there a way I can mirror the > dying drive to the spare one (with all partitions, etc, intact)? > > Any help/comments would be appreciated. Please CC me, as I am not a > subscriber of this list. Thanks!!! > > Zoltan _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
Oliver Fromme
2005-Apr-29 05:13 UTC
kernel: swap_pager: indefinite wait buffer - on 5.3-RELEASE-p5
Zoltan Frombach <tssajo@hotmail.com> wrote: > Apr 29 02:10:14 www kernel: swap_pager: indefinite wait buffer: device: > ad0s1a, blkno: 328636, size: 8192 > Apr 29 02:10:24 www kernel: swap_pager: indefinite wait buffer: device: > ad0s1e, blkno: 329842, size: 4096 > [...] The error message indicates that there was an I/O error accessing the swap area on your disk. Usually that's an indication for a hardware failure, e.g. a dying disk. > I happen to have an identical hard drive around here, unused. If I hook it > up as a slave (IDE) drive, is there a way I can mirror the dying drive to > the spare one (with all partitions, etc, intact)? If they're really identical (i.e. the same size and same geometry), then you can use dd(1) for duplication, like this: # dd if=/dev/ad0 of=/dev/ad1 bs=64k conv=noerror,sync The "noerror,sync" part is important so the dd command will not stop when it hits any bad spots on the source drive and instead will fill the blocks with zeroes on the destination drive. Since it's only the swap partition, you shouldn't lose any data. However, one disadvantage of dd is that it copies the drive on block level, which means that it will also copy empty blocks which aren't used at all. Neither does it make sense to copy the swap partition. If the filesystems on that drive don't contain much data, it might be mor efficient to copy the data on filesystem level. To do that, copy just the boot sector and disklabel (using dd(1) to copy the first 64k or something should be sufficient), then newfs the filesystems, mount them and copy the contents with an appropriate tool. I recommend "cpdup" from the port collection, because it's fast and easy to use, but cpio should work as well (and it's in the base of pretty much every UNIX system). Performing newfs + filesystem copy also has the advantage that you're starting with fresh, unfragmented filesystems, and it gives you the opportunity to finetune the parameters if necessary, such as the inode density (newfs -i). > Any help/comments would be appreciated. Please CC me, as I am not a > subscriber of this list. Thanks!!! In that case you should set the "Reply-To" header in your mail appropriately. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 M?nchen Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "In My Egoistical Opinion, most people's C programs should be indented six feet downward and covered with dirt." -- Blair P. Houghton
Zoltan Frombach
2005-Apr-29 06:36 UTC
kernel: swap_pager: indefinite wait buffer - on 5.3-RELEASE-p5
Steve, Thank you for your quick response!> Try to mirror the disk with dd (if=/dev/ad0 of=/dev/ad1 bs=1m)I assume I have to do this in single user mode. Right?> You should really think about getting a RAID controller, i can recommend > you a 2 channel 3ware controller (less than 100$)Would you please email me the product name and model number? Thanks!! Zoltan
Mike Tancsa
2005-Apr-29 09:22 UTC
kernel: swap_pager: indefinite wait buffer - on 5.3-RELEASE-p5
At 06:23 AM 29/04/2005, Zoltan Frombach wrote:>Apr 29 02:10:24 www kernel: swap_pager: indefinite wait buffer: device: >ad0s1e, blkno: 329842, size: 4096As others have said, it looks to be a hard drive about to die. You can get more info with /usr/ports/sysutils/smartmontools/. It can give some simple diagnostics that might confirm this for you. ---Mike
Zoltan Frombach
2005-Apr-29 14:02 UTC
kernel: swap_pager: indefinite wait buffer - on 5.3-RELEASE-p5
Mike, Thank you so much for the information you have provided. I installed smartmontools from ports, what a great tool! However, I see 0 (zero) Reallocated_Sector_Ct ... So the hard drive seems to be okay? I attach the full output below. Is there someone knowledgeable about HD Smart information, who can possible tell me if this drive looks like if it is failing? # smartctl -a ad0 smartctl version 5.32 Copyright (C) 2002-4 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF INFORMATION SECTION ==Device Model: Maxtor 6Y080L0 Serial Number: Y3H1TJKE Firmware Version: YAR41VW0 Device is: In smartctl database [for details use: -P show] ATA Version is: 7 ATA Standard is: ATA/ATAPI-7 T13 1532D revision 0 Local Time is: Fri Apr 29 13:52:56 2005 PDT SMART support is: Available - device has SMART capability. SMART support is: Enabled The SMART RETURN STATUS return value (smartmontools -H option/Directive) can not be retrieved with this version of ATAng, please do not rely on this value === START OF READ SMART DATA SECTION ==SMART overall-health self-assessment test result: PASSED General SMART Values: Offline data collection status: (0x80) Offline data collection activity was never started. Auto Offline Data Collection: Enabled. Self-test execution status: ( 0) The previous self-test routine completed without error or no self-test has ever been run. Total time to complete Offline data collection: ( 242) seconds. Offline data collection capabilities: (0x5b) SMART execute Offline immediate. Auto Offline data collection on/off support. Suspend Offline collection upon new command. Offline surface scan supported. Self-test supported. No Conveyance Self-test supported. Selective Self-test supported. SMART capabilities: (0x0003) Saves SMART data before entering power-saving mode. Supports SMART auto save timer. Error logging capability: (0x01) Error logging supported. No General Purpose Logging support. Short self-test routine recommended polling time: ( 2) minutes. Extended self-test routine recommended polling time: ( 36) minutes. SMART Attributes Data Structure revision number: 16 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 3 Spin_Up_Time 0x0027 203 203 063 Pre-fail s - 12682 4 Start_Stop_Count 0x0032 253 253 000 Old_age ys - 61 5 Reallocated_Sector_Ct 0x0033 253 253 063 Pre-fail s - 0 6 Read_Channel_Margin 0x0001 253 253 100 Pre-fail ine - 0 7 Seek_Error_Rate 0x000a 253 252 000 Old_age ys - 0 8 Seek_Time_Performance 0x0027 253 248 187 Pre-fail s - 36017 9 Power_On_Minutes 0x0032 219 219 000 Old_age ys - 1023h+58m 10 Spin_Retry_Count 0x002b 253 252 157 Pre-fail s - 0 11 Calibration_Retry_Count 0x002b 253 252 223 Pre-fail s - 0 12 Power_Cycle_Count 0x0032 253 253 000 Old_age ys - 177 192 Power-Off_Retract_Count 0x0032 253 253 000 Old_age ys - 0 193 Load_Cycle_Count 0x0032 253 253 000 Old_age ys - 0 194 Temperature_Celsius 0x0032 253 253 000 Old_age ys - 31 195 Hardware_ECC_Recovered 0x000a 253 252 000 Old_age ys - 2976 196 Reallocated_Event_Count 0x0008 253 253 000 Old_age line - 0 197 Current_Pending_Sector 0x0008 253 253 000 Old_age line - 0 198 Offline_Uncorrectable 0x0008 253 253 000 Old_age line - 0 199 UDMA_CRC_Error_Count 0x0008 199 199 000 Old_age line - 0 200 Multi_Zone_Error_Rate 0x000a 253 252 000 Old_age ys - 0 201 Soft_Read_Error_Rate 0x000a 253 252 000 Old_age ys - 12 202 TA_Increase_Count 0x000a 253 252 000 Old_age ys - 0 203 Run_Out_Cancel 0x000b 253 252 180 Pre-fail s - 1 204 Shock_Count_Write_Opern 0x000a 253 252 000 Old_age ys - 0 205 Shock_Rate_Write_Opern 0x000a 253 252 000 Old_age ys - 0 207 Spin_High_Current 0x002a 253 252 000 Old_age ys - 0 208 Spin_Buzz 0x002a 253 252 000 Old_age ys - 0 209 Offline_Seek_Performnce 0x0024 200 200 000 Old_age line - 0 99 Unknown_Attribute 0x0004 253 253 000 Old_age line - 0 100 Unknown_Attribute 0x0004 253 253 000 Old_age line - 0 101 Unknown_Attribute 0x0004 253 253 000 Old_age line - 0 SMART Error Log Version: 1 ATA Error Count: 1 CR = Command Register [HEX] FR = Features Register [HEX] SC = Sector Count Register [HEX] SN = Sector Number Register [HEX] CL = Cylinder Low Register [HEX] CH = Cylinder High Register [HEX] DH = Device/Head Register [HEX] DC = Device Command Register [HEX] ER = Error register [HEX] ST = Status register [HEX] Powered_Up_Time is measured from power on, and printed as DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes, SS=sec, and sss=millisec. It "wraps" after 49.710 days. Error 1 occurred at disk power-on lifetime: 0 hours (0 days + 0 hours) When the command that caused the error occurred, the device was in an unknown state. After command completion occurred, registers were: ER ST SC SN CL CH DH -- -- -- -- -- -- -- 04 51 50 40 97 03 10 Error: ABRT Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- ef fe 00 00 00 00 10 00 00:05:42.512 SET FEATURES [Reserved for CFA] c3 3d 00 00 00 00 10 00 00:05:42.464 [VENDOR SPECIFIC] c3 e4 00 00 00 00 10 00 00:05:42.432 [VENDOR SPECIFIC] c3 3d 00 00 00 00 10 00 00:05:42.432 [VENDOR SPECIFIC] 70 00 00 00 5e 20 10 00 00:05:42.368 SEEK [OBS-7] SMART Self-test log structure revision number 1 No self-tests have been logged. [To run self-tests, use: smartctl -t] SMART Selective self-test log data structure revision number 1 SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS 1 0 0 Not_testing 2 0 0 Not_testing 3 0 0 Not_testing 4 0 0 Not_testing 5 0 0 Not_testing Selective self-test flags (0x0): After scanning selected spans, do NOT read-scan remainder of disk. If Selective self-test is pending on power-up, resume after 0 minute delay. Thank you for looking at it!! Please response if you have any comments about the above output. Thanks a lot!! Zoltan ----- Original Message -----> At 06:23 AM 29/04/2005, Zoltan Frombach wrote: >>Apr 29 02:10:24 www kernel: swap_pager: indefinite wait buffer: device: >>ad0s1e, blkno: 329842, size: 4096 > > As others have said, it looks to be a hard drive about to die. You can > get more info with /usr/ports/sysutils/smartmontools/. It can give some > simple diagnostics that might confirm this for you. > > ---Mike