XENSERVER实际案例问题分享
除的虚拟服务器所在的物理服务器,在console下输入#xe host-forget uuid= uuid的信息使用#xe host-list查看
查看虚拟主机详细信息 xe vm-list params=all/(name-label,uuid,networks)
关闭虚拟机 xe vm-shutdown uuid=<vm_uuid>ext3-fs error (device xvda2) in start_transaction: journal has aborted
关闭halted/running虚拟机 xe vm-reset-powerstate force=true vm=uuid
删除虚拟机 xe vm-destroy uuid=<vm_uuid>
3.增加LVM根分区容量?
fdisk /dev/xvda
Command (m for help): d
Partition number (1-4): 2
Command (m for help): n
primary partition (1-4) p
Partition number (1-4): 2
First cylinder (14-701, default 14):
Last cylinder or +size or +sizeM or +sizeK (14-701, default 701):
Command (m for help): t
Partition number (1-4): 2
Hex code (type L to list codes): 8e
Command (m for help): w
pvresize -v /dev/xvda2 重新识别卷大小
lvextend -l +100%FREE /dev/VolGroup00/LogVol00 拓展卷利用所有空余空间 resize2fs /dev/mapper/VolGroup00-LogVol00 在线调整文件系统大小
ext2online /dev/mapper/VolGroup00-LogVol00(根分区由于不能卸载用此命令)
4.传统分区增加大小:在分区表扩容、重启、动态扩容分区
yum install e2fsprogs
fdisk /dev/xvda
Command (m for help): d