问题表现
![图片[1]-Unraid虚拟群晖SSD被识别成HDD解决方案-软件开发技术分享](https://oss.drixn.com/2023/09/20230912132708363.png?imageView2/0/format/webp/q/75|watermark/1/image/aHR0cHM6Ly9pbWcuZHJpeG4uY29tLzIwMjMwNjI3LzcwYTFmZDQxZDllZWMucG5n/dissolve/30/gravity/SouthEast/dx/10/dy/10)
解决方案
进入黑裙虚拟机,点击编辑
,右上角打开XML视图
,找到如下代码
<disk type='block' device='disk'><driver name='qemu' type='raw' cache='writeback'/><source dev='/dev/disk/by-id/ata-Samsung_SSD_850_EVO_500GB_S2RCNX0H409310M' index='2'/><backingStore/><target dev='hdd' bus='sata'/><serial>vdisk2</serial><alias name='sata0-0-3'/><address type='drive' controller='0' bus='0' target='0' unit='3'/></disk><disk type='block' device='disk'><driver name='qemu' type='raw' cache='writeback'/><source dev='/dev/disk/by-id/ata-ST2000VM003-1ET164_W521CXBR' index='1'/><backingStore/><target dev='hde' bus='sata'/><serial>vdisk3</serial><alias name='sata0-0-4'/><address type='drive' controller='0' bus='0' target='0' unit='4'/></disk><disk type='block' device='disk'> <driver name='qemu' type='raw' cache='writeback'/> <source dev='/dev/disk/by-id/ata-Samsung_SSD_850_EVO_500GB_S2RCNX0H409310M' index='2'/> <backingStore/> <target dev='hdd' bus='sata'/> <serial>vdisk2</serial> <alias name='sata0-0-3'/> <address type='drive' controller='0' bus='0' target='0' unit='3'/> </disk> <disk type='block' device='disk'> <driver name='qemu' type='raw' cache='writeback'/> <source dev='/dev/disk/by-id/ata-ST2000VM003-1ET164_W521CXBR' index='1'/> <backingStore/> <target dev='hde' bus='sata'/> <serial>vdisk3</serial> <alias name='sata0-0-4'/> <address type='drive' controller='0' bus='0' target='0' unit='4'/> </disk><disk type='block' device='disk'> <driver name='qemu' type='raw' cache='writeback'/> <source dev='/dev/disk/by-id/ata-Samsung_SSD_850_EVO_500GB_S2RCNX0H409310M' index='2'/> <backingStore/> <target dev='hdd' bus='sata'/> <serial>vdisk2</serial> <alias name='sata0-0-3'/> <address type='drive' controller='0' bus='0' target='0' unit='3'/> </disk> <disk type='block' device='disk'> <driver name='qemu' type='raw' cache='writeback'/> <source dev='/dev/disk/by-id/ata-ST2000VM003-1ET164_W521CXBR' index='1'/> <backingStore/> <target dev='hde' bus='sata'/> <serial>vdisk3</serial> <alias name='sata0-0-4'/> <address type='drive' controller='0' bus='0' target='0' unit='4'/> </disk>
在<target>
块内添加rotation_rate='1'
修改为以下代码
<disk type='block' device='disk'><driver name='qemu' type='raw' cache='writeback'/><source dev='/dev/disk/by-id/ata-Samsung_SSD_850_EVO_500GB_S2RCNX0H409310M' index='2'/><backingStore/><target dev='hdd' bus='sata' rotation_rate='1'/><serial>vdisk2</serial><alias name='sata0-0-3'/><address type='drive' controller='0' bus='0' target='0' unit='3'/></disk><disk type='block' device='disk'><driver name='qemu' type='raw' cache='writeback'/><source dev='/dev/disk/by-id/ata-ST2000VM003-1ET164_W521CXBR' index='1'/><backingStore/><target dev='hde' bus='sata' rotation_rate='1'/><serial>vdisk3</serial><alias name='sata0-0-4'/><address type='drive' controller='0' bus='0' target='0' unit='4'/></disk><disk type='block' device='disk'> <driver name='qemu' type='raw' cache='writeback'/> <source dev='/dev/disk/by-id/ata-Samsung_SSD_850_EVO_500GB_S2RCNX0H409310M' index='2'/> <backingStore/> <target dev='hdd' bus='sata' rotation_rate='1'/> <serial>vdisk2</serial> <alias name='sata0-0-3'/> <address type='drive' controller='0' bus='0' target='0' unit='3'/> </disk> <disk type='block' device='disk'> <driver name='qemu' type='raw' cache='writeback'/> <source dev='/dev/disk/by-id/ata-ST2000VM003-1ET164_W521CXBR' index='1'/> <backingStore/> <target dev='hde' bus='sata' rotation_rate='1'/> <serial>vdisk3</serial> <alias name='sata0-0-4'/> <address type='drive' controller='0' bus='0' target='0' unit='4'/> </disk><disk type='block' device='disk'> <driver name='qemu' type='raw' cache='writeback'/> <source dev='/dev/disk/by-id/ata-Samsung_SSD_850_EVO_500GB_S2RCNX0H409310M' index='2'/> <backingStore/> <target dev='hdd' bus='sata' rotation_rate='1'/> <serial>vdisk2</serial> <alias name='sata0-0-3'/> <address type='drive' controller='0' bus='0' target='0' unit='3'/> </disk> <disk type='block' device='disk'> <driver name='qemu' type='raw' cache='writeback'/> <source dev='/dev/disk/by-id/ata-ST2000VM003-1ET164_W521CXBR' index='1'/> <backingStore/> <target dev='hde' bus='sata' rotation_rate='1'/> <serial>vdisk3</serial> <alias name='sata0-0-4'/> <address type='drive' controller='0' bus='0' target='0' unit='4'/> </disk>
修改后效果如图:
![图片[2]-Unraid虚拟群晖SSD被识别成HDD解决方案-软件开发技术分享](https://oss.drixn.com/2023/09/20230912134414328.png?imageView2/0/format/webp/q/75|watermark/1/image/aHR0cHM6Ly9pbWcuZHJpeG4uY29tLzIwMjMwNjI3LzcwYTFmZDQxZDllZWMucG5n/dissolve/30/gravity/SouthEast/dx/10/dy/10)
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
- 最新
- 最热
只看作者