Hello,
we have some typical KVM guests and try to expand the virtio-disk. Our process
is like this:
1. zfs set volsize=xxGB zones/uuid-disk0
2. vmadm stop uuid & vmadm start uuid
3. resize LVM & Filesystem inside of the KVM
Now my question is if we can't skip step 2 (reboot of KVM guest).
I tried to rescan the SCSI-Bus but i can't see the changed size of the Disk
inside the virtual machine:
ls /sys/class/scsi_device/*/device/rescan | while read path; do echo 1 > $path;
done
ls /sys/class/scsi_host/host*/scan | while read path; do echo "- - -" > $path;
done
Checking the disk-size either with cfdisk, fdisk or parted doesn't show me the
new size. Shouldn't it be possible to get the new size without the reboot? As
far as i know from other virtio-setups, it is possible to do a live resize of
disks.
I'm using CentOS 7:
{ "alias": "kvm-test1",
"hostname": "kvm-test1",
"brand": "kvm",
"vcpus": 4,
"autoboot": false,
"ram": 4096,
"qemu_extra_opts": "-boot menu=on",
"resolvers": ["192.168.xxx", "192.168.xxx"],
"disks": [
{
"image_uuid": "d8e65ea2-1f3e-11e5-8557-6b43e0a88b38",
"boot": true,
"model": "virtio",
"size": 10480,
"compression": "lz4"
}
],
"nics": [
{
"nic_tag": "admin",
... }
],
}
Searching the web i found the following github post:
https://github.com/joyent/smartos-live/issues/226
In the last post he says: "... to take effect we need to reboot (for RHEL
kernels), Gentoo doesn't need reboot to take effect. "
Is that s special smartos behaviour or am i doing anything wrong inside my
CentOS KVM guest (tried it with ubuntu14 too)??
Thanks
Greets
Kilian
-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription:
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com