Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Thread Tools Display Modes
  #1   (View Single Post)  
Old 26th May 2010
morfran morfran is offline
New User
Join Date: May 2010
Posts: 1
Exclamation Rescuing broken RAID5 gvinum volume

I'm hoping that someone can help with this problem. I have a RAID5 gvinum volume that was working and then encountered a few problems which I responded to by running fsck. Unfortunately, that was just the beginning of my troubles.

The system is currently running FreeBSD 7.3 release, but was running FreeBSD 8.0 release (that may in fact be part of my problems).

Here's the details (everything looks fine and I've rebuilt the parity on the drives):

gvinum -> l
3 drives:
D d2                    State: up	/dev/ad6s1a	A: 0/152626 MB (0%)
D d1                    State: up	/dev/ad4s1a	A: 0/152626 MB (0%)
D d0                    State: up	/dev/ad2s1a	A: 0/152626 MB (0%)

1 volume:
V music                 State: up	Plexes:       1	Size:        298 GB

1 plex:
P music.p0           R5 State: up	Subdisks:     3	Size:        298 GB

3 subdisks:
S music.p0.s0           State: up	D: d0           Size:        149 GB
S music.p0.s1           State: up	D: d1           Size:        149 GB
S music.p0.s2           State: up	D: d2           Size:        149 GB
However, if I try to mount it:

# mount /dev/gvinum/music /music
mount: /dev/gvinum/music : Invalid argument
There's definitely something there:

# ls -ltr /dev/gvinum/music 
crw-r-----  1 root  operator    0,  88 May 24 11:45 /dev/gvinum/music
But this doesn't work well:

# fsck -n -t ufs /dev/gvinum/music
** /dev/gvinum/music (NO WRITE)
Cannot find file system superblock
ioctl (GCINFO): Inappropriate ioctl for device
fsck_ufs: /dev/gvinum/music: can't read disk label
And this looks bad:

# file - < /dev/gvinum/music
/dev/stdin: data
Does anyone have any advice? Is it possible to create a new volume and attach the existing plex to that without losing data? Or a create a new plex and add the existing subdisks, and then add the new plex to a new volume?

I'd appreciate any help.



Last edited by vermaden; 26th May 2010 at 07:52 AM. Reason: Use [ code ] tags.
Reply With Quote
  #2   (View Single Post)  
Old 26th May 2010
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
Join Date: Apr 2008
Location: Dutchman living in the UK
Posts: 2,199

I assume your data is important to you, otherwise you would not RAID-5 it. I would recommend first making a complete backup of all three disks using dd_rescue (sysutils/dd_rescue), just in case you make things worse.
If you do not have three spare disks, try borrowing some. Or buying some from a store that allows returns and returning them after you're done.

The system is currently running FreeBSD 7.3 release, but was running FreeBSD 8.0 release (that may in fact be part of my problems).
I'm not sure, if I look at the CVS logs I don't see a lot of change going on in the gvinum tool and kernel module.
You can try downloading the 8.0 livefs CD, boot from it, and see if you're able to mount your RAID-5 filesystem.

To check if there if *something* at /dev/gvinum/music you can use something like this (From one of my systems):

[~]# head -c `dc -e '1024 2 ^p'` /dev/mirror/datad | strings
/dev/mirror/datad being mounted as /data. You can try increasing the number for head, UFS filesystems seem to start with a whole lot of nothing.
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
RAID Boot volume on OpenBSD 4.6 using softraid csc OpenBSD General 2 26th February 2010 03:51 PM
FreeBSD 7.2 and gvinum issues DNAeon FreeBSD General 2 30th September 2009 11:03 PM
MS DOS volume labels? bigearsbilly FreeBSD General 2 1st April 2009 10:50 PM
Encrypting gvinum raid5 oxy FreeBSD General 1 13th December 2008 05:59 PM
mplayer volume cannot increase. bsdnewbie999 OpenBSD General 3 19th June 2008 03:16 PM

All times are GMT. The time now is 09:12 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick