VMware ESX Server 3.5 出现 pegasus 什么什么的错误

刚装好的服务器,启动的时候出现这个错误:

Processing /var/pegasus/vmware/install_queue/1 [FAILED]
ERROR:log –/var/pegasus/vmware/install_queus/1.log
Processing /var/pegasus/vmware/install_queue/1 [FAILED]
ERROR:log –/var/pegasus/vmware/install_queus/1.log

到网上搜一搜,搜到了这个文章:

http://communities.vmware.com/message/914939#914939

Edit the roleauth-schema compiler directive to include the VMware_Identity class definition using

nano /var/pegasus/vmware/install_queue/3_files/mofs/root/PG_Interop/roleauth-schema.mof

Add the bolded line above the pre-existing member directive.

#pragma include (“VMware_Identity.mof”)
#pragma include (“VMware_IdentityMemberOfCollection.mof”)

It also needs to be added in the standard cimv2 path.

nano /var/pegasus/vmware/install_queue/3_files/mofs/root/cimv2/roleauth-schema.mof

#pragma include (“VMware_Identity.mof”)
#pragma include (“VMware_IdentityMemberOfCollection.mof”)

Copy the missing file from the stardard cimv2 path to the shared path.

cp /var/pegasus/vmware/install_queue/3_files/mofs/root/cimv2/VMware_Identity.mof /var/pegasus/vmware/install_queue/3_files/mofs/root/PG_Interop/

Stop and start the service with these commands.

/etc/init.d/pegasus stop
/etc/init.d/pegasus start

Once the scripts completes the install_queues will be empty and the service will start much more quickly.

按上面说明修改,其中的 3_files 要用 1_files 代替,之后,不出错了。

VMWare ESX Server 创建虚拟机硬盘时出错

我打算在 VMWare ESX Server 里建一个有 500G 硬盘的系统,在创建的时候,报了一个“the file is too big for the filesystem”的错误,引起这个错误的原因是物理机上的磁盘分区不支持 500G 大小的文件,可查手册上明明说是支持 2T 大小,后来查到了原因。

在装 ESX Server 时,默认是用 1M 做为一个块,而这样,只能支持一个文件最大是256G,块的大小与文件最大尺寸是这样的:

1 256 GB
2 512 GB
4 1024 GB
8 2048 GB

我想我最大也就建一 1T 了,所以我准备用 4M 做为一块大小。

重新建立物理机上的文件系统:

vmkfstools –createfs vmfs3 –blocksize 4M -S vh-01:storage1 vmhba1:1:0:1

重启之后,就正常了。