LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-21-2008, 08:16 PM   #1
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 44
upgraded servers, is RAID1 correct?(CentOS 5.1)


Ive recently upgraded 2 servers to CentOS 5.1 and I just realized that I didn't account for the RAID1 during the upgrade so I need some advice to see if my RAID is functioning correctly.

setup

2.6.18-53.1.14.el5

df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md2 55G 4.7G 47G 9% /
/dev/md1 124M 24M 94M 21% /boot
none 1.9G 0 1.9G 0% /dev/shm



fdisk -l

Disk /dev/hda: 61.4 GB, 61492838400 bytes
16 heads, 63 sectors/track, 119150 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 260 131008+ fd Linux raid autodetect
/dev/hda2 261 4421 2097144 fd Linux raid autodetect
/dev/hda3 4422 119150 57823416 fd Linux raid autodetect

Disk /dev/hdb: 61.4 GB, 61492838400 bytes
16 heads, 63 sectors/track, 119150 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 260 131008+ fd Linux raid autodetect
/dev/hdb2 261 4421 2097144 fd Linux raid autodetect
/dev/hdb3 4422 119150 57823416 fd Linux raid autodetect

Disk /dev/md2: 59.2 GB, 59210989568 bytes
2 heads, 4 sectors/track, 14455808 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

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

Disk /dev/md0: 2147 MB, 2147221504 bytes
2 heads, 4 sectors/track, 524224 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

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

Disk /dev/md1: 133 MB, 133955584 bytes
2 heads, 4 sectors/track, 32704 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

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



cat mdstat
Personalities : [raid1]
md1 : active raid1 hdb1[1] hda1[0]
130816 blocks [2/2] [UU]

md0 : active raid1 hdb2[1] hda2[0]
2096896 blocks [2/2] [UU]

md2 : active raid1 hdb3[1] hda3[0]
57823232 blocks [2/2] [UU]

unused devices: <none>




what bugs me is the "Disk /dev/md? doesn't contain a valid partition table"


Should I be concerned? Also in future upgrades is there anything I should do before/after to ensure the RAID is correct after the upgrade?
 
Old 05-22-2008, 03:05 AM   #2
Speedy Gonzales
LQ Newbie
 
Registered: Aug 2005
Posts: 8

Rep: Reputation: 0
I have been using RAID 1 for a long time now and as long as BOTH [UU] U's are there it is fully funtional

"cat mdstat
Personalities : [raid1]
md1 : active raid1 hdb1[1] hda1[0]
130816 blocks [2/2] [UU]

md0 : active raid1 hdb2[1] hda2[0]
2096896 blocks [2/2] [UU]

md2 : active raid1 hdb3[1] hda3[0]
57823232 blocks [2/2] [UU]

unused devices: <none>"
 
Old 05-22-2008, 06:27 AM   #3
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Original Poster
Rep: Reputation: 44
thanks. Thats kind of what I had thought.. But the "does not contain a valid partition table" spooked me
 
Old 05-22-2008, 01:05 PM   #4
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Original Poster
Rep: Reputation: 44
i ran a fdisk /dev/md? on each of the devices and came back with this:

fdisk /dev/md2
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.


The number of cylinders for this disk is set to 14455808.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.




all I did was a w(write) and on /dev/md0 amd md1 it synced pretty quickly(small partitions) on md2 it's taking a while. Did I screw up by doing this??
 
Old 05-27-2008, 09:06 AM   #5
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Original Poster
Rep: Reputation: 44
I recreated the RAID1 environment on a test box, complete from install to upgrade and got the same not a valid partition errors, I did the fdisk /dev/md? and did option w(write) and rebooted. So that seemed to work ok.
 
  


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
Correct Fetchmail with IDLE and multiple servers config Nerd2 Linux - Software 3 09-28-2020 08:51 PM
Might I change from Fedora to CentOS in my new servers? guarriman Fedora 2 04-15-2008 07:07 AM
CentOS 5 not querying DNS servers... custangro Red Hat 4 02-02-2008 03:31 PM
NIS on centos - Can't get correct rpcinfo reply hq4ever Linux - Networking 1 05-25-2006 03:34 AM
Upgraded to SuSE 9, is this kernel version correct? Thermodynamic Linux - Software 1 01-24-2004 12:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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