graid5 after-reboot problem

Arne Wörner arne_woerner at yahoo.com
Fri May 4 18:25:55 UTC 2007


--- deniswork at uzvik.kiev.ua wrote:
> hello, after reboot i meet strange problem, i can't mount raid : (
> 
> [root at 82 /usr/home/denis]#  mount /dev/raid5/data /home/esc/daemon/upload/dl2
> mount: /dev/raid5/data: Operation not permitted
> 
> [root at 82 /usr/home/denis]# tail -f /var/log/messages
> May  4 20:37:48 82 kernel: GEOM_RAID5: registered shutdown event handler.
> May  4 20:37:48 82 kernel: GEOM_RAID5: data: device created
> (stripesize=131072).
> May  4 20:37:48 82 kernel: GEOM_RAID5: data: ad10(3): disk attached.
> May  4 20:37:48 82 kernel: GEOM_RAID5: data: ad8(2): disk attached.
> May  4 20:37:48 82 kernel: GEOM_RAID5: data: ad6(1): disk attached.
> May  4 20:37:48 82 kernel: GEOM_RAID5: data: ad4(0): disk attached.
> May  4 20:37:48 82 kernel: GEOM_RAID5: data: activated.
> May  4 20:37:48 82 kernel: WARNING: R/W mount of
> /usr/home/esc/daemon/upload/dl2 denied.  Filesystem is not clean - run fsck
> May  4 20:37:56 82 kernel: WARNING: R/W mount of
> /usr/home/esc/daemon/upload/dl2 denied.  Filesystem is not clean - run fsck
> May  4 20:40:04 82 last message repeated 4 times
> 
> 
> When I try fsck I get:
> [root at 82 /usr/home/denis]# fsck /dev/raid5/data
> fsck: Could not determine filesystem type
> 
> [root at 82 /usr/home/denis]# fsck_ufs /dev/raid5/data
> ** /dev/raid5/data
> BAD SUPER BLOCK: VALUES IN SUPER BLOCK DISAGREE WITH THOSE IN FIRST ALTERNATE
> ioctl (GCINFO): Inappropriate ioctl for device
> fsck_ufs: /dev/raid5/data: can't read disk label
> 
> How to mount raid?
> 
> Thanks
> 
> p.s. mounting in read-only mode pass successful  but it is not what I
> want : (
> 
That is strange...

Obviously ur file system is damaged...
I do not know, how that happened...

Did u abort the device rebuild process?

If ur box can do a "graid5 remove" without crashing u could try this:
Try to do that fsck in degraded mode (in the hope that just one disk contains
silly data)... U should start with removing disk#0... Then do the fsck... But
before u put back disk#0 u should remove disk#1 in order to avoid a further
rebuild process, which might damage the data further...

Maybe u could try sysutils/scan_ffs (from the ports) in order to repair the
disklabel? And then do a fsck again?

I mount my 3 graid5 devices every day without such problems... Even
"power-failures" (when my CPU gets too hot, the PSU shuts the box down :-] ) r
no real problem...

-Arne

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the freebsd-geom mailing list