ssh登录
使用SSH 登录到XenServer:
$ssh root@XENSERVER
列出存储存储库
在XenServer上显示所有存储存储库:
# xe sr-list uuid ( RO) : 132b9e6a-1798-bfcb-fb79-37be7ee8bf93 name-label ( RW): Removable storage name-description ( RW): host ( RO): xenserver type ( RO): udev content-type ( RO): disk uuid ( RO) : 970317f9-3187-b5e0-1ea5-16666fdf3348 name-label ( RW): ISO_IMAGES_LOCAL name-description ( RW): host ( RO): xenserver type ( RO): iso content-type ( RO): iso uuid ( RO) : 01533e0e-6c17-36fa-c987-2d29f355ef6e name-label ( RW): XenServer Tools name-description ( RW): XenServer Tools ISOs host ( RO): xenserver type ( RO): iso content-type ( RO): iso uuid ( RO) : bdafe018-617d-5c49-6488-c81c01d40f21 name-label ( RW): Local storage name-description ( RW): host ( RO): xenserver type ( RO): ext content-type ( RO): user uuid ( RO) : 9ea646ec-2795-a579-4668-e0f779402ca6 name-label ( RW): DVD drives name-description ( RW): Physical DVD drives host ( RO): xenserver type ( RO): udev content-type ( RO): iso
获取要检查磁盘使用情况的存储存储库名称。
检查空闲/使用的磁盘空间
现在我们已经获得了本地存储库的相关UUID,我们可以使用“DF”命令获取剩余的磁盘空间:
# df -h /run/sr-mount/bdafe018-617d-5c49-6488-c81c01d40f21 Filesystem Size Used Avail Use% Mounted on /dev/mapper/XSLocalEXT--bXX 70G 180M 66G 1% /run/sr-mount/bdafe018-617d-5c49-6488-c81c01d40f21
或者,我们可以为执行du
命令查看已使用的磁盘空间:
# du -sh /run/sr-mount/bdafe018-617d-5c49-6488-c81c01d40f21 44K /run/sr-mount/bdafe018-617d-5c49-6488-c81c01d40f21
日期:2020-07-07 20:56:12 来源:oir作者:oir