Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Ubuntu

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-18-2008, 06:59 PM
garry
 
Posts: n/a
RAID Help

I just did a fresh install to 8.04 (needed to resize partitions and
stuff anyway) but now I can't get my RAID array to mount. I installed
mdadm and reset and it seems to have detected the array alright but when
I try to mount it I get a "must specify filesystem type" error.

I'm afraid to experiment too much cause I'm paranoid I'll accidentally
wipe everything from the drives. Does anyone know what I'm doing wrong?
Reply With Quote
  #2 (permalink)  
Old 07-18-2008, 07:38 PM
garry
 
Posts: n/a
Re: RAID Help

garry wrote:
> I just did a fresh install to 8.04 (needed to resize partitions and
> stuff anyway) but now I can't get my RAID array to mount. I installed
> mdadm and reset and it seems to have detected the array alright but when
> I try to mount it I get a "must specify filesystem type" error.
>
> I'm afraid to experiment too much cause I'm paranoid I'll accidentally
> wipe everything from the drives. Does anyone know what I'm doing wrong?



Update:

Just noticed that /proc/mdstat says the rais is active using sdb[0] and
sdc[1]. I don't know why it's using sdb[0] as it used to be sdb[1]. Is
this what's wrong? How can I fix this without corrupting what's on it?

As I said I'm trying not to lose everything on it (don't want to have to
re-rip all those CDs :( ) so I'm wary of experimenting myself.

Anybody got any help? This is driving me nuts!!
Reply With Quote
  #3 (permalink)  
Old 07-18-2008, 10:49 PM
Joe User
 
Posts: n/a
Re: RAID Help

On Fri, 18 Jul 2008 20:38:07 +0100, garry wrote:

> garry wrote:
>> I just did a fresh install to 8.04 (needed to resize partitions and
>> stuff anyway) but now I can't get my RAID array to mount. I installed
>> mdadm and reset and it seems to have detected the array alright but when
>> I try to mount it I get a "must specify filesystem type" error.
>>
>> I'm afraid to experiment too much cause I'm paranoid I'll accidentally
>> wipe everything from the drives. Does anyone know what I'm doing wrong?

>
>
> Update:
>
> Just noticed that /proc/mdstat says the rais is active using sdb[0] and
> sdc[1]. I don't know why it's using sdb[0] as it used to be sdb[1]. Is
> this what's wrong? How can I fix this without corrupting what's on it?
>
> As I said I'm trying not to lose everything on it (don't want to have to
> re-rip all those CDs :( ) so I'm wary of experimenting myself.
>
> Anybody got any help? This is driving me nuts!!


My working raid is listed in /etc/fstab like:

/dev/md0 /home reiserfs defaults,auto,noatime,exec 0 0

If you wanted to mount that without specifying it in fstab, that would be
like (untested):

mount -t reiserfs /dev/md0 /home

or

mount -t auto /dev/md0 /home

HTH.

--
It is neither possible nor necessary to educate people
who never question anything.

-- Joseph Heller

Reply With Quote
  #4 (permalink)  
Old 07-18-2008, 10:59 PM
garry
 
Posts: n/a
Re: RAID Help

Joe User wrote:
> On Fri, 18 Jul 2008 20:38:07 +0100, garry wrote:
>
>> garry wrote:
>>> I just did a fresh install to 8.04 (needed to resize partitions and
>>> stuff anyway) but now I can't get my RAID array to mount. I installed
>>> mdadm and reset and it seems to have detected the array alright but when
>>> I try to mount it I get a "must specify filesystem type" error.
>>>
>>> I'm afraid to experiment too much cause I'm paranoid I'll accidentally
>>> wipe everything from the drives. Does anyone know what I'm doing wrong?

>>
>> Update:
>>
>> Just noticed that /proc/mdstat says the rais is active using sdb[0] and
>> sdc[1]. I don't know why it's using sdb[0] as it used to be sdb[1]. Is
>> this what's wrong? How can I fix this without corrupting what's on it?
>>
>> As I said I'm trying not to lose everything on it (don't want to have to
>> re-rip all those CDs :( ) so I'm wary of experimenting myself.
>>
>> Anybody got any help? This is driving me nuts!!

>
> My working raid is listed in /etc/fstab like:
>
> /dev/md0 /home reiserfs defaults,auto,noatime,exec 0 0
>
> If you wanted to mount that without specifying it in fstab, that would be
> like (untested):
>
> mount -t reiserfs /dev/md0 /home
>
> or
>
> mount -t auto /dev/md0 /home
>
> HTH.
>

Tried that alright. Didn't work.

I also noticed that /dev/sdb1 and /dev/sdc1 don't actually exist but
running fstab /dev/sdb of sdc and print the partition table it shows them.

Anybody know what's going on??
Reply With Quote
  #5 (permalink)  
Old 07-19-2008, 12:37 AM
Antonio Perez
 
Posts: n/a
Re: RAID Help

garry nothere@nosuchplace.net wrote previously in alt.os.linux.ubuntu:

> garry wrote:
>> I just did a fresh install to 8.04 (needed to resize partitions and
>> stuff anyway) but now I can't get my RAID array to mount. I installed
>> mdadm and reset and it seems to have detected the array alright but when
>> I try to mount it I get a "must specify filesystem type" error.
>>
>> I'm afraid to experiment too much cause I'm paranoid I'll accidentally
>> wipe everything from the drives. Does anyone know what I'm doing wrong?

>
>
> Update:
>
> Just noticed that /proc/mdstat says the rais is active using sdb[0] and
> sdc[1]. I don't know why it's using sdb[0] as it used to be sdb[1]. Is
> this what's wrong? How can I fix this without corrupting what's on it?
>
> As I said I'm trying not to lose everything on it (don't want to have to
> re-rip all those CDs :( ) so I'm wary of experimenting myself.
>
> Anybody got any help? This is driving me nuts!!


Have you read mdadm manual?

# mdadm --examine /dev/sdb1

gives you details about your raid? or no superblock detected?

Have you created a mdadm.conf file with your raid info (details in mdadm
manual)
Reply With Quote
  #6 (permalink)  
Old 07-19-2008, 04:16 AM
Gordon
 
Posts: n/a
Re: RAID Help

On 2008-07-18, garry <nothere@nosuchplace.net> wrote:
> Joe User wrote:
>> On Fri, 18 Jul 2008 20:38:07 +0100, garry wrote:
>>
>>> garry wrote:
>>>> I just did a fresh install to 8.04 (needed to resize partitions and
>>>> stuff anyway) but now I can't get my RAID array to mount. I installed
>>>> mdadm and reset and it seems to have detected the array alright but when
>>>> I try to mount it I get a "must specify filesystem type" error.
>>>>
>>>> I'm afraid to experiment too much cause I'm paranoid I'll accidentally
>>>> wipe everything from the drives. Does anyone know what I'm doing wrong?
>>>
>>> Update:
>>>
>>> Just noticed that /proc/mdstat says the rais is active using sdb[0] and
>>> sdc[1]. I don't know why it's using sdb[0] as it used to be sdb[1]. Is
>>> this what's wrong? How can I fix this without corrupting what's on it?
>>>
>>> As I said I'm trying not to lose everything on it (don't want to have to
>>> re-rip all those CDs :( ) so I'm wary of experimenting myself.
>>>
>>> Anybody got any help? This is driving me nuts!!

>>
>> My working raid is listed in /etc/fstab like:
>>
>> /dev/md0 /home reiserfs defaults,auto,noatime,exec 0 0
>>
>> If you wanted to mount that without specifying it in fstab, that would be
>> like (untested):
>>
>> mount -t reiserfs /dev/md0 /home
>>
>> or
>>
>> mount -t auto /dev/md0 /home
>>
>> HTH.
>>

> Tried that alright. Didn't work.
>
> I also noticed that /dev/sdb1 and /dev/sdc1 don't actually exist but
> running fstab /dev/sdb of sdc and print the partition table it shows them.
>
> Anybody know what's going on??


You are regretting that you did not back up your data before the re-install
;-(

Reply With Quote
  #7 (permalink)  
Old 07-19-2008, 01:04 PM
garry
 
Posts: n/a
Re: RAID Help

Antonio Perez wrote:
> garry nothere@nosuchplace.net wrote previously in alt.os.linux.ubuntu:
>
>> garry wrote:
>>> I just did a fresh install to 8.04 (needed to resize partitions and
>>> stuff anyway) but now I can't get my RAID array to mount. I installed
>>> mdadm and reset and it seems to have detected the array alright but when
>>> I try to mount it I get a "must specify filesystem type" error.
>>>
>>> I'm afraid to experiment too much cause I'm paranoid I'll accidentally
>>> wipe everything from the drives. Does anyone know what I'm doing wrong?

>>
>> Update:
>>
>> Just noticed that /proc/mdstat says the rais is active using sdb[0] and
>> sdc[1]. I don't know why it's using sdb[0] as it used to be sdb[1]. Is
>> this what's wrong? How can I fix this without corrupting what's on it?
>>
>> As I said I'm trying not to lose everything on it (don't want to have to
>> re-rip all those CDs :( ) so I'm wary of experimenting myself.
>>
>> Anybody got any help? This is driving me nuts!!

>
> Have you read mdadm manual?
>
> # mdadm --examine /dev/sdb1
>
> gives you details about your raid? or no superblock detected?
>
> Have you created a mdadm.conf file with your raid info (details in mdadm
> manual)


# mdadm --examine /dev/sdb1
Gives me "no such file or directory" but

# mdadm --examine /dev/sdb
Does return info on my RAID. I've gone through the mdadm manual alright
but I'm wary of trying things as I don't know what would be destructive
(i.e. wipe everything and create a new array).

I'll have a look at creating an mdadm.conf file but I think my main
problem at the minute is that /dev/sdb1 and /dev/sdc1 don't exist.
Anybody know how to manually create them or get Linux to detect them?
Reply With Quote
  #8 (permalink)  
Old 07-19-2008, 03:00 PM
Antonio Perez
 
Posts: n/a
Re: RAID Help

garry nothere@nosuchplace.net wrote previously in alt.os.linux.ubuntu:

> Antonio Perez wrote:
>> garry nothere@nosuchplace.net wrote previously in alt.os.linux.ubuntu:
>>
>>> garry wrote:

[....]
> I'll have a look at creating an mdadm.conf file but I think my main
> problem at the minute is that /dev/sdb1 and /dev/sdc1 don't exist.
> Anybody know how to manually create them or get Linux to detect them?


Do you have space in another disk?
why don't you make a backup of the full disk with dd and be at ease?

then you could try to include a line in mdadm.conf like:
ARRAY /dev/md1 level=raid1 num-devices=2 UUID=123.....
to start your raid. You have not said which type is it: 0,1,5,10?

please provide "fdisk -l" as well.
Reply With Quote
  #9 (permalink)  
Old 07-19-2008, 07:58 PM
garry
 
Posts: n/a
Re: RAID Help

Antonio Perez wrote:
> garry nothere@nosuchplace.net wrote previously in alt.os.linux.ubuntu:
>
>> Antonio Perez wrote:
>>> garry nothere@nosuchplace.net wrote previously in alt.os.linux.ubuntu:
>>>
>>>> garry wrote:

> [....]
>> I'll have a look at creating an mdadm.conf file but I think my main
>> problem at the minute is that /dev/sdb1 and /dev/sdc1 don't exist.
>> Anybody know how to manually create them or get Linux to detect them?

>
> Do you have space in another disk?
> why don't you make a backup of the full disk with dd and be at ease?
>
> then you could try to include a line in mdadm.conf like:
> ARRAY /dev/md1 level=raid1 num-devices=2 UUID=123.....
> to start your raid. You have not said which type is it: 0,1,5,10?
>
> please provide "fdisk -l" as well.


I don't have enough space on any other disk. I've a lot of large files
left over from a project for college that I don't necessarily need but
can't access them to delete them now.

It's a RAID 0. 2x500gb drives.

fdisk -l gives me the following:


Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xd2e08c95

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2432 19535008+ 83 Linux
/dev/sda2 24260 24321 498015 82 Linux swap / Solaris
/dev/sda3 2433 24259 175325377+ 83 Linux

Partition table entries are not in disk order

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe4499a13

Device Boot Start End Blocks Id System
/dev/sdb1 1 60801 488384032 fd Linux raid
autodetect

Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xf8709f57

Device Boot Start End Blocks Id System
/dev/sdc1 1 60801 488384001 fd Linux raid
autodetect

Disk /dev/md0: 1000.2 GB, 1000215543808 bytes
255 heads, 63 sectors/track, 121602 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe4499a13

Device Boot Start End Blocks Id System
/dev/md0p1 1 60801 488384032 fd Linux raid
autodetect

sda is my os partion with /, /home/ and swap partions. sdb is the first
raid drive and appears to be detected as such. sdc is the 2nd and is
also being detected as a raid partition. I'm no expert (obviously :) )
but the partition table of md0 doesn't look right to me. It's "Start"
"End" and number of "Blocks" are all the same as the individual 500gig
drives.

mdadm.conf has 2 arrays listed /dev/md0 and /dev/md1. On the old OS
installation my array was located at /dev/md1. Could there be a problem
here?

Thanks for taking the time to help. I really appreciate it.
Reply With Quote
  #10 (permalink)  
Old 07-19-2008, 10:27 PM
Antonio Perez
 
Posts: n/a
Re: RAID Help

garry nothere@nosuchplace.net wrote previously in alt.os.linux.ubuntu:

> Antonio Perez wrote:
>> [....]
>>> I'll have a look at creating an mdadm.conf file but I think my main
>>> problem at the minute is that /dev/sdb1 and /dev/sdc1 don't exist.


They *do* exits as reported by "fdisk -l". Please calm down, repeating
questions without more information won't help resolving your issue.

>> Do you have space in another disk?

> I don't have enough space on any other disk.


Ok.

> sda is my os partion with /, /home/ and swap partions.

Ok, we could forget about sda for now.

> It's a RAID 0.

No redundancy, no backup, no spare. Problems are bound to happen.
Hard way to learn this lesson, sorry.

> 2x500gb drives.
> sdb is the first raid drive and appears to be detected as such.
> sdc is the 2nd and is also being detected as a raid partition.


Being detected as a RAID partition and being included in a RAID array is not
the same.

This info should not be hold as correct (fdisk is trying to interpret data
that could not be a partition table):
> Disk /dev/md0: 1000.2 GB, 1000215543808 bytes
> 255 heads, 63 sectors/track, 121602 cylinders


> but the partition table of md0 doesn't look right to me. It's "Start"
> "End" and number of "Blocks" are all the same as the individual 500gig
> drives.


Yes, but the number of cylinders is 121602 (double of each disk).

>> then you could try to include a line in mdadm.conf like:
>> ARRAY /dev/md1 level=raid1 num-devices=2 UUID=123.....
>> to start your raid.

> mdadm.conf has 2 arrays listed /dev/md0 and /dev/md1. On the old OS
> installation my array was located at /dev/md1. Could there be a problem
> here?


You only have one array, correct?
Then, that file must contain only one line, the other has to be erased.

Please do on a command line (# means root powers):
"let's backup the file:"
# mv /etc/mdadm/mdadm.conf /etc/mdadm/mdadm.conf.backup
"Let's create a new file with mdadm:"
# echo ’DEVICE /dev/hd*[0-9] /dev/sd*[0-9]’ > /etc/mdadm/mdadm.conf
# mdadm --detail --scan >> /etc/mdadm/mdadm.conf

That procedure is detailed in the mdadm manual (# man mdadm).

> Thanks for taking the time to help. I really appreciate it.

Let's hope we can solve your problem.

================================================== ===================
Post:
the new /etc/mdadm/mdadm.conf
# mdadm -E /dev/sdb
# mdadm -E /dev/sdc
here



Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Ubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:10 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109