我在安装XenServer时使用本地存储库,我正在尝试使用UUID删除错误的SR.当我通过-id查看磁盘时,输出是:
[root@xenser111 lib]# ls -l /dev/disk/by-id total 0 lrwxrwxrwx 1 root root 9 Jul 16 09:02 scsi-3600050e02e433200d7110000d6930000 -> ../../sda lrwxrwxrwx 1 root root 10 Jul 16 09:02 scsi-3600050e02e433200d7110000d6930000-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Jul 16 09:02 scsi-3600050e02e433200d7110000d6930000-part2 -> ../../sda2 lrwxrwxrwx 1 root root 10 Jul 16 09:02 scsi-3600050e02e433200d7110000d6930000-part3 -> ../../sda3 lrwxrwxrwx 1 root root 9 Jul 16 09:02 scsi-SATA_SAMSUNG_HD103SJS2AEJ1BZ502526 -> ../../sdc lrwxrwxrwx 1 root root 10 Jul 19 04:15 scsi-SATA_SAMSUNG_HD103SJS2AEJ1BZ502526-part1 -> ../../sdc1 lrwxrwxrwx 1 root root 9 Jul 19 04:32 scsi-SATA_SAMSUNG_HD103SJS2AEJ1BZ502653 -> ../../sdb lrwxrwxrwx 1 root root 10 Jul 19 04:32 scsi-SATA_SAMSUNG_HD103SJS2AEJ1BZ502653-part1 -> ../../sdb1
但是,当我按-uuid查看磁盘时,它不会显示/ dev / sdb或/ dev / sdc:
[root@xenser111 lib]# ls -l /dev/disk/by-uuid/ total 0 lrwxrwxrwx 1 root root 10 Jul 16 09:02 b1341321-038d-43e6-a194-0c3598f47152 -> ../../sda1
为什么会这样?我是否必须制定一些命令来填充by-uuid目录?我怎么能找到UUID? (我也使用了blkid没用).
如果相关,/ sda是RAID 0.
解决方法
是否在sdc& s上的那些分区上创建了文件系统?深发展?磁盘没有UUID值,文件系统也没有.
例如:
root@marvin:~# blkid /dev/sda root@marvin:~# blkid /dev/sda1 /dev/sda1: UUID="8eb16c98-cf75-429b-af08-db29f5d5335b" TYPE="ext4"
交换也可以有一个UUID:
root@marvin:~# blkid /dev/sda5 /dev/sda5: UUID="a1a91f5f-6d6a-4cf7-a133-afaafeb2eb1e" TYPE="swap" root@marvin:~#
您是否在这些分区上创建了有效的文件系统?