sofware raid does not show the full partition size on disk
Hi,
I have two hard disks hda and hdc.
The partition sizes are as follows according to cfdisk.
Disk Drive: /dev/hda
Size: 80026361856 bytes, 80.0 GB
Heads: 255 Sectors per Track: 63 Cylinders: 9729
Name Flags Part Type FS Type [Label] Size (MB)
------------------------------------------------------------------------------
hda1 Primary Linux 1998.75
hda2 Primary Linux ext3 [/boot] 246.76
hda3 Primary Linux XFS [/] 1003.49
hda5 Logical Linux XFS [/usr] 5000.98
hda6 Logical Linux XFS [/home] 1003.49
hda7 Logical Linux XFS [/tmp] 1998.75
hda8 Logical Linux XFS [/var] 68771.57
Disk Drive: /dev/hdc
Size: 80026361856 bytes, 80.0 GB
Heads: 255 Sectors per Track: 63 Cylinders: 9729
Name Flags Part Type FS Type [Label] Size (MB)
------------------------------------------------------------------------------
hdc1 Primary Linux 1998.75
hdc2 Primary Linux ext3 [/boot] 246.76
hdc3 Primary Linux XFS [/] 1003.49
hdc5 Logical Linux XFS [/usr] 5000.98
hdc6 Logical Linux XFS [/home] 1003.49
hdc7 Logical Linux XFS [/tmp] 1998.75
hdc8 Logical Linux XFS [/var] 68771.57
hda8 and hdc8 are on software raid mirror /dev/md6
~# cat /etc/mdadm/mdadm.conf
DEVICE partitions
ARRAY /dev/md6 level=raid1 num-devices=2 UUID=f6debdab:76d34e2d:7e8db578:e8db3dc4
devices=/dev/hda8,/dev/hdc8
ARRAY /dev/md5 level=raid1 num-devices=2 UUID=d438c76c:d29c0811:0cfc052a:e0eed988
devices=/dev/hda7,/dev/hdc7
ARRAY /dev/md4 level=raid1 num-devices=2 UUID=c37c568f:32c73928:49bed01e:9214483f
devices=/dev/hda6,/dev/hdc6
ARRAY /dev/md3 level=raid1 num-devices=2 UUID=c66cb3b4:59dc9f4b:c3da7513:05f2b354
devices=/dev/hda5,/dev/hdc5
ARRAY /dev/md2 level=raid1 num-devices=2 UUID=d3961694:ca8acacd:25036ae2:c51d61df
devices=/dev/hda3,/dev/hdc3
ARRAY /dev/md1 level=raid1 num-devices=2 UUID=8ba80739:86d98a6a:4a3e48f7:f0226209
devices=/dev/hda2,/dev/hdc2
ARRAY /dev/md0 level=raid1 num-devices=2 UUID=906563d9:d4d4d5f0:2c0d34c4:290fe27e
devices=/dev/hda1,/dev/hdc1
MAILADDR root
but when I take the details of /dev/md6 with df it shows only 27 GB instead of 67GB
~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md2 953M 519M 435M 55% /
tmpfs 237M 0 237M 0% /lib/init/rw
tmpfs 237M 0 237M 0% /dev/shm
/dev/md1 221M 11M 199M 6% /boot
/dev/md4 953M 39M 914M 5% /home
/dev/md5 1.9G 1.6M 1.9G 1% /tmp
/dev/md3 4.7G 1.1G 3.7G 23% /usr
/dev/md6 27G 23G 4.3G 85% /var
Why is this?
How Can I reclaim the other 40GB of space onmy system on software raid?
thanks
Siju
Reply to: