Forums

Home / Forums

You need to log in to create posts and topics. Login · Register

qemu vd not detected

I'm used to SmartOS(qemu 0.14.1) with virt-io,  the virtual disk in guest will be /dev/vd{a,b,c...},  but petasan "detect-disks.sh" only works with /dev/{s,xv,h}d...

after boot from petasan-1.2.1.iso:

sudo su

sed -i 's/xvd/vd/g' /usr/local/psinstaller/scripts/detect-disks.sh

installation complete, but before reboot:

sed -i 's/xvd/vd/g' /mnt/rootfs/opt/petasan/scripts/detect-disks.sh

sed -i 's/xvd/xvd') and not name.startswith('vd/g' /mnt/rootfs/usr/lib/python2.7/dist-packages/PetaSAN/core/ceph/ceph_disk_lib.py

rm -f /mnt/rootfs/usr/lib/python2.7/dist-packages/PetaSAN/core/ceph/ceph_disk_lib.pyc

 

After create three-node petasan cluster, it works! but node/ physical disk list/ only show osd without device name which shoud be /dev/vdb.

to support qemu virt-io disks,  may be more modification/test to do.