SSブログ

vmware vcenter converter !!! Could not recognize any disks !!!

vcenter converter のオンラインLinuxサーバのP2Vが,ソースマシン情報の取得で中断された。
converter は,Linuxサーバのディスク情報取得に parted ライブラリを使っているが,それが中断の原因であり,libparted の入れ替えで対応できた。
解決方法のソースはこちら。
http://communities.vmware.com/message/1837992#1837992

converter は,Linux サーバの /tmp に,sshでvmware-sysinfo-lin32.tar.gz を転送して vmware-sysinfo-lin32.sh を実行する。その中でバイナリの sysinfo-vmware-lin32 が実行され,Linux サーバのシステム情報を xml 出力する仕組みになっている。

確認のため,vmware-sysinfo-lin32.tar.gz を winscp で,/tmp に転送した。
ファイルは,C:\Program Files\VMware\VMware vCenter Converter
Standalone\vmware-sysinfo-lin32.tar.gz

mkdir sysinfo && cd sysinfo
tar xvzf ../vmware-sysinfo-lin32.tar.gz

展開したファイル。

-bash-2.05b# ls
libgcc_s.so.1       libuuid.so.1          vmware-sysinfo-lin32.sh
liblog4cpp.so.4     libxml2.so.2          vmware-sysinfo.log.config
libparted-1.8.so.8  libz.so.1
libstdc++.so.6      vmware-sysinfo-lin32

vmware-sysinfo-lin32.sh を実行。

./vmware-sysinfo-lin32.sh

vmware-sysinfo.log にエラーが書かれていた。

-bash-2.05b# cat vmware-sysinfo.log
[2013-02-22 16:33:06,309 INFO storage ]: Probing for disks using parted
[2013-02-22 16:33:06,310 INFO storage ]: Parted returned device with
path: /dev/sda, type: 1
[2013-02-22 16:33:06,343 ERROR storage ]: Parted failed to probe
device with path: /dev/sda, type: 1
[2013-02-22 16:33:06,343 ERROR storage ]: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[2013-02-22 16:33:06,343 ERROR storage ]: !!! Could not recognize any disks !!!
[2013-02-22 16:33:06,343 ERROR storage ]: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[2013-02-22 16:33:06,343 INFO storage ]: LVM1 executables found
[2013-02-22 16:33:06,354 ERROR storage.lvm ]: Command '/sbin/vgdisplay
-c 2>/dev/null'
failed with exit code 25088
[2013-02-22 16:33:06,355 INFO storage ]: Got mount table entry:
fsname: /dev/sda3, dir: /, type: ext3
[2013-02-22 16:33:06,355 INFO storage ]: Looking for device with major
8 and minor 3
[2013-02-22 16:33:06,355 INFO storage ]: Got mount table entry:
fsname: none, dir: /proc, type: proc
[2013-02-22 16:33:06,355 INFO storage ]: Got mount table entry:
fsname: usbdevfs, dir: /proc/bus/usb, type: usbdevfs
[2013-02-22 16:33:06,355 INFO storage ]: Got mount table entry:
fsname: /dev/sda1, dir: /boot, type: ext3
[2013-02-22 16:33:06,355 INFO storage ]: Looking for device with major
8 and minor 1
[2013-02-22 16:33:06,355 INFO storage ]: Got mount table entry:
fsname: none, dir: /dev/pts, type: devpts
[2013-02-22 16:33:06,355 INFO storage ]: Got mount table entry:
fsname: /dev/sda6, dir: /home, type: ext3
[2013-02-22 16:33:06,355 INFO storage ]: Looking for device with major
8 and minor 6
[2013-02-22 16:33:06,355 INFO storage ]: Got mount table entry:
fsname: none, dir: /dev/shm, type: tmpfs
[2013-02-22 16:33:06,355 INFO storage ]: Got mount table entry:
fsname: /dev/sda2, dir: /var, type: ext3
[2013-02-22 16:33:06,355 INFO storage ]: Looking for device with major
8 and minor 2
[2013-02-22 16:33:06,355 INFO storage ]: Got mount table entry:
fsname: /proc, dir: /var/lib/named/proc, type: none
[2013-02-22 16:33:06,355 INFO storage ]: Looking for device with major
0 and minor 0
[2013-02-22 16:33:06,355 INFO storage ]: Getting stats for swap device /dev/sda5
[2013-02-22 16:33:06,355 INFO storage ]: Swap device /dev/sda5 has
block device number (major,minor): (8,5)
[2013-02-22 16:33:06,356 ERROR storage ]:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[2013-02-22 16:33:06,356 ERROR storage ]: !!! Could not recognize any
volumes !!!
[2013-02-22 16:33:06,356 ERROR storage ]:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[2013-02-22 16:33:06,356 ERROR storage ]: Cannot find a boot directory
(searched for '/boot'); the final system may not be bootable
-bash-2.05b#




Linux サーバの /usr/lib/libparted-1.6.so.0.0.3 を /tmp/sysinfo ディレクトリにコピーして,libparted-1.8.so.8 にリネームした。 


再度 vmware-sysinfo を実行すると,xml が出力された。


-bash-2.05b# cat vmware-sysinfo.log
[2013-02-22 16:37:26,538 INFO storage ]: Probing for disks using parted
[2013-02-22 16:37:26,538 INFO storage ]: Parted returned device with
path: /dev/sda, type: 1
[2013-02-22 16:37:26,572 INFO storage ]: Parted successfully probed
device with path: /dev/sda, type: 1, disk type: msdos
[2013-02-22 16:37:26,572 INFO storage.disk ]: Creating SCSI disk with
path: /dev/sda
[2013-02-22 16:37:26,683 INFO storage ]: LVM1 executables found
[2013-02-22 16:37:26,702 ERROR storage.lvm ]: Command '/sbin/vgdisplay
-c 2>/dev/null'
failed with exit code 25088
[2013-02-22 16:37:26,702 INFO storage ]: Got mount table entry:
fsname: /dev/sda3, dir: /, type: ext3
[2013-02-22 16:37:26,702 INFO storage ]: Looking for device with major
8 and minor 3
[2013-02-22 16:37:26,703 INFO storage ]: Found device /dev/sda3
[2013-02-22 16:37:26,703 WARN storage.volume ]: Creating volume with
mountPoint: /, device path: /dev/sda3, fsType: ext3,
_blockSizeInBytes: 4096, _capacityInBlocks: 1031777, _blocksFree:
764247
[2013-02-22 16:37:26,703 INFO storage ]: Got mount table entry:
fsname: none, dir: /proc, type: proc
[2013-02-22 16:37:26,703 INFO storage ]: Got mount table entry:
fsname: usbdevfs, dir: /proc/bus/usb, type: usbdevfs
[2013-02-22 16:37:26,703 INFO storage ]: Got mount table entry:
fsname: /dev/sda1, dir: /boot, type: ext3
[2013-02-22 16:37:26,703 INFO storage ]: Looking for device with major
8 and minor 1
[2013-02-22 16:37:26,703 INFO storage ]: Found device /dev/sda1
[2013-02-22 16:37:26,703 WARN storage.volume ]: Creating volume with
mountPoint: /boot, device path: /dev/sda1, fsType: ext3,
_blockSizeInBytes: 1024, _capacityInBlocks: 124427, _blocksFree:
113537
[2013-02-22 16:37:26,704 INFO storage ]: Got mount table entry:
fsname: none, dir: /dev/pts, type: devpts
[2013-02-22 16:37:26,704 INFO storage ]: Got mount table entry:
fsname: /dev/sda6, dir: /home, type: ext3
[2013-02-22 16:37:26,704 INFO storage ]: Looking for device with major
8 and minor 6
[2013-02-22 16:37:26,704 INFO storage ]: Found device /dev/sda6
[2013-02-22 16:37:26,704 WARN storage.volume ]: Creating volume with
mountPoint: /home, device path: /dev/sda6, fsType: ext3,
_blockSizeInBytes: 4096, _capacityInBlocks: 35551036, _blocksFree:
34879116
[2013-02-22 16:37:26,705 INFO storage ]: Got mount table entry:
fsname: none, dir: /dev/shm, type: tmpfs
[2013-02-22 16:37:26,705 INFO storage ]: Got mount table entry:
fsname: /dev/sda2, dir: /var, type: ext3
[2013-02-22 16:37:26,705 INFO storage ]: Looking for device with major
8 and minor 2
[2013-02-22 16:37:26,705 INFO storage ]: Found device /dev/sda2
[2013-02-22 16:37:26,705 WARN storage.volume ]: Creating volume with
mountPoint: /var, device path: /dev/sda2, fsType: ext3,
_blockSizeInBytes: 4096, _capacityInBlocks: 1031777, _blocksFree:
893361
[2013-02-22 16:37:26,705 INFO storage ]: Got mount table entry:
fsname: /proc, dir: /var/lib/named/proc, type: none
[2013-02-22 16:37:26,705 INFO storage ]: Looking for device with major
0 and minor 0
[2013-02-22 16:37:26,706 INFO storage ]: Getting stats for swap device /dev/sda5
[2013-02-22 16:37:26,706 INFO storage ]: Swap device /dev/sda5 has
block device number (major,minor): (8,5)
[2013-02-22 16:37:26,706 WARN storage.volume ]: Cannot use statvfs()
for the swap volume with device path: /dev/sda5, so the volume size
statistics will not be set.
[2013-02-22 16:37:26,706 WARN storage.volume ]: Creating volume with
mountPoint: , device path: /dev/sda5, fsType: linux-swap,
_blockSizeInBytes: 0, _capacityInBlocks: 0, _blocksFree: 0
[2013-02-22 16:37:26,708 WARN network ]: Ignoring interface 'lo'
because it is not an ethernet interface
[2013-02-22 16:37:26,716 INFO distribution ]: /etc/redhat-release file
line: 'NetSHAKER BlueRack Ver.1.2'
[2013-02-22 16:37:26,735 WARN hardwareInfo ]: No "physical id" lines
found in /proc/cpuinfo, defaulting to one socket with one core
[2013-02-22 16:37:26,735 INFO grub ]: Trying to create device map file
/tmp/vmware-sysinfo-grub-device.map
[2013-02-22 16:37:26,735 INFO grub ]: Running command: grub --batch
--no-floppy --device-map=/tmp/vmware-sysinfo-grub-device.map >
/dev/null 2>&1
[2013-02-22 16:37:31,439 INFO sysinfo ]: <?xml version="1.0" encoding="UTF-8"?>
<sysinfo>
<storage>
<volume mountPoint="/" blockSizeInBytes="4096"
capacityInBlocks="1031777" blocksFree="764247" blocksUsed="267530"
devicePath="/dev/sda3" fileSystemType="ext3" isBootVolume="false"
label="/">
<extfsFeatures dirIndex="false" filetype="true" hasJournal="true"
journalDev="false" resizeInode="false" sparseSuper="true"/>
</volume>
<volume mountPoint="/boot" blockSizeInBytes="1024"
capacityInBlocks="124427" blocksFree="113537" blocksUsed="10890"
devicePath="/dev/sda1" fileSystemType="ext3" isBootVolume="true"
label="/boot">
<extfsFeatures dirIndex="false" filetype="true" hasJournal="true"
journalDev="false" resizeInode="false" sparseSuper="true"/>
</volume>
<volume mountPoint="/home" blockSizeInBytes="4096"
capacityInBlocks="35551036" blocksFree="34879116" blocksUsed="671920"
devicePath="/dev/sda6" fileSystemType="ext3" isBootVolume="false"
label="/home">
<extfsFeatures dirIndex="false" filetype="true" hasJournal="true"
journalDev="false" resizeInode="false" sparseSuper="true"/>
</volume>
<volume mountPoint="/var" blockSizeInBytes="4096"
capacityInBlocks="1031777" blocksFree="893361" blocksUsed="138416"
devicePath="/dev/sda2" fileSystemType="ext3" isBootVolume="false"
label="/var">
<extfsFeatures dirIndex="false" filetype="true" hasJournal="true"
journalDev="false" resizeInode="false" sparseSuper="true"/>
</volume>
<volume mountPoint="" blockSizeInBytes="0" capacityInBlocks="0"
blocksFree="0" blocksUsed="0" devicePath="/dev/sda5"
fileSystemType="linux-swap" isBootVolume="false" label=""/>
<disk type="msdos" controllerType="scsi" bus="0" deviceId="11"
capacityInSectors="312236033">
<device path="/dev/sda" major="8" minor="0"/>
<hwGeometry cylinders="19435" heads="255" sectors="63"/>
<biosGeometry cylinders="19435" heads="255" sectors="63"/>
<partition number="1" type="primary" isActive="true" fileSystemType="ext3">
<device path="/dev/sda1" major="8" minor="1"/>
<lba start="63" length="256977" end="257039"/>
</partition>
<partition number="2" type="primary" isActive="false" fileSystemType="ext3">
<device path="/dev/sda2" major="8" minor="2"/>
<lba start="257040" length="8385930" end="8642969"/>
</partition>
<partition number="3" type="primary" isActive="false" fileSystemType="ext3">
<device path="/dev/sda3" major="8" minor="3"/>
<lba start="8642970" length="8385930" end="17028899"/>
</partition>
<partition number="4" type="extended" isActive="false" fileSystemType="">
<device path="/dev/sda4" major="8" minor="4"/>
<lba start="17028900" length="295194375" end="312223274"/>
</partition>
<partition number="5" type="logical" isActive="false"
fileSystemType="linux-swap">
<device path="/dev/sda5" major="8" minor="5"/>
<lba start="17028963" length="2056257" end="19085219"/>
</partition>
<partition number="6" type="logical" isActive="false" fileSystemType="ext3">
<device path="/dev/sda6" major="8" minor="6"/>
<lba start="19085283" length="288945027" end="308030309"/>
</partition>
<partition number="7" type="logical" isActive="false" fileSystemType="ext3">
<device path="/dev/sda7" major="8" minor="7"/>
<lba start="308030373" length="4192902" end="312223274"/>
</partition>
</disk>
</storage>
<network>
<interface label="eth0" nicId="00:11:22:33:44:55" status="up">
<ip address="1.2.3.4" mask="255.255.255.0"/>
</interface>
<interface label="eth1" nicId="00:11:22:33:44:55" status="up">
<ip address="192.168.10.12" mask="255.255.255.0"/>
</interface>
</network>
<operatingSystem>
<hostname>civilsv1.civil.cxx.xxx-u.ac.jp</hostname>
<distribution name="linux" version=""/>
<kernel release="2.4.20-42.9.nsk41.3" is64bit="false" SMP="false"/>
</operatingSystem>
<hardwareInfo>
<firmwareType>bios</firmwareType>
<cpuCount>1</cpuCount>
<coresCount id="0">1</coresCount>
<memoryInKb>524288</memoryInKb>
</hardwareInfo>
<grub>
<devicemap>
<device biosNumber="0" path="/dev/sda"/>
</devicemap>
</grub>
</sysinfo>

-bash-2.05b#




libparted を置き換えた内容で,tar xvzf ../vmware-sysinfo-lin32.tar.gz を作り直した。

cd /tmp/sysinfo
tar cvzf ../vmware-sysinfo-lin32.tar.gz *

作り直した vmware-sysinfo-lin32.tar.gz を winscp でPCに転送。

C:\Program Files\VMware\VMware vCenter Converter Standalone\vmware-sysinfo-lin32.tar.gz を置換.。

vm converter を再度実行で,P2Vが成功した。



nice!(0)  コメント(0)  トラックバック(0) 

nice! 0

コメント 0

コメントを書く

お名前:
URL:
コメント:
画像認証:
下の画像に表示されている文字を入力してください。

Facebook コメント

トラックバック 0

IODATA WN-G300DGR Op..vmware vcenter conve.. ブログトップ

この広告は前回の更新から一定期間経過したブログに表示されています。更新すると自動で解除されます。