LinuxQuestions.org
Review your favorite Linux distribution.
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 06-23-2009, 03:26 AM   #1
wesley.bruwer
LQ Newbie
 
Registered: Dec 2008
Posts: 8

Rep: Reputation: 0
RAID issues


Hi we have a centOS server running XEN. My problem is that there is 3*500gig HHDs in RAID 5 config. but when I do a df -H I get this:
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/Vol00-SysRoot 51G 30G 19G 62% /
/dev/hda1 255M 18M 225M 8% /boot
/dev/hdb1 255M 6.4M 236M 3% /boot2
/dev/hdc1 255M 6.4M 236M 3% /boot3
tmpfs 4.2G 0 4.2G 0% /dev/shm.
as you can see there is only 50 gig, which is not enough.

The Server was installed by someone else, along with the XEN. Is there something I am missing? because to my knowledge there must be 1TB available.

Please assist.

Last edited by wesley.bruwer; 06-23-2009 at 03:27 AM.
 
Old 06-24-2009, 02:21 AM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,251

Rep: Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026
Are you running that cmd from the host system?
Show the results of

cat /etc/fstab

fdisk -l

both as root.
 
Old 06-25-2009, 01:08 AM   #3
wesley.bruwer
LQ Newbie
 
Registered: Dec 2008
Posts: 8

Original Poster
Rep: Reputation: 0
[root@vmhost2 ~]# cat /etc/fstab
/dev/Vol00/SysRoot / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
LABEL=/boot2 /boot2 ext3 defaults 1 2
LABEL=/boot3 /boot3 ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/Vol00/SysSwap swap swap defaults 0 0

[root@vmhost2 ~]# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 32 257008+ 83 Linux
/dev/sda2 33 60801 488126992+ fd Linux raid autodetect

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 32 257008+ 83 Linux
/dev/sdb2 33 60801 488126992+ fd Linux raid autodetect

Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 * 1 32 257008+ 83 Linux
/dev/sdc2 33 60801 488126992+ fd Linux raid autodetect

Disk /dev/md0: 999.6 GB, 999683522560 bytes
2 heads, 4 sectors/track, 244063360 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md0 doesn't contain a valid partition table
 
Old 06-25-2009, 07:59 AM   #4
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 602

Rep: Reputation: 49
Hi,

The server seems to be running LVM over MD raid.

Could you please inspect (and paste here) the output of

pvdisplay
vgdisplay
lvdisplay
cat /proc/mdstat

Robert
 
Old 06-26-2009, 01:17 AM   #5
wesley.bruwer
LQ Newbie
 
Registered: Dec 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by r0b0 View Post
Hi,

The server seems to be running LVM over MD raid.

Could you please inspect (and paste here) the output of

pvdisplay
vgdisplay
lvdisplay
cat /proc/mdstat

Robert
[root@vmhost2 ~]# pvdisplay
--- Physical volume ---
PV Name /dev/md0
VG Name Vol00
PV Size 931.03 GB / not usable 28.50 MB
Allocatable yes
PE Size (KByte) 32768
Total PE 29792
Free PE 27993
Allocated PE 1799
PV UUID tBqUJz-nh4Z-Z8KF-6Loz-jLYV-aC7K-VKrBdo

[root@vmhost2 ~]#

[root@vmhost2 ~]# vgdisplay
--- Volume group ---
VG Name Vol00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 9
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 4
Open LV 4
Max PV 0
Cur PV 1
Act PV 1
VG Size 931.00 GB
PE Size 32.00 MB
Total PE 29792
Alloc PE / Size 1799 / 56.22 GB
Free PE / Size 27993 / 874.78 GB
VG UUID 4o8SqH-zcc3-13oF-Refy-zve1-ycdm-r5294j

[root@vmhost2 ~]# cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 sdc2[1] sdb2[2] sda2[0]
976253440 blocks level 5, 256k chunk, algorithm 2 [3/3] [UUU]

unused devices: <none>
[root@vmhost2 ~]#

[root@vmhost2 ~]# lvdisplay
--- Logical volume ---
LV Name /dev/Vol00/SysRoot
VG Name Vol00
LV UUID j5AFJU-qBp4-yGm9-WFU1-6k3w-vhPl-K6wcU4
LV Write Access read/write
LV Status available
# open 1
LV Size 48.81 GB
Current LE 1562
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0

--- Logical volume ---
LV Name /dev/Vol00/SysSwap
VG Name Vol00
LV UUID 9oisiU-SqSx-Sn2S-aFat-bJPV-0uF4-a6iWaX
LV Write Access read/write
LV Status available
# open 1
LV Size 2.00 GB
Current LE 64
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1

--- Logical volume ---
LV Name /dev/Vol00/kloxo_vmswap
VG Name Vol00
LV UUID 6tnl1S-NwSh-rIDW-v2BS-lrUE-B8AX-cHEvEU
LV Write Access read/write
LV Status available
# open 1
LV Size 512.00 MB
Current LE 16
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2

--- Logical volume ---
LV Name /dev/Vol00/kloxo_rootimg
VG Name Vol00
LV UUID 3cl9rg-cJ0z-3tCu-9jTc-WGDL-93JB-hrproO
LV Write Access read/write
LV Status available
# open 1
LV Size 4.91 GB
Current LE 157
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:3

[root@vmhost2 ~]#

Last edited by wesley.bruwer; 06-26-2009 at 01:22 AM.
 
Old 06-26-2009, 02:21 AM   #6
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,251

Rep: Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026
Yep, the /proc/mdstat output and this

PV Name /dev/md0
VG Name Vol00
PV Size 931.03 GB / not usable 28.50 MB
Allocatable yes
PE Size (KByte) 32768
Total PE 29792
Free PE 27993
Allocated PE 1799

confirms you've got RAID and only 1799 physical extents allocated out of a total of 29792.

Total size of md0 is ~ 1TB (PV Size 931.03 GB / not usable 28.50 MB) unusable is reserved for LVM hdrs.

http://tldp.org/HOWTO/LVM-HOWTO/
You can pretty much assume LVM v2 there
 
Old 06-26-2009, 02:54 AM   #7
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 602

Rep: Reputation: 49
You have 874.78 GB available to use in your (single) volume group.

You can either extend your existing logical volume Vol00-SysRoot (man lvextend) or create new logical volumes (man lvcreate) and mount them as needed.

Check the LVM howto that Chris linked to, it's very useful.
 
Old 06-26-2009, 10:07 AM   #8
wesley.bruwer
LQ Newbie
 
Registered: Dec 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for the help guys. I got all my hard drive space now.
 
  


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
Software RAID (5) issues BlackRabbit Linux - Software 10 04-27-2008 05:18 PM
RAID Issues gsoft Ubuntu 0 09-11-2007 03:11 AM
RAID Card Issues brokenpromises Linux - Hardware 1 08-17-2007 03:26 PM
Raid issues Sigh Linux - Newbie 1 03-20-2005 09:32 PM
udev + sw raid issues Barx Slackware 0 10-15-2004 06:36 AM


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

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