LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 10-01-2009, 08:16 AM   #1
Johnstni
LQ Newbie
 
Registered: Mar 2006
Location: Ontario, Canada
Distribution: Slackware
Posts: 3

Rep: Reputation: 0
Software RAID on Slackware


I recently reinstalled the OS on file server, going from Slackware 12.2 (32bit) to Slackware 13 (64bit). I had a software (mdadm) RAID5 array (6 drives, 500GB, no hotspares, 1 massive xfs partition) on the 12.2 install.

Since the change I've not been able to mount the xfs partition. I did remember to include large partition support by installing the EFI GUID Partition support kernel module.

I have included the output of some various debugging attempts below. You'll notice that the array seems to have started fine and things like fdisk -l and parted can see the xfs partition. The problem is that mount and xfs_check don't see the partition as xfs.

The only differences I am aware of in the new setup are:
64bit Slackware instead of 32bit and the new install is using the 2.6.29.6 kernel when the old version was using the 2.6.30.x kernel.

Thanks in advance for any help you can provide. All my music is on this raid array and i'm getting sick of the playlist on my iPod, so you can see, this is quite urgent

>uname -a
Code:
Linux ninja 2.6.29.6 #2 SMP Mon Aug 17 11:58:18 CDT 2009 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 5000+ AuthenticAMD GNU/Linux
>cat /etc/mdadm.conf
Code:
DEVICE /dev/hd[cd] /dev/sd[abcd] 
ARRAY /dev/md0 devices=/dev/hdc,/dev/hdd,/dev/sda,/dev/sdb,/dev/sdc,/dev/sdd
>mdadm -D /dev/md0
Code:
/dev/md0:
        Version : 00.90.03
  Creation Time : Thu Jun 18 09:33:54 2009
     Raid Level : raid5
     Array Size : 2441932160 (2328.81 GiB 2500.54 GB)
  Used Dev Size : 488386432 (465.76 GiB 500.11 GB)
   Raid Devices : 6
  Total Devices : 6
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Wed Sep 30 23:10:08 2009
          State : clean
 Active Devices : 6
Working Devices : 6
 Failed Devices : 0
  Spare Devices : 0

         Layout : left-symmetric
     Chunk Size : 128K

           UUID : 10b1b7ab:f6f071ff:e8bf48df:f2cdf819
         Events : 0.36

    Number   Major   Minor   RaidDevice State
       0      22        0        0      active sync   /dev/hdc
       1      22       64        1      active sync   /dev/hdd
       2       8        0        2      active sync   /dev/sda
       3       8       16        3      active sync   /dev/sdb
       4       8       32        4      active sync   /dev/sdc
       5       8       48        5      active sync   /dev/sdd
>cat /proc/mdstat
Code:
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath] 
md0 : active raid5 hdc[0] sdd[5] sdc[4] sdb[3] sda[2] hdd[1]
      2441932160 blocks level 5, 128k chunk, algorithm 2 [6/6] [UUUUUU]
      
unused devices: <none>
>dmesg | grep md0
Code:
raid5: allocated 6368kB for md0
raid5: raid level 5 set md0 active with 6 out of 6 devices, algorithm 2
 md0: p1
>fdisk -l
Code:
Disk /dev/hdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/hdc1               1      267350  2147483647+  ee  GPT

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

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

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

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

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

Disk /dev/md0: 2500.5 GB, 2500538531840 bytes
255 heads, 63 sectors/track, 304006 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

    Device Boot      Start         End      Blocks   Id  System
/dev/md0p1               1      267350  2147483647+  ee  GPT
>mount -v -t xfs /dev/md0p1 /mnt/md0p1
Code:
mount: wrong fs type, bad option, bad superblock on /dev/md0p1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
>xfs_check /dev/md0p1
Code:
xfs_check: /dev/md0p1 is not a valid XFS filesystem (unexpected SB magic number 
0x45464920)
xfs_check: size check failed
xfs_check: WARNING - filesystem uses v1 dirs,limited functionality provided.
xfs_check: read failed: Invalid argument
xfs_check: data size check failed
xfs_check: failed to alloc 16700240256 bytes: Cannot allocate memory
 
Old 10-01-2009, 09:13 AM   #2
Johnstni
LQ Newbie
 
Registered: Mar 2006
Location: Ontario, Canada
Distribution: Slackware
Posts: 3

Original Poster
Rep: Reputation: 0
I forgot to include a couple more things.

1. Yes, I do have xfs support enabled in the kernel.

2. GNU Parted sees the parition as xfs.

>parted /dev/md0
Code:
GNU Parted 1.8.8
Using /dev/md0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: Unknown (unknown)
Disk /dev/md0: 2501GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name     Flags
 1      17.4kB  2501GB  2501GB  xfs          primary
 
Old 10-01-2009, 12:07 PM   #3
Johnstni
LQ Newbie
 
Registered: Mar 2006
Location: Ontario, Canada
Distribution: Slackware
Posts: 3

Original Poster
Rep: Reputation: 0
Upgraded to kernel 2.6.30.8
Problem solved, partition mounts fine.
 
  


Reply

Tags
mdadm, raid5, slackware


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
Software Raid 1 with Slackware 12.0 Possible Failure? darkmuck Linux - Hardware 2 02-21-2009 01:06 AM
slackware 11 and software RAID ? indabhutt Slackware 14 11-15-2008 06:37 AM
software RAID 0 slackware ? cyberiapost Slackware 1 11-09-2008 01:13 AM
software raid 1 in slackware julc Slackware 1 11-25-2005 03:21 PM
Slackware 10.1 and Software RAID Mow Slackware - Installation 2 04-08-2005 07:11 AM


All times are GMT -5. The time now is 03:30 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