LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 07-15-2009, 11:02 PM   #1
gmoney88
LQ Newbie
 
Registered: Jul 2009
Posts: 2

Rep: Reputation: 0
when installing second raid0 array, drives shift places


I have an ASUS P6T motherboard with Marvell RAID built in. Running Fedora Core 5.

Current setup is two 1TB drives in RAID 0 (mirrored). This has been working fine for years, but now I am nearly out of space. So, I bought two new 1TB drives and set up a second RAID 0 array using the Marvell utility.

Before adding the new disks:

Code:
#fdisk -l

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          13      104391   83  Linux
/dev/sda2              14      121600   976647577+  8e  Linux LVM

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1          13      104391   83  Linux
/dev/sdb2              14      121600   976647577+  8e  Linux LVM

Disk /dev/dm-0: 1000.2 GB, 1000202178560 bytes
255 heads, 63 sectors/track, 121600 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

     Device Boot      Start         End      Blocks   Id  System
/dev/dm-0p1               1          13      104391   83  Linux
/dev/dm-0p2              14      121600   976647577+  8e  Linux LVM

Disk /dev/dm-1: 106 MB, 106896384 bytes
255 heads, 63 sectors/track, 12 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-1 doesn't contain a valid partition table

Disk /dev/dm-2: 1000.0 GB, 1000087119360 bytes
255 heads, 63 sectors/track, 121587 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-2 doesn't contain a valid partition table

Disk /dev/dm-3: 997.9 GB, 997942362112 bytes
255 heads, 63 sectors/track, 121326 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-3 doesn't contain a valid partition table

Disk /dev/dm-4: 2080 MB, 2080374784 bytes
255 heads, 63 sectors/track, 252 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-4 doesn't contain a valid partition table

#df

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                     944031184 828668812  66634720  93% /
/dev/dm-1               101086     15457     80410  17% /boot
tmpfs                  2012740         0   2012740   0% /dev/shm
After adding the disks:
Code:
#fdisk -l 

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1      121601   976760001   83  Linux

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      121601   976760001   83  Linux

Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1          13      104391   83  Linux
/dev/sdc2              14      121600   976647577+  8e  Linux LVM

Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1          13      104391   83  Linux
/dev/sdd2              14      121600   976647577+  8e  Linux LVM

Disk /dev/dm-0: 1000.2 GB, 1000202178560 bytes
255 heads, 63 sectors/track, 121600 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

     Device Boot      Start         End      Blocks   Id  System
/dev/dm-0p1               1      121601   976760001   83  Linux

Disk /dev/dm-1: 997.9 GB, 997942362112 bytes
255 heads, 63 sectors/track, 121326 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-1 doesn't contain a valid partition table

Disk /dev/dm-2: 2080 MB, 2080374784 bytes
255 heads, 63 sectors/track, 252 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-2 doesn't contain a valid partition table

#df

/dev/mapper/VolGroup00-LogVol00
                     944031184 828668252  66635280  93% /
/dev/sdc1               101086     15457     80410  17% /boot
tmpfs                  2012740         0   2012740   0% /dev/shm
As you can see the original disks (sda and sdb) are moved to sdc and sdd, and the "new" disks are now sda and sdb. Also /boot moves from /dev/dm-1 to /dev/sdc1. I imagine this has to do with where the drives are plugged into the motherboard.

What can I do to make this work correctly?
 
Old 07-16-2009, 02:16 AM   #2
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 342

Rep: Reputation: 38
Hi gmoney88.

The best solution to solving this problem, is start using labels, or UUIDs for all your partitions, and then mounting them by referencing these labels.

Alternatively, connect your drives in a different order on your motherboard to revert the situation.
 
Old 07-16-2009, 08:56 AM   #3
gmoney88
LQ Newbie
 
Registered: Jul 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you. After investigating UUIDs and Labels, I decided the easiest thing would be to move the sata cables around, and that worked.
 
  


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
Migrate RAID0 array to RAID10 with mdadm jimbro727 Linux - General 6 07-17-2009 07:01 PM
How can I add new device(disk or partition) into a raid0 array xqkp77 Linux - Hardware 0 06-18-2007 01:37 AM
Mounting my raid0 array with a recovery CD lowpro2k3 Slackware 1 07-22-2005 05:55 PM
mandrake 9.1 - LILO - windows on a raid0 array desteffy Linux - Hardware 1 07-08-2003 12:04 AM
RH7.3 install on existing RAID0 array Gandalf29 Linux - Newbie 1 11-27-2002 05:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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

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