When I attempt to add a partion by running the following command , I get an error;
[root@voizedge ~]# e2fsck -f /dev/hda2
e2fsck 1.35 (28-Feb-2004)
Couldn't find ext2 superblock, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/hda2
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
Listed below is what my partition shows;
[root@voizedge ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/main-root
9.2G 2.0G 6.8G 23% /
/dev/md1 99M 19M 75M 21% /boot
none 125M 0 125M 0% /dev/shm
[root@voizedge ~]# fdisk -l
Disk /dev/hda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 fd Linux raid autodetect
/dev/hda2 14 1305 10377990 fd Linux raid autodetect
Disk /dev/md1: 106 MB, 106823680 bytes
2 heads, 4 sectors/track, 26080 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md1 doesn't contain a valid partition table
Disk /dev/md2: 10.6 GB, 10626990080 bytes
2 heads, 4 sectors/track, 2594480 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md2 doesn't contain a valid partition table
[root@voizedge ~]# pvdisplay
--- Physical volume ---
PV Name /dev/md2
VG Name main
PV Size 9.88 GB / not usable 0
Allocatable yes
PE Size (KByte) 32768
Total PE 316
Free PE 1
Allocated PE 315
PV UUID beCKMV-1h0r-rtPq-9f8P-lKR2-646o-ICvC1Z
[root@voizedge ~]# lvdisplay
--- Logical volume ---
LV Name /dev/main/root
VG Name main
LV UUID ejGOCz-EKwn-m0wm-20OM-UqCw-KFKV-8CNPLc
LV Write Access read/write
LV Status available
# open 1
LV Size 9.34 GB
Current LE 299
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:0
--- Logical volume ---
LV Name /dev/main/swap
VG Name main
LV UUID jTY63d-6hvS-11Bl-ujwe-rYyU-706f-wzL1sx
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 0
Block device 253:1