Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fsck on a raid volume
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
coutts99
Apprentice
Apprentice


Joined: 19 Sep 2002
Posts: 171
Location: Sunderland, UK

PostPosted: Wed Dec 14, 2005 2:17 pm    Post subject: fsck on a raid volume Reply with quote

I have set up a few mirrored partitions, however I am having some trouble with them.

The problem is a fsck is failing on them, however I can mount them and they seem to work fine -:

Code:
fsck.ext3: Invalid argument while trying to open /dev/md5

The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>


I had to comment stuff out in /etc/init.d/checkroot so that it didn't do a fsck to get the system to boot.

Appropriate configs follow -:

/etc/mdadm.conf
Code:
DEVICE /dev/sda*
DEVICE /dev/sdb*
ARRAY /dev/md1 devices=/dev/sda1,/dev/sdb1
ARRAY /dev/md4 devices=/dev/sda4,/dev/sdb4
ARRAY /dev/md5 devices=/dev/sda5,/dev/sdb5


/etc/raidtab
Code:
raiddev /dev/md1
raid-level 1
chunk-size 64
persistent-superblock 1
nr-raid-disks 2
device /dev/sda1
raid-disk 0
device /dev/sdb1
raid-disk 1

raiddev /dev/md4
raid-level 1
chunk-size 64
persistent-superblock 1
nr-raid-disks 2
device /dev/sda4
raid-disk 0
device /dev/sdb4
raid-disk 1

raiddev /dev/md5
raid-level 1
chunk-size 64
persistent-superblock 1
nr-raid-disks 2
device /dev/sda5
raid-disk 0
device /dev/sdb5
raid-disk 1


Any ideas?
Back to top
View user's profile Send private message
ecosta
Guru
Guru


Joined: 09 May 2003
Posts: 477
Location: Brussels,BE

PostPosted: Wed Dec 14, 2005 2:30 pm    Post subject: Reply with quote

Could you show us your partitions?
Code:
# fdisk -l /dev/hd{a,b}


If possible, a list of the commands you ran to get your RAID up and running. I didn't thing raidtab was part of mdadm package... can't say for sure 'cause a long way from my box but you might want to check.

I'd try the following command to populate your /etc/mdadm.conf
Code:

# mdadm --detail --scan
# mdadm --detail --scan >> /etc/mdadm.conf


This is what I did to get it running:

Code:

# fdisk -l /dev/hda   # make disk partitions

Disk /dev/hda: 122.9 GB, 122942324736 bytes
16 heads, 63 sectors/track, 238216 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1         195       98248+  fd  Linux raid autodetect
/dev/hda2             196        1165      488880   fd  Linux raid autodetect
[...]

# mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2 --spare-devices=1 /dev/hd{a,b}1    # make RAID1
# mdadm --create --verbose /dev/md1 --level=1 --raid-devices=2 --spare-devices=1 /dev/hd{a,b}2    # make RAID1

# mdadm --detail /dev/md0  # check raid
# mdadm --detail /dev/md1  # check raid

# mdadm --detail --scan >> /etc/mdadm.conf  # populate config file

# mke2fs /dev/md0     # ext2
# mke2fs -j /dev/md1  # ext3


Hope this helps
Ed.
_________________
Linux user #201331
A8N-SLI Delux / AMD64 X2 3800+ / 1024 MB RAM / 5 x 250 GB SATA RAID 1/5 / ATI Radeon X700 256MB.
Back to top
View user's profile Send private message
coutts99
Apprentice
Apprentice


Joined: 19 Sep 2002
Posts: 171
Location: Sunderland, UK

PostPosted: Wed Dec 14, 2005 5:50 pm    Post subject: Reply with quote

I followed this guide to get it running as I already had my system setup

http://www.debian-administration.org/articles/238

The /etc/raidtab I just populated trying to get fsck to work.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7301
Location: Groton, Massachusetts USA

PostPosted: Wed Dec 14, 2005 9:05 pm    Post subject: Re: fsck on a raid volume Reply with quote

coutts99 wrote:
The problem is a fsck is failing on them, however I can mount them and they seem to work fine -:

