Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Linux

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 04-14-2008, 10:50 PM
Diego
Newsgroup Contributor
 
Posts: n/a
hard drive size on a raid 1 array

Hi all,

I have two 500 GB hard drives that are configured in a raid 1 array.
They are partitioned into two: a 2gb swap partition and a 498gb
partition (mounted as /).

My problem is as follows:

When I do df -h I get the following:
Filesystem Size Used Avail Use% Mounted on
/dev/md0 19G 9.8G 7.8G 56% /
varrun 1013M 128K 1013M 1% /var/run
varlock 1013M 0 1013M 0% /var/lock
udev 1013M 80K 1013M 1% /dev
devshm 1013M 0 1013M 0% /dev/shm
lrm 1013M 34M 979M 4% /lib/modules/2.6.22-14-
generic/volatile

md0 should be 498gb, not 20!!

I tried using fdisk (but I don't really know how to use it that well)
And I print the following:

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 60557 486424071 fd Linux raid
autodetect
/dev/sdb2 60558 60801 1959930 fd Linux raid
autodetect

Device Boot Start End Blocks Id System
/dev/sda1 * 1 60557 486424071 fd Linux raid
autodetect
/dev/sda2 60558 60801 1959930 fd Linux raid
autodetect

Further information:

$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/md0
UUID=3130e988-88a8-4e87-8b85-7a267904a370 / ext3
defaults,errors=remount-ro 0 1
# /dev/md1
UUID=8e35bf5c-6501-49fa-960e-ac3f589ffa1b none swap
sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec 0 0

$ swapon -s
Filename Type Size
Used Priority
/dev/md1 partition 1959800
34756 -1

$ free
total used free shared buffers
cached
Mem: 2074372 1124088 950284 0 80548
909980
-/+ buffers/cache: 133560 1940812
Swap: 1959800 34756 1925044

$ lsmod
Module Size Used by
af_packet 24840 2
vmnet 39092 13
vmmon 1825708 8
rfcomm 42136 2
l2cap 26240 11 rfcomm
bluetooth 57060 4 rfcomm,l2cap
ppdev 10244 0
ipv6 273892 14
acpi_cpufreq 10568 1
cpufreq_stats 7232 0
cpufreq_ondemand 9612 1
cpufreq_conservative 8072 0
freq_table 5792 3
acpi_cpufreq,cpufreq_stats,cpufreq_ondemand
cpufreq_userspace 5280 0
cpufreq_powersave 2688 0
sbs 19592 0
video 18060 0
ac 6148 0
button 8976 0
container 5504 0
dock 10656 0
battery 11012 0
lp 12580 0
loop 19076 0
psmouse 39952 0
parport_pc 37412 1
parport 37448 3 ppdev,lp,parport_pc
pcspkr 4224 0
shpchp 34580 0
pci_hotplug 32704 1 shpchp
evdev 11136 2
ext3 133896 1
jbd 60456 1 ext3
mbcache 9732 1 ext3
sg 36764 0
sr_mod 17828 1
cdrom 37536 1 sr_mod
sd_mod 30336 6
usbhid 29536 0
hid 28928 1 usbhid
ata_generic 8452 0
floppy 60004 0
ahci 23300 4
pata_it8213 9348 1
e1000 126272 0
libata 125168 3 ata_generic,ahci,pata_it8213
scsi_mod 147084 4 sg,sr_mod,sd_mod,libata
ehci_hcd 36492 0
uhci_hcd 26640 0
usbcore 138632 4 usbhid,ehci_hcd,uhci_hcd
raid10 26496 0
raid456 128016 0
xor 16904 1 raid456
raid1 25984 2
raid0 9728 0
multipath 9984 0
linear 7552 0
md_mod 82324 9
raid10,raid456,raid1,raid0,multipath,linear
thermal 14344 0
processor 32072 2 acpi_cpufreq,thermal
fan 5764 0
fuse 47124 1
apparmor 40728 0
commoncap 8320 1 apparmor

$ du -h --max-depth=1 /
156M /lib
4.0K /srv
4.0K /opt
236K /dev
4.7M /bin
12K /media
0 /sys
40K /root
4.0K /initrd
0 /proc
7.9M /home
9.5M /etc
322M /var
2.1G /usr
18M /boot
16K /lost+found
6.4M /sbin
20K /tmp
4.0K /mnt
2.6G /

$ cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5]
[raid4] [raid10]
md1 : active raid1 sda2[0] sdb2[1]
1959808 blocks [2/2] [UU]

md0 : active raid1 sda1[0] sdb1[1]
486424000 blocks [2/2] [UU]

unused devices: <none>

Very strange is the following:

# mount /dev/md0
mount: /dev/md0 already mounted or / busy
mount: according to mtab, /dev/md0 is already mounted on /

# mount /dev/md1
mount: mount point none does not exist
(must be swap?)

# fdisk /dev/md1
p

Warning: invalid flag 0x0000 of partition table 4 will be corrected by
w(rite)

Command (m for help): p

Disk /dev/md1: 2006 MB, 2006843392 bytes
2 heads, 4 sectors/track, 489952 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0xd436a49e

Device Boot Start End Blocks Id System

# fdisk /dev/md0
p
Warning: invalid flag 0x0000 of partition table 4 will be corrected by
w(rite)

Command (m for help): p

Disk /dev/md0: 498.0 GB, 498098176000 bytes
2 heads, 4 sectors/track, 121606000 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0xfe9d38d6

Device Boot Start End Blocks Id System

So, according to this, / should be 498 GB..
But it's only 20..

Any ideas?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 04-14-2008, 10:50 PM
  #2 (permalink)  
Old 04-15-2008, 06:00 PM
Diego
Newsgroup Contributor
 
Posts: n/a
Re: hard drive size on a raid 1 array

On Apr 15, 3:46 pm, Diego <ivans.addr...******.com> wrote:
> Hi all,
>
> I have two 500 GB hard drives that are configured in a raid 1 array.
> They are partitioned into two: a 2gb swap partition and a 498gb
> partition (mounted as /).
>
> My problem is as follows:
>
> When I do df -h I get the following:
> Filesystem Size Used Avail Use% Mounted on
> /dev/md0 19G 9.8G 7.8G 56% /
> varrun 1013M 128K 1013M 1% /var/run
> varlock 1013M 0 1013M 0% /var/lock
> udev 1013M 80K 1013M 1% /dev
> devshm 1013M 0 1013M 0% /dev/shm
> lrm 1013M 34M 979M 4% /lib/modules/2.6.22-14-
> generic/volatile
>
> md0 should be 498gb, not 20!!
>
> I tried using fdisk (but I don't really know how to use it that well)
> And I print the following:
>
> Device Boot Start End Blocks Id System
> /dev/sdb1 * 1 60557 486424071 fd Linux raid
> autodetect
> /dev/sdb2 60558 60801 1959930 fd Linux raid
> autodetect
>
> Device Boot Start End Blocks Id System
> /dev/sda1 * 1 60557 486424071 fd Linux raid
> autodetect
> /dev/sda2 60558 60801 1959930 fd Linux raid
> autodetect
>
> Further information:
>
> $ cat /etc/fstab
> # /etc/fstab: static file system information.
> #
> # <file system> <mount point> <type> <options> <dump> <pass>
> proc /proc proc defaults 0 0
> # /dev/md0
> UUID=3130e988-88a8-4e87-8b85-7a267904a370 / ext3
> defaults,errors=remount-ro 0 1
> # /dev/md1
> UUID=8e35bf5c-6501-49fa-960e-ac3f589ffa1b none swap
> sw 0 0
> /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
> /dev/fd0 /media/floppy0 auto rw,user,noauto,exec 0 0
>
> $ swapon -s
> Filename Type Size
> Used Priority
> /dev/md1 partition 1959800
> 34756 -1
>
> $ free
> total used free shared buffers
> cached
> Mem: 2074372 1124088 950284 0 80548
> 909980
> -/+ buffers/cache: 133560 1940812
> Swap: 1959800 34756 1925044
>
> $ lsmod
> Module Size Used by
> af_packet 24840 2
> vmnet 39092 13
> vmmon 1825708 8
> rfcomm 42136 2
> l2cap 26240 11 rfcomm
> bluetooth 57060 4 rfcomm,l2cap
> ppdev 10244 0
> ipv6 273892 14
> acpi_cpufreq 10568 1
> cpufreq_stats 7232 0
> cpufreq_ondemand 9612 1
> cpufreq_conservative 8072 0
> freq_table 5792 3
> acpi_cpufreq,cpufreq_stats,cpufreq_ondemand
> cpufreq_userspace 5280 0
> cpufreq_powersave 2688 0
> sbs 19592 0
> video 18060 0
> ac 6148 0
> button 8976 0
> container 5504 0
> dock 10656 0
> battery 11012 0
> lp 12580 0
> loop 19076 0
> psmouse 39952 0
> parport_pc 37412 1
> parport 37448 3 ppdev,lp,parport_pc
> pcspkr 4224 0
> shpchp 34580 0
> pci_hotplug 32704 1 shpchp
> evdev 11136 2
> ext3 133896 1
> jbd 60456 1 ext3
> mbcache 9732 1 ext3
> sg 36764 0
> sr_mod 17828 1
> cdrom 37536 1 sr_mod
> sd_mod 30336 6
> usbhid 29536 0
> hid 28928 1 usbhid
> ata_generic 8452 0
> floppy 60004 0
> ahci 23300 4
> pata_it8213 9348 1
> e1000 126272 0
> libata 125168 3 ata_generic,ahci,pata_it8213
> scsi_mod 147084 4 sg,sr_mod,sd_mod,libata
> ehci_hcd 36492 0
> uhci_hcd 26640 0
> usbcore 138632 4 usbhid,ehci_hcd,uhci_hcd
> raid10 26496 0
> raid456 128016 0
> xor 16904 1 raid456
> raid1 25984 2
> raid0 9728 0
> multipath 9984 0
> linear 7552 0
> md_mod 82324 9
> raid10,raid456,raid1,raid0,multipath,linear
> thermal 14344 0
> processor 32072 2 acpi_cpufreq,thermal
> fan 5764 0
> fuse 47124 1
> apparmor 40728 0
> commoncap 8320 1 apparmor
>
> $ du -h --max-depth=1 /
> 156M /lib
> 4.0K /srv
> 4.0K /opt
> 236K /dev
> 4.7M /bin
> 12K /media
> 0 /sys
> 40K /root
> 4.0K /initrd
> 0 /proc
> 7.9M /home
> 9.5M /etc
> 322M /var
> 2.1G /usr
> 18M /boot
> 16K /lost+found
> 6.4M /sbin
> 20K /tmp
> 4.0K /mnt
> 2.6G /
>
> $ cat /proc/mdstat
> Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5]
> [raid4] [raid10]
> md1 : active raid1 sda2[0] sdb2[1]
> 1959808 blocks [2/2] [UU]
>
> md0 : active raid1 sda1[0] sdb1[1]
> 486424000 blocks [2/2] [UU]
>
> unused devices: <none>
>
> Very strange is the following:
>
> # mount /dev/md0
> mount: /dev/md0 already mounted or / busy
> mount: according to mtab, /dev/md0 is already mounted on /
>
> # mount /dev/md1
> mount: mount point none does not exist
> (must be swap?)
>
> # fdisk /dev/md1
> p
>
> Warning: invalid flag 0x0000 of partition table 4 will be corrected by
> w(rite)
>
> Command (m for help): p
>
> Disk /dev/md1: 2006 MB, 2006843392 bytes
> 2 heads, 4 sectors/track, 489952 cylinders
> Units = cylinders of 8 * 512 = 4096 bytes
> Disk identifier: 0xd436a49e
>
> Device Boot Start End Blocks Id System
>
> # fdisk /dev/md0
> p
> Warning: invalid flag 0x0000 of partition table 4 will be corrected by
> w(rite)
>
> Command (m for help): p
>
> Disk /dev/md0: 498.0 GB, 498098176000 bytes
> 2 heads, 4 sectors/track, 121606000 cylinders
> Units = cylinders of 8 * 512 = 4096 bytes
> Disk identifier: 0xfe9d38d6
>
> Device Boot Start End Blocks Id System
>
> So, according to this, / should be 498 GB..
> But it's only 20..
>
> Any ideas?


Fixed the issue --


# resize2fs -f /dev/md0 400000M
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 04-17-2008, 01:10 PM
goarilla
Newsgroup Contributor
 
Posts: n/a
Re: hard drive size on a raid 1 array

Diego wrote:
> On Apr 15, 3:46 pm, Diego <ivans.addr...******.com> wrote:
>> Hi all,
>>
>> I have two 500 GB hard drives that are configured in a raid 1 array.
>> They are partitioned into two: a 2gb swap partition and a 498gb
>> partition (mounted as /).
>>
>> My problem is as follows:
>>
>> When I do df -h I get the following:
>> Filesystem Size Used Avail Use% Mounted on
>> /dev/md0 19G 9.8G 7.8G 56% /
>> varrun 1013M 128K 1013M 1% /var/run
>> varlock 1013M 0 1013M 0% /var/lock
>> udev 1013M 80K 1013M 1% /dev
>> devshm 1013M 0 1013M 0% /dev/shm
>> lrm 1013M 34M 979M 4% /lib/modules/2.6.22-14-
>> generic/volatile
>>
>> md0 should be 498gb, not 20!!
>>
>> I tried using fdisk (but I don't really know how to use it that well)
>> And I print the following:
>>
>> Device Boot Start End Blocks Id System
>> /dev/sdb1 * 1 60557 486424071 fd Linux raid
>> autodetect
>> /dev/sdb2 60558 60801 1959930 fd Linux raid
>> autodetect
>>
>> Device Boot Start End Blocks Id System
>> /dev/sda1 * 1 60557 486424071 fd Linux raid
>> autodetect
>> /dev/sda2 60558 60801 1959930 fd Linux raid
>> autodetect
>>
>> Further information:
>>
>> $ cat /etc/fstab
>> # /etc/fstab: static file system information.
>> #
>> # <file system> <mount point> <type> <options> <dump> <pass>
>> proc /proc proc defaults 0 0
>> # /dev/md0
>> UUID=3130e988-88a8-4e87-8b85-7a267904a370 / ext3
>> defaults,errors=remount-ro 0 1
>> # /dev/md1
>> UUID=8e35bf5c-6501-49fa-960e-ac3f589ffa1b none swap
>> sw 0 0
>> /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
>> /dev/fd0 /media/floppy0 auto rw,user,noauto,exec 0 0
>>
>> $ swapon -s
>> Filename Type Size
>> Used Priority
>> /dev/md1 partition 1959800
>> 34756 -1
>>
>> $ free
>> total used free shared buffers
>> cached
>> Mem: 2074372 1124088 950284 0 80548
>> 909980
>> -/+ buffers/cache: 133560 1940812
>> Swap: 1959800 34756 1925044
>>
>> $ lsmod
>> Module Size Used by
>> af_packet 24840 2
>> vmnet 39092 13
>> vmmon 1825708 8
>> rfcomm 42136 2
>> l2cap 26240 11 rfcomm
>> bluetooth 57060 4 rfcomm,l2cap
>> ppdev 10244 0
>> ipv6 273892 14
>> acpi_cpufreq 10568 1
>> cpufreq_stats 7232 0
>> cpufreq_ondemand 9612 1
>> cpufreq_conservative 8072 0
>> freq_table 5792 3
>> acpi_cpufreq,cpufreq_stats,cpufreq_ondemand
>> cpufreq_userspace 5280 0
>> cpufreq_powersave 2688 0
>> sbs 19592 0
>> video 18060 0
>> ac 6148 0
>> button 8976 0
>> container 5504 0
>> dock 10656 0
>> battery 11012 0
>> lp 12580 0
>> loop 19076 0
>> psmouse 39952 0
>> parport_pc 37412 1
>> parport 37448 3 ppdev,lp,parport_pc
>> pcspkr 4224 0
>> shpchp 34580 0
>> pci_hotplug 32704 1 shpchp
>> evdev 11136 2
>> ext3 133896 1
>> jbd 60456 1 ext3
>> mbcache 9732 1 ext3
>> sg 36764 0
>> sr_mod 17828 1
>> cdrom 37536 1 sr_mod
>> sd_mod 30336 6
>> usbhid 29536 0
>> hid 28928 1 usbhid
>> ata_generic 8452 0
>> floppy 60004 0
>> ahci 23300 4
>> pata_it8213 9348 1
>> e1000 126272 0
>> libata 125168 3 ata_generic,ahci,pata_it8213
>> scsi_mod 147084 4 sg,sr_mod,sd_mod,libata
>> ehci_hcd 36492 0
>> uhci_hcd 26640 0
>> usbcore 138632 4 usbhid,ehci_hcd,uhci_hcd
>> raid10 26496 0
>> raid456 128016 0
>> xor 16904 1 raid456
>> raid1 25984 2
>> raid0 9728 0
>> multipath 9984 0
>> linear 7552 0
>> md_mod 82324 9
>> raid10,raid456,raid1,raid0,multipath,linear
>> thermal 14344 0
>> processor 32072 2 acpi_cpufreq,thermal
>> fan 5764 0
>> fuse 47124 1
>> apparmor 40728 0
>> commoncap 8320 1 apparmor
>>
>> $ du -h --max-depth=1 /
>> 156M /lib
>> 4.0K /srv
>> 4.0K /opt
>> 236K /dev
>> 4.7M /bin
>> 12K /media
>> 0 /sys
>> 40K /root
>> 4.0K /initrd
>> 0 /proc
>> 7.9M /home
>> 9.5M /etc
>> 322M /var
>> 2.1G /usr
>> 18M /boot
>> 16K /lost+found
>> 6.4M /sbin
>> 20K /tmp
>> 4.0K /mnt
>> 2.6G /
>>
>> $ cat /proc/mdstat
>> Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5]
>> [raid4] [raid10]
>> md1 : active raid1 sda2[0] sdb2[1]
>> 1959808 blocks [2/2] [UU]
>>
>> md0 : active raid1 sda1[0] sdb1[1]
>> 486424000 blocks [2/2] [UU]
>>
>> unused devices: <none>
>>
>> Very strange is the following:
>>
>> # mount /dev/md0
>> mount: /dev/md0 already mounted or / busy
>> mount: according to mtab, /dev/md0 is already mounted on /
>>
>> # mount /dev/md1
>> mount: mount point none does not exist
>> (must be swap?)
>>
>> # fdisk /dev/md1
>> p
>>
>> Warning: invalid flag 0x0000 of partition table 4 will be corrected by
>> w(rite)
>>
>> Command (m for help): p
>>
>> Disk /dev/md1: 2006 MB, 2006843392 bytes
>> 2 heads, 4 sectors/track, 489952 cylinders
>> Units = cylinders of 8 * 512 = 4096 bytes
>> Disk identifier: 0xd436a49e
>>
>> Device Boot Start End Blocks Id System
>>
>> # fdisk /dev/md0
>> p
>> Warning: invalid flag 0x0000 of partition table 4 will be corrected by
>> w(rite)
>>
>> Command (m for help): p
>>
>> Disk /dev/md0: 498.0 GB, 498098176000 bytes
>> 2 heads, 4 sectors/track, 121606000 cylinders
>> Units = cylinders of 8 * 512 = 4096 bytes
>> Disk identifier: 0xfe9d38d6
>>
>> Device Boot Start End Blocks Id System
>>
>> So, according to this, / should be 498 GB..
>> But it's only 20..
>>
>> Any ideas?

>
> Fixed the issue --
>
>
> # resize2fs -f /dev/md0 400000M

did you migrated an old system to a new raid system or did you
installed a new system on a new software raid ?

if it's the first
do you have some good info for that ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 04-17-2008, 08:20 PM
Diego
Newsgroup Contributor
 
Posts: n/a
Re: hard drive size on a raid 1 array

On Apr 18, 6:00 am, "goarilla <\"kevin<punt>paulus|\"@|skynet" <"punt>
wrote:
> Diego wrote:
> > On Apr 15, 3:46 pm, Diego <ivans.addr...******.com> wrote:
> >> Hi all,

>
> >> I have two 500 GB hard drives that are configured in a raid 1 array.
> >> They are partitioned into two: a 2gb swap partition and a 498gb
> >> partition (mounted as /).

>
> >> My problem is as follows:

>
> >> When I do df -h I get the following:
> >> Filesystem Size Used Avail Use% Mounted on
> >> /dev/md0 19G 9.8G 7.8G 56% /
> >> varrun 1013M 128K 1013M 1% /var/run
> >> varlock 1013M 0 1013M 0% /var/lock
> >> udev 1013M 80K 1013M 1% /dev
> >> devshm 1013M 0 1013M 0% /dev/shm
> >> lrm 1013M 34M 979M 4% /lib/modules/2.6.22-14-
> >> generic/volatile

>
> >> md0 should be 498gb, not 20!!

>
> >> I tried using fdisk (but I don't really know how to use it that well)
> >> And I print the following:

>
> >> Device Boot Start End Blocks Id System
> >> /dev/sdb1 * 1 60557 486424071 fd Linux raid
> >> autodetect
> >> /dev/sdb2 60558 60801 1959930 fd Linux raid
> >> autodetect

>
> >> Device Boot Start End Blocks Id System
> >> /dev/sda1 * 1 60557 486424071 fd Linux raid
> >> autodetect
> >> /dev/sda2 60558 60801 1959930 fd Linux raid
> >> autodetect

>
> >> Further information:

>
> >> $ cat /etc/fstab
> >> # /etc/fstab: static file system information.
> >> #
> >> # <file system> <mount point> <type> <options> <dump> <pass>
> >> proc /proc proc defaults 0 0
> >> # /dev/md0
> >> UUID=3130e988-88a8-4e87-8b85-7a267904a370 / ext3
> >> defaults,errors=remount-ro 0 1
> >> # /dev/md1
> >> UUID=8e35bf5c-6501-49fa-960e-ac3f589ffa1b none swap
> >> sw 0 0
> >> /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
> >> /dev/fd0 /media/floppy0 auto rw,user,noauto,exec 0 0

>
> >> $ swapon -s
> >> Filename Type Size
> >> Used Priority
> >> /dev/md1 partition 1959800
> >> 34756 -1

>
> >> $ free
> >> total used free shared buffers
> >> cached
> >> Mem: 2074372 1124088 950284 0 80548
> >> 909980
> >> -/+ buffers/cache: 133560 1940812
> >> Swap: 1959800 34756 1925044

>
> >> $ lsmod
> >> Module Size Used by
> >> af_packet 24840 2
> >> vmnet 39092 13
> >> vmmon 1825708 8
> >> rfcomm 42136 2
> >> l2cap 26240 11 rfcomm
> >> bluetooth 57060 4 rfcomm,l2cap
> >> ppdev 10244 0
> >> ipv6 273892 14
> >> acpi_cpufreq 10568 1
> >> cpufreq_stats 7232 0
> >> cpufreq_ondemand 9612 1
> >> cpufreq_conservative 8072 0
> >> freq_table 5792 3
> >> acpi_cpufreq,cpufreq_stats,cpufreq_ondemand
> >> cpufreq_userspace 5280 0
> >> cpufreq_powersave 2688 0
> >> sbs 19592 0
> >> video 18060 0
> >> ac 6148 0
> >> button 8976 0
> >> container 5504 0
> >> dock 10656 0
> >> battery 11012 0
> >> lp 12580 0
> >> loop 19076 0
> >> psmouse 39952 0
> >> parport_pc 37412 1
> >> parport 37448 3 ppdev,lp,parport_pc
> >> pcspkr 4224 0
> >> shpchp 34580 0
> >> pci_hotplug 32704 1 shpchp
> >> evdev 11136 2
> >> ext3 133896 1
> >> jbd 60456 1 ext3
> >> mbcache 9732 1 ext3
> >> sg 36764 0
> >> sr_mod 17828 1
> >> cdrom 37536 1 sr_mod
> >> sd_mod 30336 6
> >> usbhid 29536 0
> >> hid 28928 1 usbhid
> >> ata_generic 8452 0
> >> floppy 60004 0
> >> ahci 23300 4
> >> pata_it8213 9348 1
> >> e1000 126272 0
> >> libata 125168 3 ata_generic,ahci,pata_it8213
> >> scsi_mod 147084 4 sg,sr_mod,sd_mod,libata
> >> ehci_hcd 36492 0
> >> uhci_hcd 26640 0
> >> usbcore 138632 4 usbhid,ehci_hcd,uhci_hcd
> >> raid10 26496 0
> >> raid456 128016 0
> >> xor 16904 1 raid456
> >> raid1 25984 2
> >> raid0 9728 0
> >> multipath 9984 0
> >> linear 7552 0
> >> md_mod 82324 9
> >> raid10,raid456,raid1,raid0,multipath,linear
> >> thermal 14344 0
> >> processor 32072 2 acpi_cpufreq,thermal
> >> fan 5764 0
> >> fuse 47124 1
> >> apparmor 40728 0
> >> commoncap 8320 1 apparmor

>
> >> $ du -h --max-depth=1 /
> >> 156M /lib
> >> 4.0K /srv
> >> 4.0K /opt
> >> 236K /dev
> >> 4.7M /bin
> >> 12K /media
> >> 0 /sys
> >> 40K /root
> >> 4.0K /initrd
> >> 0 /proc
> >> 7.9M /home
> >> 9.5M /etc
> >> 322M /var
> >> 2.1G /usr
> >> 18M /boot
> >> 16K /lost+found
> >> 6.4M /sbin
> >> 20K /tmp
> >> 4.0K /mnt
> >> 2.6G /

>
> >> $ cat /proc/mdstat
> >> Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5]
> >> [raid4] [raid10]
> >> md1 : active raid1 sda2[0] sdb2[1]
> >> 1959808 blocks [2/2] [UU]

