To my knowledge it is not possible to eg move all disk from X storage to Y storage to format qcow2 with two lines of bash with the current API. If it is, please share the details :-)
It would be nice if the API and/or Web interface had a function to eg migrate all disks to a new storage, but it...
I have created a small program to mass move disks, delete disks and eject cdroms.
The primary use is migrating to a new storage without clicking through every machine in the Proxmox Web interface.
Example usage
Move all disks from "oldstorage" to "newstorage" - using format raw on...
Backup - then boot your XP machine on gparted or similar tool - resize the disk to eg 90G and move all partitons to the start of the disk.
Shut down the machine and resize the image - with qemu-img or "qm resize" to 100G
Boot gparted and resize the filesystem to 100g finito...
You can't live migrate with different iscsi LUN for each machine - and it is NOT neccescary.
You can corrupt fileysstems if you mount the fileystems on iscsi drives on two machines on the same time, but proxmox is splitting up each iscsi LUN in to different LVM partitions. Proxmox ensures LVM...
You can use iScsi as shared storage. Proxmox ensures that only one machine at time connects to the same volume on the iScsi server.
Freenas uses istgt - http://www.peach.ne.jp/archives/istgt/ for iScsi. I would not recommend it, it gave me a lot of errors after a few days with heavy use (on...
With local files the backup will do a snapshot of the whole LVM while doing backup, including all virtual files - works, but is possibly slower.
Best regards
Ok - i assume you use LVM on local storage then.
You can simply create the new machine and disk with the same properties, and then manually copy the content from the old LVM, one way to do it from the old machine
cat /dev/xxxx/oldlvmdisk |ssh newserver.xxx “cat > /dev/xxx/newlvmdisk”
Best regards
If you have not created new disk it should be possible
Look in /etc/lvm/backup and /etc/lvm/archive and
man vgcfgrestore
I have done it with succes, but i do not remember the exactly how.
Best regards
Take backup :-) - one way to do it
Shrink your file system(s) to the smallest possible size
Shrink your partition(s) to the smallest possible size
Shrink yuur image (raw, lvm) to your new wished size
Extend your partition
Extend your filesystem(s)
It is similar to the extending disk...
It is possible, but i would not recommend it. I have done it once.
One way to do it
Add your new iscsi storage
Create new PV on the new storage and expand your current VG to the new volume
Move some or all machines from your old storage with "pvmove"
There is the following problems (and maybe...
Re: Reducing the size of a KVM Windows machine
It is possible
In short - one (of many) possibilities
1 TAKE backup
2 Start the server with gparted or similar
3 Reduce the filesystem to 2-300 mb above the smallest size possible
4 Reduce the RAW image with qemu-img to the new size
5 Start...
Ok i assume this is your guest
You ned the last bit of the guide
"Linux client with LVM"
You need to run a
pvresize /dev/hda2
lvresize /dev/mapp...
resize2fs /
Best regards
You should NOT use it. You have already resized your disk.
It is only used IF
"In case of a remote disk on LVM storage " - in that case xxx is btw the lvm volumegroup name.
If you read my guide in the forum there is an updated guide here
http://pve.proxmox.com/wiki/Resizing_disks
The lvresize command should only used if you use a LVM storage backend instead of files (which you use).
But you would need to resize the partitions and filesystems in the guest system...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.