LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 01-24-2007, 09:05 AM   #1
|Xi|
LQ Newbie
 
Registered: Jan 2007
Posts: 8

Rep: Reputation: 0
Cant load partition on RAID after installation


Hello
I'm planning switching to Linux from Windows and chose Mandriva 2007 Free to be my new OS.
I have an ASUS A8V Deluxe motherboard with VIA VT8237 which provides RAID funcionality on SATA drives.
During installation process the installer recognizes my RAID setup and asks me if I want to enable it. I answer yes and the partition is available to even install on it. I choose anohter partition on an ATA HDD.
Everything goes fine but my problem occurs after successful installation.
The partition is not mounted and cannot be mounted.
/etc/fstab refers to /dev/mapper/via_something (I'm away from that computer and cannot check). When I look into /dev/mapper there is only one file: control
When I use Knoppix the RAID is recognized and the partition is mounted normally.
Any hint about things to do would be much appreciated
 
Old 01-24-2007, 12:26 PM   #2
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Run the following and tell me what you get.

mdadm --examine --scan
 
Old 01-24-2007, 05:36 PM   #3
|Xi|
LQ Newbie
 
Registered: Jan 2007
Posts: 8

Original Poster
Rep: Reputation: 0
When running
mdadm --examine --scan
I get nothing
[root@D ~]# mdadm --examine --scan
[root@D ~]#

I checked /etc/fstab and it has the following line referring to RAID:
/dev/mapper/via_dhgdggdbbd5 /mnt/win_c3 ntfs umask=0,nls=iso8859-1,ro 0 0
but no /dev/mapper/via_dhgdggdbbd5 whatsoever
 
Old 01-25-2007, 10:49 AM   #4
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Then you are not running software RAID (mdadm). You are probably using logical volumes (lvm). /dev/mapper/via_dhgdggdbbd5 is the name of your volume group. It looks like your fstab has the name of the volume group but not the name of your logical volumes to mount. For example, this is how my fstab mounts my root partition which is the logical volume rootlv which is part of the volume group vg0:

/dev/mapper/vg0-roolv / ext3 defaults,errors=remount-ro 0 1

Also make sure that grub is booting to this root partition on startup.
 
Old 01-25-2007, 05:23 PM   #5
|Xi|
LQ Newbie
 
Registered: Jan 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for the reply ramram29.
I didn't use LVM when installing Mandriva. I have 2 ATA HDDs and 2 SATA HDDs working in RAID1.
I installed Mandriva on the first one and it is partitioned as below:

Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 3824 30716248+ 7 HPFS/NTFS
/dev/hda2 3825 4865 8361832+ f W95 Ext'd (LBA)
/dev/hda5 3825 4780 7679038+ 83 Linux
/dev/hda6 4781 4865 682731 82 Linux swap / Solaris

The second one has only one logical NTFS partition:

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

Device Boot Start End Blocks Id System
/dev/hdb1 * 2 24321 195350400 f W95 Ext'd (LBA)
/dev/hdb5 2 24321 195350368+ 7 HPFS/NTFS

Both of them are mounted fine during booting.

Now, when accessing the two SATA drives using fdisk I can see them:
The first one:
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 2 30401 244188000 f W95 Ext'd (LBA)
/dev/sda5 2 30401 244187968+ 7 HPFS/NTFS

and the second:
Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 2 30401 244188000 f W95 Ext'd (LBA)
/dev/sdb5 2 30401 244187968+ 7 HPFS/NTFS

Here is my /etc/fstab to make things clearer:

/dev/hda5 / ext3 defaults 1 1
/dev/hdc /mnt/cdrom auto umask=0,users,iocharset=iso8859-1,codepage=850,noauto,r
o,exec 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0,iocharset=iso88
59-1,sync,codepage=850 0 0
/dev/hda1 /mnt/win_c ntfs umask=0,nls=iso8859-1,ro 0 0
/dev/hdb5 /mnt/win_c2 ntfs umask=0,nls=iso8859-1,ro 0 0
/dev/mapper/via_dhgdggdbbd5 /mnt/win_c3 ntfs umask=0,nls=iso8859-1,ro 0 0
none /proc proc defaults 0 0
/dev/hda6 swap swap defaults 0 0

and ls -l on /dev/mapper:

total 0
crw-rw---- 1 root root 10, 62 Jan 26 00:06 control

Grub is not booting into the RAID partition and it shouldn't IMHO.
 
Old 01-27-2007, 07:58 AM   #6
|Xi|
LQ Newbie
 
Registered: Jan 2007
Posts: 8

Original Poster
Rep: Reputation: 0
I discovered that all it takes is a simple dmraid -ay to be able activate the array and mount /dev/mapper/via_dhgdggdbbd5
It seems that dmraid is never activated when booting.
How can I activate it automatically every boot to be available before /etc/fstab is processed?
 
Old 03-20-2007, 12:25 AM   #7
french_frogger
LQ Newbie
 
Registered: Mar 2004
Location: Canada
Distribution: Vectorlinux 5.1 SOHO
Posts: 21

Rep: Reputation: 15
Quote:
Originally Posted by |Xi|
How can I activate it automatically every boot to be available before /etc/fstab is processed?
In the same situation, I'd like to know how to load it too at boot so I didn't have to manually do it everytime.

Cheers
 
Old 03-21-2007, 06:46 AM   #8
|Xi|
LQ Newbie
 
Registered: Jan 2007
Posts: 8

Original Poster
Rep: Reputation: 0
It is enought to write to /etc/rc.local 'dmraid -ay' in a new line and mount the partitions afterwards, also in /etc/rc.local using mount:

dmraid -ay
mount /dev/mapper/via_dhgdggdbbd5 /mnt/F

Last edited by |Xi|; 03-21-2007 at 06:48 AM.
 
  


Reply



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
GRUB won't load windows partition - root (hd0,0), Filesystem type unknown partition.. cillm527 Linux - Software 4 04-27-2008 06:44 AM
Load raid drivers from CD cwhitewood Linux - Hardware 0 08-30-2005 12:50 AM
Converting an ordinary partition to RAID 1 or RAID 5? krishvij Linux - Newbie 1 03-20-2005 09:39 PM
How to load RAID drivers before setup SergeiTheSaint Slackware 5 09-22-2004 11:52 PM
Red Hat 9 can't load Raid driver eokboy Red Hat 0 04-23-2004 09:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 11:16 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration