Hi all,
I have a problem to day with an LVM on a machine I have been asked
to "sort out"
I am not too familiar with LVM so wondered if someone could look at my
output and put me straight.
This is what I think I can see:
The VolGroup00 contains 2 physical disks, on is 29.90GB and one at
75.00GB these are on a san. This gives me a LOGVol00 of 102.91GB and a
LogVol01 of 1.94GB according to lvdisplay.
Total LE are 3355 and they are 32M in size this = 104.8GB
It shows I have no extents free so ???
Why can I only see 28G of disk space?
How do I check and create more
space for the root filesystem?
The only thing I can think of is I have exceeded the number of extents allowed?
if so why did it show 3355 in use?
Cheers
Code:
[root@NZAKLEIPWEBRH3 ~]# cat /etc/fstab
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot 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/VolGroup00/LogVol01 swap swap defaults 0 0
[root@NZAKLEIPWEBRH3 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
28G 22G 4.4G 83% /
/dev/sda1 99M 32M 62M 34% /boot
tmpfs 2.0G 0 2.0G 0% /dev/shm
[root@NZAKLEIPWEBRH3 ~]# fdisk -l
Disk /dev/sda: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 3916 31350847+ 8e Linux LVM
Disk /dev/sdc: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 13 104391 83 Linux
/dev/sdc2 14 3916 31350847+ 8e Linux LVM
Disk /dev/sdg: 80.5 GB, 80530636800 bytes
255 heads, 63 sectors/track, 9790 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdg doesn't contain a valid partition table
Disk /dev/sdh: 80.5 GB, 80530636800 bytes
255 heads, 63 sectors/track, 9790 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdh doesn't contain a valid partition table
[root@NZAKLEIPWEBRH3 ~]# pvdisplay
/dev/sdb: read failed after 0 of 4096 at 0: Input/output error
Found duplicate PV pDEdbop5MSsClGwaXKeL3DzKU6HXSDHK: using /dev/sdc2
not /dev/ sda2
/dev/sdd: read failed after 0 of 4096 at 0: Input/output error
/dev/sde: read failed after 0 of 4096 at 0: Input/output error
/dev/sdf: read failed after 0 of 4096 at 0: Input/output error
Found duplicate PV uhQBHbhkUPxQkMg1quWpBuoEk4KrJ6Sa: using /dev/sdh
not /dev/s dg
--- Physical volume ---
PV Name /dev/sdc2
VG Name VolGroup00
PV Size 29.90 GB / not usable 24.06 MB
Allocatable yes (but full)
PE Size (KByte) 32768
Total PE 956
Free PE 0
Allocated PE 956
PV UUID pDEdbo-p5MS-sClG-waXK-eL3D-zKU6-HXSDHK
--- Physical volume ---
PV Name /dev/sdh
VG Name VolGroup00
PV Size 75.00 GB / not usable 32.00 MB
Allocatable yes (but full)
PE Size (KByte) 32768
Total PE 2399
Free PE 0
Allocated PE 2399
PV UUID uhQBHb-hkUP-xQkM-g1qu-WpBu-oEk4-KrJ6Sa
[root@NZAKLEIPWEBRH3 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
28G 22G 4.4G 83% /
/dev/sda1 99M 32M 62M 34% /boot
tmpfs 2.0G 0 2.0G 0% /dev/shm
[root@NZAKLEIPWEBRH3 ~]# lvdisplay
/dev/sdb: read failed after 0 of 4096 at 0: Input/output error
Found duplicate PV pDEdbop5MSsClGwaXKeL3DzKU6HXSDHK: using /dev/sdc2
not /dev/sda2
/dev/sdd: read failed after 0 of 4096 at 0: Input/output error
/dev/sde: read failed after 0 of 4096 at 0: Input/output error
/dev/sdf: read failed after 0 of 4096 at 0: Input/output error
Found duplicate PV uhQBHbhkUPxQkMg1quWpBuoEk4KrJ6Sa: using /dev/sdh
not /dev/sdg
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID 1hSztS-wn5X-10Ok-sxpa-UDOs-6oao-onPRlZ
LV Write Access read/write
LV Status available
# open 2
LV Size 102.91 GB
Current LE 3293
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol01
VG Name VolGroup00
LV UUID 8kSh33-Cls6-y7pg-xHwp-4bbq-3TGX-07gr9Z
LV Write Access read/write
LV Status available
# open 1
LV Size 1.94 GB
Current LE 62
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
[root@NZAKLEIPWEBRH3 ~]# vgdisplay
/dev/sdb: read failed after 0 of 4096 at 0: Input/output error
Found duplicate PV pDEdbop5MSsClGwaXKeL3DzKU6HXSDHK: using /dev/sdc2 not /dev/sda2
/dev/sdd: read failed after 0 of 4096 at 0: Input/output error
/dev/sde: read failed after 0 of 4096 at 0: Input/output error
/dev/sdf: read failed after 0 of 4096 at 0: Input/output error
Found duplicate PV uhQBHbhkUPxQkMg1quWpBuoEk4KrJ6Sa: using /dev/sdh not /dev/sdg
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 5
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 2
Act PV 2
VG Size 104.84 GB
PE Size 32.00 MB
Total PE 3355
Alloc PE / Size 3355 / 104.84 GB
Free PE / Size 0 / 0
VG UUID 3xZhBf-G8nY-Y21L-oO9P-iIf7-S4uQ-fcVfT8