3 of our servers are virtualized with Xen. I am currently working on a mail archive server.
Here is the details for the Logical volume:
--- Logical volume ---
LV Name /dev/storage/archive
VG Name storage
LV UUID NZe0HC-7GK5-cb3t-UMWs-310y-iPUA-F0P4X3
LV Write Access read/write
LV Status available
# open 1
LV Size 990.62 GB
Current LE 253600
Read ahead sectors auto
- currently set to 256
Block device 252:10
I have recently increased the logical volume's size with:
lvextend -L +10000 /dev/storage/archive. The volume size successfully increased, but i do not see the changes reflect on the guest os of
I have read in several mailing lists, that you should also increase the partition size with resize2fs, however i think this might be dangerous and could destroy data on the partition. If you could do it without destroying data that would be great.
This is the configuration for Xen guest:
kernel = "/boot/vmlinuz-xen-domU"
memory = 768
name = "archive"
vif = [ 'mac=00:16:3e:01:01:07,bridge=xenbr1' ]
disk = [ 'phy:/dev/storage/archive,sda1,w' ]
root = "/dev/sda1 ro"
I believe i'm left with only one option, to reduce the logical volume back to its previous size, with lvreduce, then create a new logical volume partition with lvcreate. I would like to know if this can be done without losing any data that resides on the partition.
I would appreciate suggestions or ideas on the best way to approach this issue.
Your help is much appreciated