LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 11-18-2004, 08:38 AM   #1
monty
LQ Newbie
 
Registered: Mar 2004
Location: Valdosta, GA
Distribution: Suse Pro 10.0
Posts: 10

Rep: Reputation: 0
software Firewire 800 RAID array loses formatting on reboot


I recently bought three 500GB Lacie external Firewire800 drives for use as a backup to my orgs SANS array. Installed SLES9 on the machine, then installed the RAID card, and plugged in the drives. THe Partitioner tool under YAST sees the drives, and lets me set them up in a RAID0 array. I formatted it a few times, using ReiserFS, Ext3, and JFS, and everytime, the format works like a champ. I use mount /dev/md0 /users and run df, and see the array mounted to /users. I can make directories and files and all kinda cool stuff, and I can mount and unmount it as much as I want. But when I reboot, I get a badfs type, no superblock error on /dev/md0 It's like the array is losing it's formatting everytime I reboot. I've tried not having it in /etc/fstab, and just under /etc/raidtab but that didn't help any except that the PC would boot w/ it out of /etc/fstab.

Any ideas as to why the array loses it's formatting everytime I reboot? It's really driving me up the wall, and I really want it to work cause $900 for 1.2TB of storage ain't bad, especially when it can hold ALL of my user/corporate data.

here is some output I threw into a text file that may or may not help:

Code:
THIS OUTPUT WAS GENERATED BY AFTER THE FOLLOWING COMMANDS WERE EXECUTED:
mdadm --build /dev/md0 --chunk=64 --level=0 --raid-devices=3 /dev/sda /dev/sdb /dev/sdc
mkfs.reiserfs /dev/md0
mount /dev/md0 /raid

OUTPUT OF mdadm --examine /dev/md0:

/dev/md0:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : bd7b6b6c:d3bae712:3d56e6ab:7d0a909f
  Creation Time : Thu Nov 18 10:05:50 2004
     Raid Level : raid0
    Device Size : 488396992 (465.77 GiB 500.12 GB)
   Raid Devices : 3
  Total Devices : 3
Preferred Minor : 0

    Update Time : Thu Nov 18 10:05:50 2004
          State : dirty, no-errors
 Active Devices : 3
Working Devices : 3
 Failed Devices : 0
  Spare Devices : 0
       Checksum : 9519671d - correct
         Events : 0.1

     Chunk Size : 32K

      Number   Major   Minor   RaidDevice State
this     2       8       32        2      active sync   /dev/evms/.nodes/sdc
   0     0       8        0        0      active sync   /dev/evms/.nodes/sda
   1     1       8       16        1      active sync   /dev/evms/.nodes/sdb
   2     2       8       32        2      active sync   /dev/evms/.nodes/sdc

THE DF OUTPUT IS AS FOLLOWS:

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda2             38024624  13291024  24733600  35% /
tmpfs                   257540         8    257532   1% /dev/shm
/dev/md0             1465146448     32840 1465113608   1% /raid

ALL OF THIS OCCURS BEFORE THE REBOOT.

THESE ARE THE COMMANDS AND RESULTS AFTER THE REBOOT:

VO42818:~ # mdadm --examine /dev/md0
mdadm: /dev/md0 is too small for md1

VO42818:~ # mount /dev/md0 /raid
/dev/md0: No such device
mount: /dev/md0: can't read superblock

VO42818:~ # df
Filesystem           1K-blocks      Used Available Use% Mounted on 
/dev/hda2             38024624  13291056  24733568  35% /
tmpfs                   257540         8    257532   1% /dev/shmdf
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda2             38024624  13291056  24733568  35% /
tmpfs                   257540         8    257532   1% /dev/shm
Thanks!
--Monty

Last edited by monty; 11-18-2004 at 10:25 AM.
 
Old 11-18-2004, 06:35 PM   #2
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
You forgot to make a partition on each of the hard drives. Also after you make partitions, you have to reboot. When using Firewire, you have to know which one is which for every bootup because it is unpredictable when setting up Firewire and USB devices. You can either depend on Linux looking up the serial number for each drive or add a second small partition with a file store in it. Then write a script to find the information what drive is which and setup the RAID array.

Do not use JFS because it slows down when you add files to it and it does not defrag. The only way to defrag it is dump on to another 1.2 TB medium and dump it back on to the JFS drive. Only use JFS on small (less than 1 GB) partitions, because they are a lot easier to work with. I suggest XFS if you want very high performance. XFS reads and writes very fast because it spends most of the time in memory. Also XFS read huge chunks of data in parallel, so if you optimize the formatting for your RAID array you can get very fast disk transfers.
 
Old 11-29-2004, 01:38 PM   #3
Occupant
LQ Newbie
 
Registered: Nov 2004
Posts: 4

Rep: Reputation: 0
Quote:
State : dirty, no-errors
I get this state after only a few minutes of running... "dirty, no error' I run xfs_check, and that cleans it up for a while, but after awhile it will return to a dirty state agian. Is this something to worry about?
 
Old 11-29-2004, 11:14 PM   #4
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
You can not specify raw block devices. You have to make atleast one partition on /dev/sda, /dev/sdb, and /dev/sdc before using it. After you made the partition on the drives, setup the software RAID using /dev/sda1, /dev/sdb1, and /dev/sdc1.

http://www.ibiblio.org/pub/Linux/doc...AID-0.4x-HOWTO
http://www.ibiblio.org/pub/Linux/doc...are-RAID-HOWTO
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create RAID 5 software array wesleywest Red Hat 3 02-09-2005 02:41 AM
Software raid 5 always missing 1 disk after reboot birkinshawc Linux - Hardware 0 05-20-2004 10:57 PM
Transferring a software RAID array Dee-ehn Linux - Software 0 04-15-2004 04:46 AM
RAID array not work after reboot smartsupport Linux - Hardware 0 11-19-2003 05:02 PM
software raid - add device wrongly marked faulty back into array? snoozy Linux - General 2 06-27-2003 02:11 PM


All times are GMT -5. The time now is 01:45 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration