I have (had) a P1 233 running software raid 1 and we probably lost a drive in a brownout overnight. At first this was very grim as the box wouldnt even reliably boot (or at least stay booted). Tracked the problem down to the dead hard drive (weirdly boots without it). Got file system corrupt prompt, enter root password to go to shell and fix it.
I an e2fsck and it fixed it.
The box runs a booking system for my wifes business (as in vital-as in vital to be running in 12 hrs time) and has been an evolving "learning experience" for me (they dont pay me so they cant expect full service IT)...
The drive is a 20g maxtor and it doesnt seem to be fully used by esmith (this had previously been bugging me but i ignored it assuming i e-smith for whatever reason didnt find the remaining space). This system has been running 24/7 for 18 months btw.
DF
Filesystem Size Used Avail Use% Mounted on
/dev/md1 9.3G 3.7G 5.2G 41% /
/dev/md0 15M 2.9M 11M 21% /boot
Fdisk says this
Disk /dev/hda: 255 heads, 63 sectors, 2498 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 33 265041 fd Linux raid autodetect
/dev/hda2 34 2498 19800112+ 5 Extended
/dev/hda5 34 35 16033+ fd Linux raid autodetect
/dev/hda6 36 37 16033+ fd Linux raid autodetect
/dev/hda7 38 1268 9887976 fd Linux raid autodetect
I have installed raidmonitor after a backup to desktop
Personalities : [raid1]
read_ahead 1024 sectors
md2 : active raid1 hda1[0] 264960 blocks [2/1] [U_]
md0 : active raid1 hda6[1] hda5[0] 15936 blocks [2/2] [UU]
md1 : active raid1 hda7[0] 9887872 blocks [2/1] [U_]
unused devices: <none>
Current partition info saved in /root/raidmonitor/sfdisk.out:
# partition table of /dev/hda
unit: sectors
/dev/hda1 : start= 63, size= 530082, Id=fd, bootable
/dev/hda2 : start= 530145, size=39600225, Id= 5
/dev/hda3 : start= 0, size= 0, Id= 0
/dev/hda4 : start= 0, size= 0, Id= 0
/dev/hda5 : start= 530208, size= 32067, Id=fd
/dev/hda6 : start= 562338, size= 32067, Id=fd
/dev/hda7 : start= 594468, size=19775952, Id=fd
Am I correct in assuming that there is 10gig of unused space still left there? How can I get at this?
I assume its in half of this part of the disk which is a big extended partition??,
In fact I think the unused bit is from cylinders 1268 to 2498:
/dev/hda2 34 2498 19800112+ 5 Extended
I will be racing out tomorrow and buying another hard disk drive to reconstruct the array on to. fingers crossed that will work. I have binned the P1 233 and replaced it with an asus mobo and celeron (cause i wasnt too sure of the cause and suspected the mobo and the system MUST run tomorrow am).
Am I on the right track with understanding how the drive is partitioned here?
Can I make esmith use it (easily?)
thx in advance
JD