Z
Hi
my server have 2 Hard Disk
can i move a vps from first hard disk to secound hard disk ?
kvm ANd oPENvz GUEST
im eaxtly mean
move vps from first hard disk to secound hard disk
/etc/pve/storage.cfg:
dir: local2
path /var/data
content images
mv /var/lib/vz/images/110 /var/data/images/
/etc/qemu-server/110.cfg
ide0: local2:110/vm-110-disk-1.raw
thanks for replyHi,
you can do that - but only with handwork.
First, how are you use your second harddisk? If you mount the filesystem on /var/data then you can add a second storage (this can be done at the web-frontend):
after that, you can move your harddisk-files:Code:/etc/pve/storage.cfg: dir: local2 path /var/data content images
now it's time to change the config:Code:mv /var/lib/vz/images/110 /var/data/images/
Now you can start your vm - but please take a backup before!Code:/etc/qemu-server/110.cfg ide0: local2:110/vm-110-disk-1.raw
Udo
/etc/pve/storage.cfg
dir: local
path /var/lib/vz
content images,iso,vztmpl,rootdir
lvm: disk2
vgname second-hdd
content images
lvdisplay
/dev/second-hdd/vm-110-disk-1
dd if=/var/lib/vz/images/110/vm-110-disk-1.raw of=/dev/second-hdd/vm-110-disk-1 bs=1024k
That can't be done, because I get "You have no write access". When I add it manually using shell entry will appear in webinterface for a couple of seconds but then it disappers.
We use essential cookies to make this site work, and optional cookies to enhance your experience.