>
> >> md0 : active raid1 sda1[0] sdb1[1]
> >> 486424000 blocks [2/2] [UU]

>
> >> unused devices: <none>

>
> >> Very strange is the following:

>
> >> # mount /dev/md0
> >> mount: /dev/md0 already mounted or / busy
> >> mount: according to mtab, /dev/md0 is already mounted on /

>
> >> # mount /dev/md1
> >> mount: mount point none does not exist
> >> (must be swap?)

>
> >> # fdisk /dev/md1
> >> p

>
> >> Warning: invalid flag 0x0000 of partition table 4 will be corrected by
> >> w(rite)

>
> >> Command (m for help): p

>
> >> Disk /dev/md1: 2006 MB, 2006843392 bytes
> >> 2 heads, 4 sectors/track, 489952 cylinders
> >> Units = cylinders of 8 * 512 = 4096 bytes
> >> Disk identifier: 0xd436a49e

>
> >> Device Boot Start End Blocks Id System

>
> >> # fdisk /dev/md0
> >> p
> >> Warning: invalid flag 0x0000 of partition table 4 will be corrected by
> >> w(rite)

>
> >> Command (m for help): p

>
> >> Disk /dev/md0: 498.0 GB, 498098176000 bytes
> >> 2 heads, 4 sectors/track, 121606000 cylinders
> >> Units = cylinders of 8 * 512 = 4096 bytes
> >> Disk identifier: 0xfe9d38d6

>
> >> Device Boot Start End Blocks Id System

>
> >> So, according to this, / should be 498 GB..
> >> But it's only 20..

>
> >> Any ideas?

>
> > Fixed the issue --

>
> > # resize2fs -f /dev/md0 400000M

>
> did you migrated an old system to a new raid system or did you
> installed a new system on a new software raid ?
>
> if it's the first
> do you have some good info for that ?


Hi there..

It was a combination of the two..
I built an entyrely new system and copied the old VMs across..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
re-building a raid array Ivan Linux 0 03-13-2008 07:11 PM
re-building a raid array Ivan Linux 0 03-13-2008 07:11 PM
RAID array sizes... Calab Linux 1 01-08-2008 08:11 AM
RAID 5 - /boot can't exist on a RAID 5 array? Other questions... Noozer Linux 7 11-14-2007 09:00 PM
RAID array will not spin down. crispin.proctor@gmail.com Vista Hardware 0 09-02-2007 01:30 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 09:38 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0