It sounds like there is a typo in your /etc/fstab
Back to top
View user's profile Send private message
coutts99
Apprentice
Apprentice


Joined: 19 Sep 2002
Posts: 171
Location: Sunderland, UK

PostPosted: Thu Dec 15, 2005 12:18 pm    Post subject: Re: fsck on a raid volume Reply with quote

cyrillic wrote:
It sounds like there is a typo in your /etc/fstab


fstab looks fine and the drives mount finw on boot.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7301
Location: Groton, Massachusetts USA

PostPosted: Thu Dec 15, 2005 11:33 pm    Post subject: Re: fsck on a raid volume Reply with quote

coutts99 wrote:
fstab looks fine ...

That is why it is good to have more than one set of eyeballs. (hint)
Back to top
View user's profile Send private message
Butts McCokey
Advocate
Advocate


Joined: 23 Apr 2004
Posts: 3313

PostPosted: Fri Dec 16, 2005 2:02 am    Post subject: Reply with quote

please post grub.conf and /etc/fstab
_________________
Since the bible and the church are obviously mistaken about where we came from, how can we trust them with where we're going?

"An eye for an eye will make us all blind" - Gandhi
Back to top
View user's profile Send private message
coutts99
Apprentice
Apprentice


Joined: 19 Sep 2002
Posts: 171
Location: Sunderland, UK

PostPosted: Fri Dec 16, 2005 8:08 am    Post subject: Reply with quote

/etc/fstab

Code:
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# See the manpage fstab(5) for more information.
#

# <fs>                  <mountpoint>    <type>          <opts>          <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#/dev/BOOT              /boot           ext2            noauto,noatime  1 2
/dev/md1                /               ext3            noatime         0 1
/dev/sda2               none            swap            sw,pri=1        0 0
/dev/sdb2               none            swap            sw,pri=1        0 0
/dev/md4               /usr            ext3            noatime         0 1
/dev/md5               /var            ext3            noatime         0 1
#/dev/sdb1              /music          ext3            noatime         0 1
/dev/cdroms/cdrom0      /mnt/cdrom      iso9660         noauto,ro       0 0
/dev/fd0                /mnt/floppy     auto            noauto          0 0

thelma:/usr/portage      /usr/portage    nfs             rsize=8192,wsize=8192,timeo=14,intr,nolock
thelma:/usr/local/portage /usr/local/portage     nfs     rsize=8192,wsize=8192,timeo=14,intr
thelma:/home             /home           nfs             rsize=8192,wsize=8192,timeo=14,intr
thelma:/backup           /backup          nfs             rsize=8192,wsize=8192,timeo=14,intr

# NOTE: The next line is critical for boot!
proc                    /proc           proc            defaults        0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0


