Hi, I'm new to linux software RAID, and trying to learn ...
To test configurations and specially responses after a problem, I've prepared a KVM virtual machine to test a Fileserver configuration, where a linux software RAID is used.
Machine is configured with 2 virtio disks, running on RAID1. Fileserver is running as expected, and now, I´m trying to remove one disk to see how linux software RAID1 performs, and when it happens, will try to add a new disk to see if it RAID can be re-created.
After reading qm monitor help it seems that drive_del / drive_add functions could do what I need ...
Is this correct, or should I use another funcion to 'hot remove-add' a disk on a virtual machine ???
When I use drive_del, with parameter virtio1, it 'hot-removes' the disk from the virtual machine, and it (debian) detects a failure on disk 2, as expected
.
Now I'm trying to 'hot-add' this disk to the virtual machine but seems that i can not get the correct sintax for drive_add, and can not find more info ....
file for second disk is in storage local, machine 3010 i.e: local:3010/vm-3010-disk-2.raw
According to drive_add help I've tested:
Seems that I can not provide the current path for the raw disk..
Could somebody post the correct sintax for drive_add ?
Regards
To test configurations and specially responses after a problem, I've prepared a KVM virtual machine to test a Fileserver configuration, where a linux software RAID is used.
Machine is configured with 2 virtio disks, running on RAID1. Fileserver is running as expected, and now, I´m trying to remove one disk to see how linux software RAID1 performs, and when it happens, will try to add a new disk to see if it RAID can be re-created.
After reading qm monitor help it seems that drive_del / drive_add functions could do what I need ...
Is this correct, or should I use another funcion to 'hot remove-add' a disk on a virtual machine ???
When I use drive_del, with parameter virtio1, it 'hot-removes' the disk from the virtual machine, and it (debian) detects a failure on disk 2, as expected
Now I'm trying to 'hot-add' this disk to the virtual machine but seems that i can not get the correct sintax for drive_add, and can not find more info ....
file for second disk is in storage local, machine 3010 i.e: local:3010/vm-3010-disk-2.raw
According to drive_add help I've tested:
Code:
qm> help drive_add
drive_add [[<domain>:]<bus>:]<slot>
[file=file][,if=type][,bus=n]
[,unit=m][,media=d][,index=i]
[,cyls=c,heads=h,secs=s[,trans=t]]
[,snapshot=on|off][,cache=on|off]
[,readonly=on|off][,copy-on-read=on|off] -- add drive to PCI storage controller
qm> drive_add virtio1
drive_add: string expected
qm> drive_add virtio1 file=local:3010/vm-3010-disk-2.raw
could not open disk image local:3010/vm-3010-disk-2.raw: No such file or directory
qm> drive_add virtio1 file=3010/vm-3010-disk-2.raw
could not open disk image 3010/vm-3010-disk-2.raw: No such file or directory
qm> drive_add virtio1 file=vm-3010-disk-2.raw
could not open disk image vm-3010-disk-2.raw: No such file or directory
Seems that I can not provide the current path for the raw disk..
Could somebody post the correct sintax for drive_add ?
Regards