LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-07-2009, 06:50 AM   #1
Hi_This_is_Dev
Member
 
Registered: May 2009
Location: India
Distribution: On my PC I use RHEL, at office AIX, Solaris, HP-UX, RHEL.
Posts: 254

Rep: Reputation: 18
RAID Level 1 and 5


First, RAID1 was implemented and it worked. Then the partitions sda6 and sda7 were deleted and sda6, sda7, and sda8 were created for a fresh implementation of RAID Level 5.


I stopped the existing RAID:

Code:
[root@localhost ~]# mdadm -S /dev/md0
mdadm: stopped /dev/md0
This is the scene after deleting the partitions and recreating them:
Code:
[root@localhost ~]# fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1275    10241406   83  Linux
/dev/sda2            1276        1657     3068415   82  Linux swap / Solaris
/dev/sda3            1658        2874     9775552+   5  Extended
/dev/sda5            1658        1901     1959898+  83  Linux
/dev/sda6            1902        1914      104391   fd  Linux raid autodetect
/dev/sda7            1915        1927      104391   fd  Linux raid autodetect
/dev/sda8            1928        1940      104391   fd  Linux raid autodetect

Disk /dev/md0: 213 MB, 213647360 bytes
2 heads, 4 sectors/track, 52160 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md0 doesn't contain a valid partition table
[root@localhost ~]#
The underlined line above states some error or warning. Why is it there?

I have been told by my trainer that now I must create other partitions, sda9, sda10, sda11 for the new RAID because the previous one is creating the problem. I am trying that now, however, I want to know why we have to leave sda6 and sda7 even after deleting them.


Well, here is what I am trying now:
 
Old 10-07-2009, 08:59 AM   #2
never say never
Member
 
Registered: Sep 2009
Location: Indiana, USA
Distribution: SLES, SLED, OpenSuse, CentOS, ubuntu 10.10, OpenBSD, FreeBSD
Posts: 195

Rep: Reputation: 37
Did you remove the partitions from the array? ie:

mdadm --manage /dev/md0 --remove /dev/sda6
mdadm --manage /dev/md0 --remove /dev/sda7

Once that is done you should be able to assign them to the new Raid 5

I think you got the following:

Disk /dev/md0 doesn't contain a valid partition table

because the array is still configured, but the partitions were destroyed and recreated, so the md0 partition data no longer exists for the array.
 
  


Reply

Tags
raid


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
Dell/Intel ICH7 soft-RAID and mdadm raid-level mistake PhilipTheMouse Linux - General 0 03-14-2009 05:59 PM
Ghost raid level 1 - following me! calabash Linux - Hardware 3 09-10-2008 09:50 PM
Raid Level 1 macadam Linux - Hardware 1 07-05-2006 09:19 PM
find raid level lhrt Linux - General 1 06-10-2006 12:03 AM
Raid Level 5 HELP!! Please... Daveinflorida Linux - Networking 3 01-20-2006 01:04 PM


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