/etc/silo.conf (yes I'm on sparc)
Code:
partition = 1
append = "md=1,/dev/sda1,/dev/sdb1 md=4,/dev/sda4,/dev/sdb4 md=5,/dev/sda5,/dev/sdb5"
root = /dev/md1
timeout = 10

image = /boot/image
    label = Gentoo


[code]
Back to top
View user's profile Send private message
coutts99
Apprentice
Apprentice


Joined: 19 Sep 2002
Posts: 171
Location: Sunderland, UK

PostPosted: Fri Dec 16, 2005 8:11 am    Post subject: Reply with quote

Partitions on /dev/sda

Code:
Disk /dev/sda (Sun disk label): 12 heads, 303 sectors, 9770 cylinders
Units = cylinders of 3636 * 512 bytes

   Device Flag    Start       End    Blocks   Id  System
/dev/sda1             0       622   1130796   fd  Linux raid autodetect
/dev/sda2  u        622      1046    770832   82  Linux swap
/dev/sda3  u          0      9770  17761860    5  Whole disk
/dev/sda4          1046      3225   3961422   fd  Linux raid autodetect
/dev/sda5          3225      5404   3961422   fd  Linux raid autodetect


Partition on /dev/sdb

Code:
Disk /dev/sdb (Sun disk label): 12 heads, 303 sectors, 9770 cylinders
Units = cylinders of 3636 * 512 bytes

   Device Flag    Start       End    Blocks   Id  System
/dev/sdb1             0       622   1130796   fd  Linux raid autodetect
/dev/sdb2  u        622      1046    770832   82  Linux swap
/dev/sdb3  u          0      9770  17761860    5  Whole disk
/dev/sdb4          1046      3225   3961422   fd  Linux raid autodetect
/dev/sdb5          3225      5404   3961422   fd  Linux raid autodetect
Back to top
View user's profile Send private message
Butts McCokey
Advocate
Advocate


Joined: 23 Apr 2004
Posts: 3313

PostPosted: Fri Dec 16, 2005 5:11 pm    Post subject: Reply with quote

do you not have a seperate boot partition?
_________________
Since the bible and the church are obviously mistaken about where we came from, how can we trust them with where we're going?

"An eye for an eye will make us all blind" - Gandhi
Back to top
View user's profile Send private message
coutts99
Apprentice
Apprentice


Joined: 19 Sep 2002
Posts: 171
Location: Sunderland, UK

PostPosted: Sat Dec 17, 2005 12:21 pm    Post subject: Reply with quote

cokehabit wrote:
do you not have a seperate boot partition?


It's not recommened on Sparc's -:

Code:
Note that a separate /boot partition is generally not recommended on SPARC, as it complicates the bootloader configuration.


From http://www.gentoo.org/doc/en/handbook/handbook-sparc.xml?part=1&chap=4
Back to top
View user's profile Send private message
nixnut
Administrator
Administrator


Joined: 09 Apr 2004
Posts: 10973
Location: the dutch mountains

PostPosted: Sat Dec 17, 2005 2:38 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Gentoo on Sparc.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
coutts99
Apprentice
Apprentice


Joined: 19 Sep 2002
Posts: 171
Location: Sunderland, UK

PostPosted: Fri Dec 23, 2005 9:06 pm    Post subject: Reply with quote

nixnut wrote:
Moved from Installing Gentoo to Gentoo on Sparc.


How is this a Sparc specific post?
Back to top
View user's profile Send private message
Butts McCokey
Advocate
Advocate


Joined: 23 Apr 2004
Posts: 3313

PostPosted: Tue Dec 27, 2005 6:43 pm    Post subject: Reply with quote

coutts99 wrote:
cokehabit wrote:
do you not have a seperate boot partition?


It's not recommened on Sparc's -:

Code:
Note that a separate /boot partition is generally not recommended on SPARC, as it complicates the bootloader configuration.


From http://www.gentoo.org/doc/en/handbook/handbook-sparc.xml?part=1&chap=4
this would make it specific to sparcs'
_________________
Since the bible and the church are obviously mistaken about where we came from, how can we trust them with where we're going?

"An eye for an eye will make us all blind" - Gandhi
Back to top
View user's profile Send private message
coutts99
Apprentice
Apprentice


Joined: 19 Sep 2002
Posts: 171
Location: Sunderland, UK

PostPosted: Tue Dec 27, 2005 6:56 pm    Post subject: Reply with quote

My raid partition wasn't getting recognised as a ext3 partition by fsck, how is this sparc specific?
Back to top
View user's profile Send private message
Butts McCokey
Advocate
Advocate


Joined: 23 Apr 2004
Posts: 3313

PostPosted: Tue Dec 27, 2005 7:37 pm    Post subject: Reply with quote

because the installation is slightly different, therre are labels and slices that others wouldn't understand and on top of it all, you are installing on a sparc.

Sparc problems go in here whether they can be translated to other architectures or not.

Merry Xmas
_________________
Since the bible and the church are obviously mistaken about where we came from, how can we trust them with where we're going?

"An eye for an eye will make us all blind" - Gandhi
Back to top
View user's profile Send private message
coutts99
Apprentice
Apprentice


Joined: 19 Sep 2002
Posts: 171
Location: Sunderland, UK

PostPosted: Tue Dec 27, 2005 7:49 pm    Post subject: Reply with quote

cokehabit wrote:
because the installation is slightly different, therre are labels and slices that others wouldn't understand and on top of it all, you are installing on a sparc.

Sparc problems go in here whether they can be translated to other architectures or not.

Merry Xmas


Giz a line!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum