LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-27-2009, 06:53 AM   #1
jimmylam
LQ Newbie
 
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
Help me check Disk configuration


I just completed install new file server but i don't know the disk configuration following is it correct or not, any one can help me.
My server have 4 Sata drive with capacities 400Gb per drive. I had configured SoftwareRaid with boot partition RAID 1 (200 MB), / root partition RAID 5 (1000 GB), Swap partition the rest available. And the configuration like below:


Disk /dev/sda: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00015d2e

Device Boot Start End Blocks Id System
/dev/sda1 * 1 24 192748+ fd Linux raid autodetect
/dev/sda2 25 47439 380860987+ fd Linux raid autodetect
/dev/sda3 47440 48641 9655065 fd Linux raid autodetect

Disk /dev/sdb: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000063b0

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 24 192748+ fd Linux raid autodetect
/dev/sdb2 25 47439 380860987+ fd Linux raid autodetect
/dev/sdb3 47440 48641 9655065 fd Linux raid autodetect

Disk /dev/sdc: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00360045

Device Boot Start End Blocks Id System
/dev/sdc1 * 1 24 192748+ fd Linux raid autodetect
/dev/sdc2 25 47439 380860987+ fd Linux raid autodetect
/dev/sdc3 47440 48641 9655065 fd Linux raid autodetect

Disk /dev/sdd: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x003663f5

Device Boot Start End Blocks Id System
/dev/sdd1 * 1 24 192748+ fd Linux raid autodetect
/dev/sdd2 25 47439 380860987+ fd Linux raid autodetect
/dev/sdd3 47440 48641 9655065 fd Linux raid autodetect

Disk /dev/md0: 197 MB, 197263360 bytes
2 heads, 4 sectors/track, 48160 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0x69205244

This doesn't look like a partition table
Probably you selected the wrong device.

Device Boot Start End Blocks Id System
/dev/md0p1 ? 27266189 240014990 850995205 72 Unknown
Partition 1 does not end on cylinder boundary.
/dev/md0p2 ? 91131273 159128113 271987362 74 Unknown
Partition 2 does not end on cylinder boundary.
/dev/md0p3 ? 21081743 21081743 0 65 Novell Netware 386
Partition 3 does not end on cylinder boundary.
/dev/md0p4 336617473 336623927 25817+ 0 Empty
Partition 4 does not end on cylinder boundary.

Partition table entries are not in disk order

Disk /dev/md1: 1170.0 GB, 1170004574208 bytes
2 heads, 4 sectors/track, 285645648 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0x00000000

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

Disk /dev/md2: 29.6 GB, 29660086272 bytes
2 heads, 4 sectors/track, 7241232 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0x00000000

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



*************************************
*************************************
Is it correct configuration?
 
Old 08-27-2009, 09:22 AM   #2
tommylovell
Member
 
Registered: Nov 2005
Distribution: Fedora, Redhat
Posts: 372

Rep: Reputation: 101Reputation: 101
So far it looks ok. The
Quote:
This doesn't look like a partition table
Probably you selected the wrong device.
is normal. There is no partition table on an MD device. (You probably did an 'fdisk -l'. I think it uses /proc/partitions when you don't explicitly specify a device...)

Try 'cat /proc/mdstat' to see what software RAID thinks.

Code:
[root@athlonz ~]# cat /proc/mdstat
Personalities : [raid1] [raid6] [raid5] [raid4] 
md1 : active raid1 sda5[0] sdb5[1]
      1440026304 blocks [2/2] [UU]
      
md0 : active raid1 sda2[0] sdb2[1]
      25005056 blocks [2/2] [UU]
      
unused devices: <none>
[root@athlonz ~]#
Mine are RAID1 only, but the [UU] part is the important part.
For RAID5, you'll see more devices comprising the MD device, and more U's.
 
Old 08-27-2009, 09:30 AM   #3
tommylovell
Member
 
Registered: Nov 2005
Distribution: Fedora, Redhat
Posts: 372

Rep: Reputation: 101Reputation: 101
A question.

Are you using LVM or not? You would'nt want to do it for your boot partition, IMO. But it would make sense for the RAID5 MD device to be an LVM Physical Volume (PV) with a Volume Group (VG) with multiple Logical Volumes (LV) in it.

Although that would conceptually complicate matters, and at the moment you may want to keep it simpler...
 
  


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
how to check sever configuration zoffmann Linux - Server 14 12-20-2007 05:47 PM
Disk check takes too long to check hemantm Linux - Hardware 16 12-22-2006 05:18 AM
hardware configuration check uburaks Linux - General 1 02-01-2006 07:11 AM
how to check processor configuration imezsons Linux - Hardware 1 12-28-2004 09:21 AM
Boot disk; check. CD in drive; check. Doesn't work; check. Hal DamnSmallLinux 7 02-04-2004 03:10 AM


All times are GMT -5. The time now is 11:03 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration