I searched the web and found a couple of how to's the links are:
http://www.unix-tutorials.com/go.php?id=333 (this one shows the LVM tools GUI)
and
http://www.tldp.org/HOWTO/LVM-HOWTO/index.html (this one explains the concepts and useage of the LVM... also explains what files are needed and how to run commands)
It appears as though I can fix this by running the following commands: (from
http://www.tldp.org/HOWTO/LVM-HOWTO/removeadisk.html)
# pvcreate /dev/sdf // to prep the disk
# vgextend dev /dev/sdf // to exend the partition
#pvmove /dev/hdb /dev/sdf // to move data from one disk to another
# vgreduce dev /dev/hdb // to remove from system; as per my understanding of the directions, this should make the disk ready for removal or reallocation of disk space.
Then it appears I need to create a new volume by:
Code:
# pvcreate /dev/hdb
which should create a volume group descriptor at the start of disk.
Then running
Code:
# dd if=/dev/zero of=/dev/diskname bs=1k count=1
Code:
# blockdev --rereadpt /dev/diskname
the page
http://www.tldp.org/HOWTO/LVM-HOWTO/initdisks.html warns
Quote:
|
The following commands will destroy the partition table on the disk being operated on. Be very sure it is the correct disk.
|
Then I'll need to create a new partition by running
Code:
# pvcreate /dev/hdb1
Then run
Code:
# vgcreate my_volume_group /dev/hda1 /dev/hdb1
to make a new group.
*NOTE*
The web page
http://www.tldp.org/HOWTO/LVM-HOWTO/createvgs.html states there is a different command for LVM v1
I ran
to check which version I had, and recived
Code:
LVM version: 2.02.06 (2006-05-12)
Library version: 1.02.07 (2006-05-11)
Driver version: 4.7.0
so the command should work.
The command
Code:
# vgchange -a y my_volume_group
should activate the volume.
Then it looks like I can run
Code:
# lvcreate -L 1500 -ntestlv testvg /dev/sdg
to create a partition volume in a logical volume to be allocated from a specific physical volume in the volume group (/dev/sdg)
That should repair my wrongly sized volume?
By running
I recived this list of commands
Code:
Available lvm commands:
Use 'lvm help <command>' for more information
dumpconfig Dump active configuration
formats List available metadata formats
help Display help for commands
lvchange Change the attributes of logical volume(s)
lvconvert Change logical volume layout
lvcreate Create a logical volume
lvdisplay Display information about a logical volume
lvextend Add space to a logical volume
lvmchange With the device mapper, this is obsolete and does nothing.
lvmdiskscan List devices that may be used as physical volumes
lvmsadc Collect activity data
lvmsar Create activity report
lvreduce Reduce the size of a logical volume
lvremove Remove logical volume(s) from the system
lvrename Rename a logical volume
lvresize Resize a logical volume
lvs Display information about logical volumes
lvscan List all logical volumes in all volume groups
pvchange Change attributes of physical volume(s)
pvresize Resize physical volume(s)
pvcreate Initialize physical volume(s) for use by LVM
pvdata Display the on-disk metadata for physical volume(s)
pvdisplay Display various attributes of physical volume(s)
pvmove Move extents from one physical volume to another
pvremove Remove LVM label(s) from physical volume(s)
pvs Display information about physical volumes
pvscan List all physical volumes
segtypes List available segment types
vgcfgbackup Backup volume group configuration(s)
vgcfgrestore Restore volume group configuration
vgchange Change volume group attributes
vgck Check the consistency of volume group(s)
vgconvert Change volume group metadata format
vgcreate Create a volume group
vgdisplay Display volume group information
vgexport Unregister volume group(s) from the system
vgextend Add physical volumes to a volume group
vgimport Register exported volume group with system
vgmerge Merge volume groups
vgmknodes Create the special files for volume group devices in /dev
vgreduce Remove physical volume(s) from a volume group
vgremove Remove volume group(s)
vgrename Rename a volume group
vgs Display information about volume groups
vgscan Search for all volume groups
vgsplit Move physical volumes into a new volume group
version Display software and driver version information
I don't think I'm going to try the command line to repair this, but I thought it was some useful information.
I think re -installing is going to be my best option to fix this
Please let me know if there is an "easier" way to repair my volume size.
Also some feed back about using 'file-roller' to make a back up of my current home directory (for my current bookmarls and e-mails) is a good way to make a back up.