﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>IT博客-SA Blog --系统管理员的博客生涯-随笔分类-虚拟化</title><link>http://www.cnitblog.com/201/category/7709.html</link><description>书写自己的系统管理博客生涯</description><language>zh-cn</language><lastBuildDate>Fri, 20 Jan 2012 15:49:05 GMT</lastBuildDate><pubDate>Fri, 20 Jan 2012 15:49:05 GMT</pubDate><ttl>60</ttl><item><title>Useful VMWare ESX Commands</title><link>http://www.cnitblog.com/201/archive/2012/01/20/77254.html</link><dc:creator>David</dc:creator><author>David</author><pubDate>Fri, 20 Jan 2012 15:33:00 GMT</pubDate><guid>http://www.cnitblog.com/201/archive/2012/01/20/77254.html</guid><wfw:comment>http://www.cnitblog.com/201/comments/77254.html</wfw:comment><comments>http://www.cnitblog.com/201/archive/2012/01/20/77254.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/201/comments/commentRss/77254.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/201/services/trackbacks/77254.html</trackback:ping><description><![CDATA[<div>             <div>             <p style="margin: 0in 0in 0pt;"><strong><span style="font-size: 16px; font-family: times new roman;">Information:</span></strong></p>             <p style="margin: 0in 0in 0pt;"><span style="font-size: 16px; font-family: times new roman;">Below is a collection of useful VMWare ESX Commands to perform various activities from the command line.</span></p>             <p style="margin: 0in 0in 0pt;">&nbsp;</p>             <p style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;"><span style="font-family: times new roman;"><span style="font-size: 16px;">1)</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-size: 16px;">Configure Service Console VLAN ID</span></span></p>             <p style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span style="font-family: times new roman;"><span style="font-size: 16px;">a.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-size: 16px; color: navy;">esxcfg-vswitch &#8211;p &#8220;Service Console&#8221; &#8211;v # vSwitch0</span></span></p>             <p style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span style="font-family: times new roman;"><span style="font-size: 16px;">b.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-size: 16px;">Where # is the VLAN ID; only one VLAN ID is allowed</span></span></p>             <p style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;"><span style="font-family: times new roman;"><span style="font-size: 16px;">2)</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-size: 16px;">Change Service Console IP Address</span></span></p>             <p style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span style="font-family: times new roman;"><span style="font-size: 16px;">a.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-size: 16px;">Delete existing Service Console Switch</span></span></p>             <p style="margin: 0in 0in 0pt 1.5in; text-indent: -1.5in;"><span style="color: navy;"><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-family: times new roman;"><span style="font-size: 16px;">i.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 16px; color: navy; font-family: times new roman;">esxcfg-vswif -d vswif0</span></p>             <p style="margin: 0in 0in 0pt 1.5in; text-indent: -1.5in;"><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: times new roman;"><span style="font-size: 16px;">ii.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 16px; font-family: times new roman;">will return a message about &#8220;nothing to flush&#8221; if successful</span></p>             <p style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span style="font-family: times new roman;"><span style="font-size: 16px;">b.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-size: 16px;">Create the new Service Console Switch and IP Address</span></span></p>             <p style="margin: 0in 0in 0pt 1.5in; text-indent: -1.5in;"><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: times new roman;"><span style="font-size: 16px;">i.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 16px; color: navy; font-family: times new roman;">esxcfg-vswif -a vswif0 -p &#8220;Service Console&#8221; -i 10.10.10.10 &#8211;n 255.255.255.0</span></p>             <p style="margin: 0in 0in 0pt 2in; text-indent: -0.25in;"><span style="font-family: times new roman;"><span style="font-size: 16px;">1.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-size: 16px;">Change IP address and network mask as needed.</span></span></p>             <p style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span style="font-family: times new roman;"><span style="font-size: 16px;">c.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-size: 16px;">Update the Hosts file</span></span></p>             <p style="margin: 0in 0in 0pt 1.5in; text-indent: -1.5in;"><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: times new roman;"><span style="font-size: 16px;">i.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 16px; font-family: times new roman;">Cd /etc</span></p>             <p style="margin: 0in 0in 0pt 1.5in; text-indent: -1.5in;"><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: times new roman;"><span style="font-size: 16px;">ii.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 16px; font-family: times new roman;">vi hosts (edit hosts file)</span></p>             <p style="margin: 0in 0in 0pt 1.5in; text-indent: -1.5in;"><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: times new roman;"><span style="font-size: 16px;">iii.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 16px; font-family: times new roman;">ESC R&nbsp; (enter replace text mode)</span></p>             <p style="margin: 0in 0in 0pt 1.5in; text-indent: -1.5in;"><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: times new roman;"><span style="font-size: 16px;">iv.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 16px; font-family: times new roman;">Change the IP address of the host to the one just configured.</span></p>             <p style="margin: 0in 0in 0pt 1.5in; text-indent: -1.5in;"><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: times new roman;"><span style="font-size: 16px;">v.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 16px; font-family: times new roman;">ESC (to stop editing)</span></p>             <p style="margin: 0in 0in 0pt 1.5in; text-indent: -1.5in;"><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: times new roman;"><span style="font-size: 16px;">vi.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 16px; font-family: times new roman;">ESC :wq! (to save file)</span></p>             <p style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span style="font-family: times new roman;"><span style="font-size: 16px;">d.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-size: 16px;">If the new IP Address is on a different network the default gateway will need to be changed</span></span></p>             <p style="margin: 0in 0in 0pt 1.5in; text-indent: -1.5in;"><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: times new roman;"><span style="font-size: 16px;">i.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 16px; font-family: times new roman;">Cd /etc/sysconfig</span></p>             <p style="margin: 0in 0in 0pt 1.5in; text-indent: -1.5in;"><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: times new roman;"><span style="font-size: 16px;">ii.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 16px; font-family: times new roman;">vi network (edit network file)</span></p>             <p style="margin: 0in 0in 0pt 1.5in; text-indent: -1.5in;"><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: times new roman;"><span style="font-size: 16px;">iii.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 16px; font-family: times new roman;">ESC R &nbsp;(enter replace text mode)</span></p>             <p style="margin: 0in 0in 0pt 1.5in; text-indent: -1.5in;"><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: times new roman;"><span style="font-size: 16px;">iv.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 16px; font-family: times new roman;">Change the GATEWAY=10.10.10.10 line as needed</span></p>             <p style="margin: 0in 0in 0pt 1.5in; text-indent: -1.5in;"><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: times new roman;"><span style="font-size: 16px;">v.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 16px; font-family: times new roman;">ESC (to stop editing)</span></p>             <p style="margin: 0in 0in 0pt 1.5in; text-indent: -1.5in;"><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: times new roman;"><span style="font-size: 16px;">vi.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 16px; font-family: times new roman;">ESC :wq! (to save file)</span></p>             <p style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span style="font-family: times new roman;"><span style="font-size: 16px;">e.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-size: 16px;">Reboot the ESX Host</span></span></p>             <p style="margin: 0in 0in 0pt 1.5in; text-indent: -1.5in;"><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: times new roman;"><span style="font-size: 16px;">i.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 16px; font-family: times new roman;">Type:<span style="color: navy;"> reboot</span></span></p>             <p style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;"><span style="font-family: times new roman;"><span style="font-size: 16px;">3)</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-size: 16px;">Rename VMDK files</span></span></p>             <p style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span style="font-family: times new roman;"><span style="font-size: 16px;">a.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-size: 16px;">Change to the appropriate folder and issue</span></span></p>             <p style="margin: 0in 0in 0pt 1.5in; text-indent: -1.5in;"><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: times new roman;"><span style="font-size: 16px;">i.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 16px; color: navy; font-family: times new roman;">vmkfstools -E filename.vmdk newfilename.vmdk</span></p>             <p style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span style="font-family: times new roman;"><span style="font-size: 16px;">b.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-size: 16px;">From any location using absolute paths</span></span></p>             <p style="margin: 0in 0in 0pt 1.5in; text-indent: -1.5in;"><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: times new roman;"><span style="font-size: 16px;">i.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 16px; color: navy; font-family: times new roman;">vmkfstools -E /vmfs/volumes/[datastore]/[folder]/filename.vmdk /vmfs/volumes/[datastore]/[folder]/newfilename.vmdk</span></p>             <p style="margin: 0in 0in 0pt 1.5in; text-indent: -1.5in;"><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: times new roman;"><span style="font-size: 16px;">ii.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 16px; font-family: times new roman;">[] = user supplied name do not include the brackets in the command</span></p>             <p style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;"><span style="font-family: times new roman;"><span style="font-size: 16px;">4)</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-size: 16px;">Copy VMDK files from one location to another</span></span></p>             <p style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span style="font-family: times new roman;"><span style="font-size: 16px;">a.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-size: 16px;">Change to the appropriate folder and issue</span></span></p>             <p style="margin: 0in 0in 0pt 1.5in; text-indent: -1.5in;"><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: times new roman;"><span style="font-size: 16px;">i.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 16px; color: navy; font-family: times new roman;">vmkfstools &#8211;i filename.vmdk&nbsp; /vmfs/volumes/[datastore]/[folder]/filename.vmdk</span></p>             <p style="margin: 0in 0in 0pt 2in; text-indent: -0.25in;"><span style="font-family: times new roman;"><span style="font-size: 16px;">1.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-size: 16px;">Copies the local file to the remote location</span></span></p>             <p style="margin: 0in 0in 0pt 1.5in; text-indent: -1.5in;"><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: times new roman;"><span style="font-size: 16px;">ii.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 16px; color: navy; font-family: times new roman;">vmkfstools &#8211;i /vmfs/volumes/[datastore]/[folder]/filename.vmdk ./filename.vmdk</span></p>             <p style="margin: 0in 0in 0pt 2in; text-indent: -0.25in;"><span style="font-family: times new roman;"><span style="font-size: 16px;">1.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-size: 16px;">Copies the remote file to the local directory</span></span></p>             <p style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span style="font-family: times new roman;"><span style="font-size: 16px;">b.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-size: 16px;">From any location to any location using absolute paths</span></span></p>             <p style="margin: 0in 0in 0pt 1.5in; text-indent: -1.5in;"><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: times new roman;"><span style="font-size: 16px;">i.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 16px; color: navy; font-family: times new roman;">vmkfstools &#8211;i&nbsp; /vmfs/volumes/[datastore]/[folder]/filename.vmdk&nbsp; /vmfs/volumes/[datastore]/[folder]/filename.vmdk</span></p>             <p style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in;"><span style="font-family: times new roman;"><span style="font-size: 16px;">5)</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-size: 16px;">Delete an VMDK file</span></span></p>             <p style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span style="font-family: times new roman;"><span style="font-size: 16px;">a.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-size: 16px;">Change to the appropriate folder and issue</span></span></p>             <p style="margin: 0in 0in 0pt 1.5in; text-indent: -1.5in;"><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: times new roman;"><span style="font-size: 16px;">i.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 16px; color: navy; font-family: times new roman;">vmkfstools &#8211;U filename.vmdk</span></p>             <p style="margin: 0in 0in 0pt 1in; text-indent: -0.25in;"><span style="font-family: times new roman;"><span style="font-size: 16px;">b.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="font-size: 16px;">From any location using absolute paths</span></span></p>             <p style="margin: 0in 0in 0pt 1.5in; text-indent: -1.5in;"><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: times new roman;"><span style="font-size: 16px;">i.</span><span style="font: 7pt 'times new roman';">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="font-size: 16px; color: navy; font-family: times new roman;">vmkfstools &#8211;U&nbsp; /vmfs/volumes/[datastore]/[folder]/filename.vmdk</span></p>             </div>             </div><img src ="http://www.cnitblog.com/201/aggbug/77254.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/201/" target="_blank">David</a> 2012-01-20 23:33 <a href="http://www.cnitblog.com/201/archive/2012/01/20/77254.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Symantec_Backup_Exec_基础之基础——术语表</title><link>http://www.cnitblog.com/201/archive/2011/07/15/74702.html</link><dc:creator>David</dc:creator><author>David</author><pubDate>Fri, 15 Jul 2011 00:58:00 GMT</pubDate><guid>http://www.cnitblog.com/201/archive/2011/07/15/74702.html</guid><wfw:comment>http://www.cnitblog.com/201/comments/74702.html</wfw:comment><comments>http://www.cnitblog.com/201/archive/2011/07/15/74702.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/201/comments/commentRss/74702.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/201/services/trackbacks/74702.html</trackback:ping><description><![CDATA[备份 <br />复制计算机驱动器上的所选文件(如程序文件、系统状态、数据库等)，并将这些文件存储到可靠的介质格式上的过程。<br /><br />备份方法 <br />运行备份作业时选择的选项，用来指定 Backup Exec 如何设置每个文件的备份状态。例如，根据所选的备份方法，Backup Exec 可以重置归档位或使用修改的时间确定文件是否需要备份。<br /><br />备份集 <br />运行备份作业时从单个资源（如 Microsoft Exchange 数据集）中选择且集中放置在介质上的数据。从多个资源选定的文件创建多个备份集。<br /><br />备份至磁盘文件夹 <br />一种由 Backup Exec 作为任何真实存储设备对待的虚拟设备。备份至磁盘文件夹可能属于驱动器池，但不属于层叠式驱动器池。<br /><br />ADAMM（高级设备和介质管理） <br />一种 Backup Exec 数据库，可以自动跟踪介质和存储设备，并确保将备份写入相应的介质。<br /><br />Backup Exec 服务帐户 <br />为 Backup Exec 系统服务配置的用户帐户。如果包含用户名和密码，并提供作为服务登录的权限，则可充当 Backup Exec 管理员。<br /><br />报废的介质 <br />通常因错误太多而不再使用的介质。报废的介质可用于恢复作业，但不可用于备份作业。介质必须先报废，然后才能删除。如果想使用已删除的介质，Backup Exec 会将其视为导入的介质。必须先对它进行编录，然后才能从中恢复。<br /><br />备份策略 <br />为备份网络而执行的过程。好的备份策略能够在灾难发生后最短的时间内使计算机运行<br />起来。<br /><br />本地设备 <br />连接到服务器的磁盘或磁带机。它只能用于挂接它的服务器。<br /><br />编录 <br />用于跟踪在备份或归档操作期间所创建介质的内容的数据库。只能从完全编录的介质中恢复信息。<br /><br />策略 <br />用于管理备份作业和策略的方法。策略包括为作业提供设置的模板。<br /><br />层叠式驱动器池 <br />将相同驱动器类型的驱动器分为一组，以使这些驱动器在逻辑上作为一个驱动器出现。利用这种分组，如果备份超过一个驱动器中的介质的容量，则可以自动在池中定义的下一个驱动器上继续进行。<br /><br />差异备份 - 备份自上次完全备份以来更改过的文件 <br />一种备份方法，可以备份自上次完全备份或增量备份以来已更改（根据归档位）的所有文件。这种方法不会影响任何介质循环方案，因为没有重置归档位。<br /><br />差异备份 - 使用修改的时间 <br />一种备份方法，可以备份自上次完全备份以来更改的所有文件（使用文件的上次修改日期和时间戳）。<br /><br />常见加密密钥 <br />使用加密方法备份数据和恢复加密数据所能使用的加密密钥类型。<br /><br />错误处理规则 <br />为失败的或取消的作业设置重试选项和最终作业处置方法的默认规则或自定义规则。重试选项使您可以指定在作业失败后隔多久重试一次，以及两次重试之间要等待多长时间。最终的作业处置方法是挂起作业，直到修复了错误为止。<br /><br />代理 <br />使工作站或其他计算机（例如 Microsoft SQL Server）能够与 Backup Exec 介质服务器进行交互的组件。<br /><br />导入的介质 <br />由此 Backup Exec 安装之外的产品创建但属于 Backup Exec 环境中的存储设备的介质。<br /><br />登录帐户 <br />存储 Windows 用户帐户凭证且使 Backup Exec 可以管理用户名和密码的帐户。它可以用来浏览资源或处理作业。<br /><br />分布式编录 <br />Central Admin Server Option 中的编录位置。将编录中的映像文件从每台受控介质服务器分发到中央管理服务器。由于分发的这些文件不包含整个编录，因此都较小。它们只包含有关备份集的信息。包含有关备份集详细信息的历史记录文件保留在受控介质服务器上。<br /><br />分配的介质 <br />与介质集关联且具有当前附加周期和覆盖保护周期的介质。<br /><br />分区 <br />自动化介质库中供 Backup Exec 操作使用的插槽的分组。<br /><br />覆盖保护周期 <br />数据在被覆盖之前保留在特定介质上的时间长度（除非介质被清除、格式化、移到暂存介质或者&#8220;介质覆盖保护级别&#8221;设置成&#8220;无&#8221;）。覆盖保护周期从上次将数据附加到介质时开始计算。<br /><br />复制备份集模板 <br />一个模板，使您能够使用多段备份策略将数据备份至磁盘，然后再将其复制到磁带。<br /><br />复制的编录 <br />Central Admin Server Option 中的编录位置。编录中的所有文件都从受控介质服务器复制到中央管理服务器。<br /><br />负载均衡 <br />Backup Exec 中的一项功能，可以在任何可用存储设备中自动分发作业。这也是 Backup Exec Central Admin Server Option 的一项功能，可以将作业从中央管理服务器自动分发给多个受控介质服务器，以便在各种存储设备中进行处理。<br /><br />附加周期 <br />可将数据添加到介质的时间长度。附加周期从第一个备份作业写入介质时开始计算。<br /><br />高级加密标准 (AES) <br />加密过程中使用的密码。Backup Exec 支持 128 位 AES 和 256 位 AES。与 256 位 AES 相比，128 位 AES 的备份速度较快，但是安全性略低。<br /><br />工作集 - 备份文件 - 当天更改的文件 <br />一种备份方法，可以备份今天创建或修改的所有文件。<br /><br />工作集 - 备份文件 - 在 (x) 天内被访问的 <br />一种备份方法，可以备份已经在指定天数内访问过的数据。如果选择此备份方法，可以在在 x 天内访问的文件字段中指定所需的天数。<br /><br />共享设备 <br />可由多台服务器访问的磁盘或磁带机。<br /><br />故障转移 <br />当集群中的节点不可用时发生的集群资源迁移至可用节点的事件。<br /><br />管理控制台 <br />允许运行 Backup Exec 操作的用户界面。可从介质服务器或远程计算机中运行用户界面。<br /><br />归档位 <br />每当文件被修改时设置的文件属性。对于使用归档位的完全备份和增量备份来说，该归档位在备份完成后关闭，以示文件备份完毕。如果文件在下一次增量备份或者完全备份之前又被更改，则该归档位将打开，同时 Backup Exec 将备份该文件。<br /><br />合成备份 <br />Advanced Disk-based Backup Option 的一项功能，它允许根据基准和后续增量备份组合或者合成一个完全备份。<br /><br />恢复 <br />将已备份到介质的数据返回磁盘的过程。<br /><br />基准 <br />在合成备份策略中运行的第一个备份作业。基准备份只运行一次，并且将会备份选定资源上的所有文件。完全备份可以使用策略中同样包含的基准备份和后续增量备份进行组合或合成。<br /><br />集群 <br />由两台或四台计算机（称作节点）组成的组，这些计算机连接在网络中，通过运行软件来实现每个节点对共享磁盘的访问。<br /><br />集中编录 <br />Central Admin Server Option 中的编录位置。编录中的所有文件都保存在中央管理服务<br />器上。<br /><br />集中恢复 <br />可以通过中央管理服务器运行和管理所有恢复操作的过程。集中恢复仅适用于 Central Admin Storage Option。<br /><br />加密 <br />将数据转换成没有刻意告知就无法读取的格式。<br /><br />节点 <br />集群环境中的服务器。节点也可以是管理控制台上树视图的一项选择内容。<br /><br />结合点 <br />硬盘上指向硬盘另一处的数据或其他存储设备上的物理位置。<br /><br />亦称装入点。<br /><br />解密 <br />将数据从加密格式转换为可以读取的格式的过程。<br /><br />介质 ID <br />Backup Exec 为 Backup Exec 中使用的每个介质分配的唯一内部标签。ID 可以存储每个介质的统计数据。介质 ID 不能清除或更改。<br /><br />介质保管库 <br />介质的实际物理位置的用户定义逻辑表示形式，如特定介质室、暂存仓或场外位置。<br /><br />介质标签 <br />用来标识介质的标签。Backup Exec 可以自动分配标签，或者也可以指定为某种介质分配的标签前缀和编号。如果介质首次在带有条码读取器的介质库中使用，介质标签将使用条码标签。<br /><br />介质服务器 <br />安装有 Backup Exec 且正在运行 Backup Exec 服务的计算机。<br /><br />介质服务器池 <br />Backup Exec Central Admin Server Option 的一项功能，用来对池中限定执行备份作业的受控介质服务器进行分组。<br /><br />介质覆盖保护级别 <br />Backup Exec 中的全局设置，可以用来指定是否覆盖暂存介质、导入的介质或分配的介质，而与介质的覆盖保护周期无关。<br /><br />介质集 <br />一组应用到与介质集关联的介质的规则。这些规则可以指定附加周期、覆盖保护周期和存储周期。<br /><br />介质循环 <br />确定介质何时可以由 Backup Exec 重新使用或循环使用的策略。例如，常见的介质循环策略包括&#8220;子&#8221;、&#8220;父/子&#8221;和&#8220;祖父/父/子&#8221;。<br /><br />警报 <br />通常需要用户进行某种形式的交互操作或确认的事件。<br /><br />警报类别 <br />Backup Exec 中出现的可以生成警报的一个或多个事件组。例如，警报类别包括&#8220;作业成功&#8221;、&#8220;安装警告&#8221;和&#8220;数据库维护失败&#8221;。<br /><br />警报类型 <br />警报的分类，用于确定警报的严重程度。警报类型包括&#8220;错误&#8221;、&#8220;警告&#8221;、&#8220;信息&#8221;和&#8220;要求注意&#8221;四种。<br /><br />警报源 <br />可以生成警报的源。警报源包括作业、介质、设备和系统。<br /><br />静默模式安装 <br />使用 Backup Exec 安装光盘上的 setup.exe 程序，从命令行安装 Backup Exec 的过程。<br /><br />可回收介质 <br />分配给介质集但数据覆盖保护周期已过的介质。<br /><br />快照 <br />一致的特定即时点卷视图，用作备份操作的参考点。创建完快照后，可继续修改主数据，而不会影响备份操作。<br /><br />联机介质位置 <br />&#8220;介质&#8221;视图中的节点，列出存储设备、自动化介质库插槽或备份至磁盘文件夹中的介质。<br /><br />密码短语 <br />创建加密密钥所用的字母、数字和特殊字符的组合。密码短语与密码相似，但是更长，可以提供更强的数据保护。<br /><br />模板 <br />策略的必需元素，它定义 Backup Exec 处理作业的方式和时间。模板指定要用于作业的设备、设置和计划选项。每个策略必须至少包含一个模板。<br /><br />模板规则 <br />一种设置策略中模板间关系的方法。<br /><br />设备 <br />在 Backup Exec 中，设备可以指自动化介质库驱动器、独立驱动器、备份至磁盘文件夹、备份至磁盘设备或层叠式驱动器池。<br /><br />设备池 <br />可以用于 Backup Exec 操作的一组设备。分配给设备池的作业在第一个可用的设备上<br />运行。<br /><br />审计日志 <br />在 Backup Exec 中执行的所有操作的运行历史记录。对于被配置为在审计日志中显示的操作，每发生这样一个操作，就会在日志中创建一个条目。<br /><br />实际映像恢复 <br />Advanced Disk-based Backup Option 的一项功能，它使 Backup Exec 可以将目录中的内容恢复到它们在任何完全备份或增量备份时的状态。如果执行特定备份时存在恢复选择，可以从目录视图中选择这些恢复。备份之前删除的文件不会恢复。在实际映像恢复中，只有版本正确的文件才能从包含它们的相应完全备份或增量备份进行恢复。早期版本无需恢复并覆盖。<br /><br />事件 <br />在 Backup Exec 操作期间执行的操作，如取消作业。<br /><br />受保护服务器 <br />网络上正由 Backup Exec 备份的任何计算机，包括 Backup Exec 介质服务器。<br /><br />受控介质服务器 <br />由中央管理服务器管理的介质服务器。受控介质服务器负责实际处理 Central Admin Server Option 环境中的备份和恢复作业。受控介质服务器只能用于 Backup Exec Central Admin Server Option。<br /><br />受限加密密钥 <br />使用加密备份数据时所能使用的加密密钥类型。只有知道密码短语的密钥拥有者或用户，才能恢复使用受限加密密钥加密的数据。<br /><br />数据库服务器 <br />安装 Backup Exec SAN Shared Storage Option 时共享高级设备和介质管理 (ADAMM) 数据库和共享编录数据库所在的服务器。<br /><br />脱机介质位置 <br />&#8220;介质&#8221;视图中的节点，列出在场内但不在驱动器、插槽或介质保管库中的介质。如果使用 Backup Exec 从设备或插槽中删除介质，则介质将被自动移到脱机介质位置。<br /><br />脱离主机备份 <br />Backup Exec Advanced Disk-based Backup Option 的一项功能，它允许在 Backup Exec 介质服务器（而不是远程计算机或主机）上处理备份操作。将备份从远程计算机转移到介质服务器可以获得更好的备份性能，同时减轻远程计算机的负担。<br /><br />完全备份 - 备份文件 - 复制文件 <br />一种备份方法，可以备份选定的所有数据。它不会影响任何介质循环方案，因为没有重置归档位。<br /><br />完全备份 - 备份文件 - 归档文件（成功复制后删除文件） <br />一种备份方法，可以备份选定数据、检验介质，然后将数据从卷中删除。要删除数据，必须具有删除文件的权限；否则将备份但不删除数据。<br /><br />完全备份 - 备份文件 - 使用归档位（重置归档位） <br />一种备份方法，可以备份所有选择用于备份的文件并重置归档位以指示文件已备份。<br /><br />完全备份 - 备份文件 - 使用修改的时间 <br />一种备份方法，可以备份所有选择用于备份的文件并允许使用修改的日期和时间戳进行增量备份和差异备份。<br /><br />唯一消息标识符 (UMI) <br />与作业日志中报告的错误关联的唯一代码。这些代码包含一些超链接，单击这些超链接可以转到 Symantec Software 支持服务网站，并访问技术说明以及与特定错误相关的故障排除步骤。<br /><br />向导 <br />一系列指导面板，指导您完成任务（如创建备份作业）所需的步骤。<br /><br />选择列表 <br />被选中以便备份或恢复的数据。选择列表可以保存并用于多个作业。<br /><br />远程代理 <br />Remote Agent 是一项在 Microsoft Windows 计算机或 NetWare 远程服务器和工作站上运行的 Backup Exec 系统服务，它允许远程备份和恢复这些计算机，并可增加备份吞吐量。<br /><br />远程管理器 <br />在远程计算机上运行的 Backup Exec 用户界面（管理控制台）。<br /><br />暂存介质 <br />与介质集无关但可以覆盖的介质。暂存介质包括新的或空白介质、清除的介质以及从其他组移动的介质。<br /><br />增量备份 - 备份自上次完全备份或增量备份以来更改过的文件 - 使用归档位（重置归档位） <br />一种备份方法，只备份自上次完全备份或增量备份以来已经发生更改（根据归档位）的文件。使用这种方法，可以重置归档位，以指示文件已备份<br /><br />增量备份 - 备份自上次完全备份或增量备份以来更改过的文件 - 使用修改的时间 <br />一种备份方法，可以备份自上次完全备份或增量备份以来更改的所有文件（使用文件的上次修改日期和时间戳）。<br /><br />中央管理服务器 <br />安装了 Central Admin Server Option (CASO) 的 Backup Exec 介质服务器。在 CASO 环境中，中央管理服务器为存储环境中的 Backup Exec 介质服务器提供了集中管理以及委派作业处理和负载均衡功能。<br /><br />装入点 <br />装入文件系统后可对其进行访问的目录。 <br />亦称结合点。<br /><br />资源 <br />可选择用于备份的数据文件和数据库（如 Windows 共享和 Microsoft SQL 数据库）。<br /><br />资源发现 <br />允许在 Windows 域内检测新备份资源的 Backup Exec 操作。<br /><br />自定义的错误处理规则 <br />可为某个错误类别中的特定错误代码定义的错误处理规则。当作业失败并显示与某条自定义错误处理规则相关联的错误代码时，即对该作业应用重试选项和最终作业处置过程。<br /><br />自定义过滤器 <br />可以定义以仅显示在&#8220;作业监视器&#8221;中指定的信息的过滤器。<br /><br />自动化介质库 <br />一种高容量的数据存储系统，用于存储、检索、读取和写入多盘盒式磁带。介质库包含了存储仓，可以放置磁带，还有一个机械装置用于将磁带移动到驱动器中。<br /><br />作业 <br />介质服务器已计划处理的操作。例如，如果您进行了选择并根据这些选择提交了一个备份，您就创建了一个备份作业。作业包含源或目标信息、设置和计划。作业类型包括备份、恢复、介质循环、资源发现、报告、测试运行和实用程序作业。<br /><br />作业历史记录 <br />有关在作业处理中发生的事件的报告（统计数据、错误等）。<br /><br />作业日志 <br />包含作业结果的日志。它在运行作业时创建。可以浏览作业日志以查看作业错误和作业详细资料。<br /><br />作业委派 <br />由中央管理服务器将作业分发给受控介质服务器上的可用存储设备的过程。作业委派仅适用于 Central Admin Server Option。<br /><br />2011.4.28<br /><br />Hongkun Guo<br /><br />Novots<img src ="http://www.cnitblog.com/201/aggbug/74702.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/201/" target="_blank">David</a> 2011-07-15 08:58 <a href="http://www.cnitblog.com/201/archive/2011/07/15/74702.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>虚拟机环境中linux系统增加磁盘空间</title><link>http://www.cnitblog.com/201/archive/2011/05/27/74088.html</link><dc:creator>David</dc:creator><author>David</author><pubDate>Fri, 27 May 2011 06:19:00 GMT</pubDate><guid>http://www.cnitblog.com/201/archive/2011/05/27/74088.html</guid><wfw:comment>http://www.cnitblog.com/201/comments/74088.html</wfw:comment><comments>http://www.cnitblog.com/201/archive/2011/05/27/74088.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/201/comments/commentRss/74088.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/201/services/trackbacks/74088.html</trackback:ping><description><![CDATA[前段时间在vmware ESXi虚拟化环境中安装了一套turbolinux系统，当时并没有在意磁盘如何规划，使用了LVM，心想反正能够随时扩展。不料时间不长，问题出现了，分配的磁盘空间满了。以为能够象windows Server环境中使用磁盘管理增加动态磁盘那样方便呢，就随意在ESX管理器中将原有的磁盘从10G增加到了13G，重启挂载LVM没有左右，重启系统了。<br /><br />    重启后 ，使用fdisk -l能够看到/dev/sda的空间已经增加了，但仍还是原来的两个磁盘/dev/sda1和/dev/sda2 （LVM）。在LVM逻辑卷管理其中仍是原来的10G空间，但在&#8220;未初始化的实例&#8221;中可以看到增加的3G未初始化的磁盘实例（unpartitioned space on /dev/sda）。<br /><br />    解决办法：<br /><br />       使用sfdisk /dev/sda 命令，选择n （add a new partition），然后选择p （primary partition ），选择一个磁盘号，随后系统会自动提示选择起始块和最后的块。使用p（print the partion table）查看磁盘是否已经增加：<br /><br />        Disk /dev/sda: 13.9 GB, 13958643712 bytes<br />       255 heads, 63 sectors/track, 1697 cylinders<br />       Units = cylinders of 16065 * 512 = 8225280 bytes<br /><br />   Device Boot      Start         End      Blocks   Id  System<br />/dev/sda1   *           1          13      104391   83  Linux<br />/dev/sda2              14        1305    10377990   8e  Linux LVM<br />/dev/sda3            1306        1697     3148740   83  Linux<br />可以看到/dev/sda3的 id是83，这样的磁盘无法加入到lvm中，选择t（change a partition's system id），键入8e （Linux LVM 的id）。<br /><br />  最后，w保存退出。再使用sfsik -l即可看到新增的磁盘。<br /><br />  此时，使用lvm的初始化磁盘工具或者直接使用pvcreate /dev/sda3命令会提示出错，提示<br /><br />    Device &#8220;/dev/sda3&#8221; not found (or ignored by filtering)<br /><br />   出错的原因在于使用fdisk修改配置时没有在runlevel 1下进行，重启系统后可解决此问题。<br /><br />  [root@turbolinux ~]# fdisk -l<br /><br />Disk /dev/sda: 13.9 GB, 13958643712 bytes<br />255 heads, 63 sectors/track, 1697 cylinders<br />Units = cylinders of 16065 * 512 = 8225280 bytes<br /><br />   Device Boot      Start         End      Blocks   Id  System<br />/dev/sda1   *           1          13      104391   83  Linux<br />/dev/sda2              14        1305    10377990   8e  Linux LVM<br />/dev/sda3            1306        1697     3148740   8e  Linux LVM<br />[root@turbolinux ~]# pvcreate /dev/sda3<br />  Physical volume "/dev/sda3" successfully created<br />[root@turbolinux ~]# lvm<br />lvm&gt; pvscan<br />  PV /dev/sda2   VG VolGroup00      lvm2 [9.88 GB / 640.00 MB free]<br />  PV /dev/sda3                      lvm2 [3.00 GB]<br />  Total: 2 [12.88 GB] / in use: 1 [9.88 GB] / in no VG: 1 [3.00 GB]<br />lvm&gt; vgextend VolGroup00 /dev/sda3<br />  Volume group "VolGroup00" successfully extended<br />lvm&gt;  lvdisplay<br />  --- Logical volume ---<br />  LV Name                /dev/VolGroup00/LogVol00<br />  VG Name                VolGroup00<br />  LV UUID                9tKx5o-7wgM-0BhF-OMqy-EY14-ttbL-30j1px<br />  LV Write Access        read/write<br />  LV Status              available<br />  # open                 1<br />  LV Size                7.25 GB<br />  Current LE             232<br />  Segments               2<br />  Allocation             inherit<br />  Read ahead sectors     auto<br />  - currently set to     256<br />  Block device           253:0<br /> lvm&gt;  lvextend<br />  Please specify either size or extents but not both.<br />lvm&gt; lvextend -L+2G /dev/VolGroup00/LogVol00<br />  Extending logical volume LogVol00 to 9.25 GB<br />  Logical volume LogVol00 successfully resized<br />lvm&gt; lvdisplay<br />  --- Logical volume ---<br />  LV Name                /dev/VolGroup00/LogVol00<br />  VG Name                VolGroup00<br />  LV UUID                9tKx5o-7wgM-0BhF-OMqy-EY14-ttbL-30j1px<br />  LV Write Access        read/write<br />  LV Status              available<br />  # open                 1<br />  LV Size                9.25 GB<br />  Current LE             296<br />  Segments               3<br />  Allocation             inherit<br />  Read ahead sectors     auto<br />  - currently set to     256<br />  Block device           253:0<br /><br />逻辑卷的大小已经更改到9.23G了，但文件系统仍没有增加：<br /><br />[root@turbolinux ~]# df<br />文件系统               1K-块        已用     可用 已用% 挂载点<br />/dev/mapper/VolGroup00-LogVol00<br />                       7364072   5140148   1843844  74% /<br />/dev/sda1               101086     25946     69921  28% /boot<br />tmpfs                  2073968         0   2073968   0% /dev/shm<br /><br />需要使用resize2fs命令将文件系统扩展到增加的空间上：<br />[root@turbolinux ~]# resize2fs /dev/VolGroup00/LogVol00<br />resize2fs 1.39 (29-May-2006)<br />Filesystem at /dev/VolGroup00/LogVol00 is mounted on /; on-line resizing required<br />Performing an on-line resize of /dev/VolGroup00/LogVol00 to 2424832 (4k) blocks.<br />The filesystem on /dev/VolGroup00/LogVol00 is now 2424832 blocks long.<br /><br />[root@turbolinux ~]# df -m<br />文件系统               1M-块        已用     可用 已用% 挂载点<br />/dev/mapper/VolGroup00-LogVol00<br />                          9176      5020      3683  58% /<br />/dev/sda1                   99        26        69  28% /boot<br />tmpfs                     2026         0      2026   0% /dev/shm<br />[root@turbolinux ~]# df<br />文件系统               1K-块        已用     可用 已用% 挂载点<br />/dev/mapper/VolGroup00-LogVol00<br />                       9395560   5140156   3770492  58% /<br />/dev/sda1               101086     25946     69921  28% /boot<br />tmpfs                  2073968         0   2073968   0% /dev/shm<br />至此，磁盘空间的扩展工作完毕。<br /><br /> <br /><br />另，更改swap空间的内容如下：<br /><br />默认安装时，不知为何，将swap的空间定为了5G，感觉没有必要这么大，需减少一点，因为swap在VolGroup00中，所以调整大小非常方便，<br /><br />　　具体操作如下：<br /><br />　　关闭swap先<br /><br />　　# swapoff -v /dev/VolGroup00/LogVol01<br /><br />　　# lvm lvreduce /dev/VolGroup00/LogVol01 -L -1G<br /><br />　　# mkswap /dev/VolGroup00/LogVol01<br /><br />　　重新打开swap<br /><br />　　# swapon -va<br /><br />swap常用命令：<br /><br />cat /proc/swaps<br /><br />swapon -s<br /><br />调整swap大小：<br />dd if=/dev/zero of=swapfree bs=32k count=8192  (256MB)<br />mkswap swapfree<br />swapon /tmp/swapfree<br /><br />停止：<br />swapoff /tmp/swapfree<br />启动时加载:<br />在/etc/fstab文件中，加入下行：<br />/tmp/swapfree swap swap defaults 0 0<img src ="http://www.cnitblog.com/201/aggbug/74088.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/201/" target="_blank">David</a> 2011-05-27 14:19 <a href="http://www.cnitblog.com/201/archive/2011/05/27/74088.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Analyzing SCSI Reservation conflicts on VMware Infrastructure 3.x and vSphere 4.x</title><link>http://www.cnitblog.com/201/archive/2010/11/11/71197.html</link><dc:creator>David</dc:creator><author>David</author><pubDate>Thu, 11 Nov 2010 06:30:00 GMT</pubDate><guid>http://www.cnitblog.com/201/archive/2010/11/11/71197.html</guid><wfw:comment>http://www.cnitblog.com/201/comments/71197.html</wfw:comment><comments>http://www.cnitblog.com/201/archive/2010/11/11/71197.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/201/comments/commentRss/71197.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/201/services/trackbacks/71197.html</trackback:ping><description><![CDATA[<p>Analyzing SCSI Reservation conflicts on VMware Infrastructure 3.x and vSphere 4.x<br>Details<br>&#8226;ESX 3.0.x, ESX 3.5, or ESX 4.0 VMkernel logs contain the following messages: </p>
<p>SCSI: vm 1043: 5522: Sync CR at 64<br>SCSI: vm 1043: 5522: Sync CR at 48<br>SCSI: vm 1043: 5522: Sync CR at 32<br>SCSI: vm 1043: 5522: Sync CR at 16<br>SCSI: vm 1043: 5522: Sync CR at 0<br>WARNING: SCSI: 5532: Failing I/O due to too many reservation conflicts<br>WARNING: SCSI: 5628: status SCSI reservation conflict, rstatus 0xc0de01 for vmhba1:0:7. residual R 919, CR 0, ER 3<br>WARNING: J3: 1970: Error committing txn to slot 0: SCSI reservation conflict <br>Solution<br>There are two main categories of operation under which VMFS makes use of SCSI reservations.<br>&nbsp;<br>The first category is for VMFS data-store level operations. These include opening, creating, resignaturing, and expanding/extending of VMFS data-store.<br>&nbsp;<br>The second category involves acquisition of locks. These are locks related to VMFS specific meta-data (called cluster locks) and locks related to files (including directories). Operations in the second category occur much more frequently than operations in the first category. The following are examples of VMFS operations that require locking metadata:<br>&#8226;Creating a VMFS datastore<br>&#8226;Expanding a VMFS datastore onto additional extents<br>&#8226;Powering on a virtual machine<br>&#8226;Acquiring a lock on a file<br>&#8226;Creating or deleting a file<br>&#8226;Creating a template<br>&#8226;Deploying a virtual machine from a template<br>&#8226;Creating a new virtual machine<br>&#8226;Migrating a virtual machine with VMotion<br>&#8226;Growing a file, for example, a Snapshot file or a thin provisioned Virtual Disk&nbsp; <br>If the VMkernel log contains the messages described in the Details section, follow this procedure:<br>1.If the VMware ESX version is 3.0.1, install Patch ESX-1002960: Fix for SCSI Reservation Conflict Issue. For more information, see ESX Server 3.0.1, Patch ESX-1002960: Fix for SCSI Reservation Conflict Issue (1002960).</p>
<p>If the VMware ESX version is 3.0.2, install Patch ESX-1002974: Fix for SCSI Reservation Conflicts. For more information, see ESX Server 3.0.2, Patch ESX-1002974: Fixes for SCSI Reservation Conflicts; Support for EMC Invista (1002974).</p>
<p>2.If the log messages persist and the ESX host is running on an HP Server using Insight Manager Agents, see Insight Manager may cause SCSI reservation conflicts (1004771). <br>3.If the log messages persist, see the article that applies to your environment: </p>
<p>SCSI Reservation Failures on HDS USP and NSC Arrays (1005010)<br>SCSI Reservation Failures on HP XP Storage Arrays (1005011)<br>SCSI Reservation Failures on Hitachi USP and NSC Arrays (1006001)<br>SCSI Reservation Failures on SUN StorageTek 9985 and 9990 Arrays (1006002)<br>SCSI Reservation Failures on Nihon Unisys SANARENA 5200 and 5800 Arrays (1006003)<br>Virtual machines may experience I/O failures due to too many SCSI reservation conflicts on some 3PAR arrays (1020366<br>&nbsp;</p>
<p>Note: The list of arrays is not exhaustive and will be revised when other arrays are identified reporting these errors.</p>
<p>4.Follow these steps to resolve potential sources of the reservation:&nbsp; <br>a.Try to serialize the operations of the shared LUNs, if possible, limit the number of operations on different hosts that require SCSI reservation at the same time. <br>b.Increase the number of LUNs and try to limit the number of ESX hosts accessing the same LUN. <br>c.Reduce the number snapshots as they cause a lot of SCSI reservations. <br>d.Do not schedule backups (VCB or console based) in parallel from the same LUN. <br>e.Try to reduce the number of virtual machines per LUN. See vSphere 4.0 Configuration Maximums and ESX 3.5 Configuration Maximums. <br>f.What targets are being used to access LUNs? <br>g.Check if you have the latest HBA firmware across all ESX hosts. <br>h.Is the ESX running the latest BIOS (avoid conflict with HBA drivers)? <br>i.Contact your SAN vendor for information on SP timeout values and performance settings and storage array firmware. <br>j.Turn off 3rd party agents (storage agents) and rpms not certified for ESX. <br>k.MSCS rdms (active node holds permanent reservation). For more information, see ESX servers hosting passive MSCS nodes report reservation conflicts during storage operations (1009287). <br>l.Ensure correct Host Mode setting on the SAN array. <br>m.LUNs removed from the system without rescanning can appear as locked. <br>n.When SPs fail to release the reservation, either the request did not come through (hardware, firmware, pathing problems) or 3rd party apps running on the service console did not send the release. Busy virtual machine operations are still holding the lock. <br>Note: Use of SATA disks is not recommended in high I/O configuration or when the above changes do not resolve the problem while SATA disks are used.<br>&nbsp;<br>If your array is not listed above and none of the above points eliminate the log messages, file a support request with VMware Support and note this KB Article ID in the problem description.&nbsp; For more information, see How to Submit a Support Request.<br>Keywords<br></p>
<img src ="http://www.cnitblog.com/201/aggbug/71197.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/201/" target="_blank">David</a> 2010-11-11 14:30 <a href="http://www.cnitblog.com/201/archive/2010/11/11/71197.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Clustering Virtual Machines </title><link>http://www.cnitblog.com/201/archive/2010/11/11/71196.html</link><dc:creator>David</dc:creator><author>David</author><pubDate>Thu, 11 Nov 2010 06:20:00 GMT</pubDate><guid>http://www.cnitblog.com/201/archive/2010/11/11/71196.html</guid><wfw:comment>http://www.cnitblog.com/201/comments/71196.html</wfw:comment><comments>http://www.cnitblog.com/201/archive/2010/11/11/71196.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/201/comments/commentRss/71196.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/201/services/trackbacks/71196.html</trackback:ping><description><![CDATA[<p>[an error occurred while processing this directive]&nbsp; Prev&nbsp;&nbsp; Contents&nbsp;&nbsp; Last&nbsp;&nbsp; Next </p>
<p><br>Clustering Virtual Machines </p>
<p>Clustering Software in Virtual Machines <br>Network Load Balancing, Microsoft Clustering Service and Veritas Clustering Service run without modification in virtual machines on ESX Server 2.0. </p>
<p>Use of clustering services in virtual machines provides high availability with less hardware (such as machines and network adapters). </p>
<p><br>Clustering Scenarios <br>Several scenarios are possible for clustering in virtual machines. </p>
<p>Cluster in a Box — <br>This provides simple clustering to deal with software crashes or administrative errors. The cluster consists of multiple virtual machines on a single physical machine. It supports shared disks without any shared SCSI hardware. It supports heartbeat network without any extra network adapters. </p>
<p>&nbsp;</p>
<p><br>A four-node cluster on a single physical machine; each node is running clustering software </p>
<p>Cluster across Boxes — <br>This type of cluster also consists of virtual machines. The virtual disks are stored on real shared disks, so all virtual machines can access them. Using this type of cluster, you can deal with the crash of a physical machine. </p>
<p>&nbsp;</p>
<p><br>A four-node cluster using two physical machines; each node is running clustering software. </p>
<p>Consolidating Clusters — <br>This type of cluster combines features of the previous two types. For example, you can consolidate four clusters of two machines each to two physical machines with four virtual machines each. This provides protection from both hardware and software failures. </p>
<p>&nbsp;</p>
<p><br>Four two-node clusters moved from eight physical machines to two. </p>
<p>Cost-effective Standby Host — <br>Provide a standby host for multiple physical machines on one standby box with multiple virtual machines. </p>
<p>&nbsp;</p>
<p><br>A standby host using three virtual machines on a single physical machine; all are running clustering software. </p>
<p><br>Configuring Virtual Machine Clusters with Shared Disks <br>To create a set of clustered virtual machines, you need to configure each of them with the following:</p>
<p>&#8226;A primary virtual SCSI host adapter with one SCSI virtual disk <br>&#8226;At least two virtual network adapters <br>◦A public network adapter connected to vmnicx (that is, to vmnic0 or higher). A vmnic is a virtual machine device that uses a network adapter dedicated to the virtual machines. <br>◦A private network adapter connected to vmnicx (that is, to vmnic0 or higher) or to vmnet_x (that is, to vmnet_0 or higher). This device selection must match in all virtual machines in a cluster set. This is the network adapter that the clustering service will use to monitor the heartbeat between nodes. <br>&#8226;The remaining default virtual machine devices (such as the CD-ROM drive and the floppy disk drive). <br>In addition to the above devices, the following is required for shared storage: </p>
<p>&#8226;A secondary virtual SCSI host adapter <br>&#8226;One or more virtual disks that will be shared attached to the secondary SCSI host adapter </p>
<p>Important Notes <br>&#8226;Each virtual machine by default has five PCI slots available. In this configuration (two network adapters and two SCSI host bus adapters), four of these slots are used. This leaves one more PCI slot for a third network adapter if needed. <br>&#8226;VMware virtual machines currently emulate only the SCSI-2 disk reservation protocol and do not support applications using SCSI-3 disk reservations. However, all popular clustering software (including MSCS and VCS) currently uses SCSI-2 reservations. </p>
<p>Two Node Cluster with Microsoft Cluster Service on a Single ESX Server Machine <br>This procedure creates a two-node cluster using Microsoft Cluster Service on a single ESX Server machine and uses the following: </p>
<p>&#8226;Portsaid = host name of node 1 of the cluster <br>&#8226;Kena = host name of node 2 of the cluster <br>&#8226;Arish = public host name of the cluster <br>&#8226;sharedfs = VMFS volume label of the shared storage <br>&#8226;vms = VMFS volume label of the local storage <br>Note: Virtual disks stored on vms and sharedfs can also be stored on the same partition. In this case, use the partition label on which these virtual disks reside. </p>
<p><br>Creating the First Node's Base Virtual Machine <br>1.Access the VMware Management Interface at <br><a href="https://%3chostname%3e/">https://&lt;hostname&gt;/</a> and log on as the user who will own the virtual machine. <br>2.Click Add Virtual Machine. <br>3.Keep the default Guest Operating System selection of Microsoft Windows 2000 Server. <br>Note: This example uses Microsoft Windows 2000 Server as the guest operating system. You may substitute another Windows operating system that supports Microsoft Cluster Service. </p>
<p>4.Change the Display Name field to describe the virtual machine — for example, MSCS Node 1 (Portsaid). <br>5.Change the Location of the virtual machine configuration file to <br>/home/&lt;user&gt;/vmware/cluster1/cluster1.vmx. <br>6.Click Next. <br>7.Select the number of processors you want the guest operating system to use, up to 2. <br>8.Change Memory to show the amount of RAM you want to allocate to this virtual machine. <br>9.Click Next. <br>10.Click Blank to create a new virtual disk. <br>11.Choose the VMFS volume on which you want to store the virtual disk. <br>12.Give the virtual disk image a unique name — for example, cluster1.dsk. <br>13.If you need a primary SCSI disk larger than 4GB, enter the appropriate value in the Capacity field. <br>14.Choose the virtual SCSI node to which you want to attach the virtual disk. <br>15.By default, the disk mode is set to persistent. Click Persistent to verify the disk mode. <br>16.Click Next. <br>You have successfully created the virtual machine. </p>
<p>The hardware tab for this virtual machine appears. From that tab, you now need to add additional hardware devices. </p>
<p>Virtual Disk Configuration — <br>You need a shared SCSI controller and shared SCSI disks for shared access to clustered services and data. </p>
<p>To add a shared SCSI controller and shared SCSI disks, click the Hardware tab, then take the following steps: </p>
<p>1.Click Add Device. <br>2.Click Hard disk. <br>3.Click Blank to create a new virtual disk. <br>4.Choose the VMFS volume on which you want to store the virtual disk. <br>5.Give the virtual disk image a unique name — for example, quorum.dsk. <br>6.Enter the appropriate value in the Capacity field. <br>7.Choose the virtual SCSI node to which you want to attach the virtual disk. <br>Note: Shared disks must be attached to a separate SCSI controller. Select SCSI 1:1 </p>
<p>8.By default, the disk mode is set to persistent. Click Persistent to verify the disk mode. <br>9.Click OK. <br>Note: A new virtual disk and SCSI Controller 1 are now visible on the hardware tab. </p>
<p>10.Click Edit next to SCSI Controller 1 and change the bus sharing from none to virtual. <br>From the Bus Sharing drop-down list, select virtual, then Click OK. </p>
<p>Repeat step 1-step 9 to create an additional shared virtual disk using SCSI 1:2 with the filename shared2.dsk. </p>
<p>Network Device Configuration — <br>You need an additional virtual network adapter to be used by Microsoft Cluster Service to maintain the cluster heartbeat. To add this adapter, click the Hardware tab for this virtual machine, then take the following steps: </p>
<p>1.Click Add Device. <br>2.Click Network Adapter. <br>3.From the Device Binding drop-down list choose vmnet_0. This attaches the second Ethernet adapter to a private network between the cluster nodes. <br>4.Click OK. <br>You have created the first cluster node virtual machine. </p>
<p><br>Installing the Guest Operating System <br>Now you need to install Windows 2000 Advanced Server in the virtual machine you just created </p>
<p>1.Insert the Windows 2000 Advanced Server CD in the ESX Server machine's CD-ROM drive. <br>2.In the management interface, click the blue terminal icon next to the virtual machine's name to launch the remote console. <br>3.Log on as the user who created the virtual machine or as root. <br>4.Click Power On. <br>5.Install Windows 2000 Advanced Server on the disk connected to scsi0. <br>6.Accept all the default options during the installation. Do not install the clustering service at this time. <br>7.When the installation is completed, install VMware Tools in the guest operating system. </p>
<p>Cloning the Virtual Machine <br>Now that you have a virtual machine with Windows 2000 Advanced Server installed, you can save time by cloning this virtual machine as follows: </p>
<p>1.Run sysprep.exe, which is available on the Windows 2000 CD in the \support\tools\deploy.cab file. This strips the security ID assigned to the guest operating system and resets the machine information as well as the TCP/IP network configuration. <br>2.Shut down the guest operating system and power off the virtual machine. <br>3.Remove the Windows 2000 Advanced Server CD from the server's CD-ROM drive. <br>4.On the management interface's Overview page, click Manage Files. <br>5.Drill down to the vmfs folder, then the vms folder. This may take some time to refresh. <br>6.Select the check box next to the cluster1.dsk file. <br>7.Click Copy. <br>8.Click Paste. <br>9.When the copy process is complete, select the check box next to the file copy of cluster1.dsk. <br>10.Click the Edit Properties button. <br>11.Change the filename to cluster2.dsk. <br>12.Click OK. <br>13.Close the Manage Files window. <br>This concludes the cloning process. Now continue with creating the second node virtual machine </p>
<p><br>Creating the Second Node Virtual Machine <br>Create a new virtual machine as follows: </p>
<p>1.On the management interface's Overview page, click Add Virtual Machine. <br>2.Keep the default Guest Operating System selection of Microsoft Windows 2000 Server. <br>3.Change the Display Name field to describe the virtual machine — for example, SCS Node 2 (Kena). <br>4.Change the Location to<br>home/&lt;user&gt;/vmware/cluster2/cluster2.vmx <br>5.Click Next. <br>6.Select the number of processors you want the guest operating system to use, up to 2. <br>7.Change Memory to show the amount of RAM you want to allocate to this virtual machine. <br>8.Click Next. <br>9.Click Existing to attach an existing virtual disk to this virtual machine. <br>10.From the Virtual Disk Image drop-down list, choose cluster2.dsk. <br>11.Choose the virtual SCSI node to which you want to attach the virtual disk. <br>12.Click Next. <br>Virtual Disk Configuration — <br>You need a shared SCSI controller and shared SCSI disks for shared access to clustered services and data. </p>
<p>To add a shared SCSI controller and shared SCSI disks, click the Hardware tab for this virtual machine, then take the following steps: </p>
<p>1.Click Add Device. <br>2.2. Click Hard Disk. <br>3.Click Blank to create a new virtual disk. <br>4.4. Choose the VMFS Volume on which you want to store the virtual disk. <br>5.Give the virtual disk image a unique name — for example, quorum.dsk. <br>6.Enter the appropriate value in the Capacity field. <br>7.Choose the virtual SCSI node to which you want to attach the virtual disk. <br>Note: Shared disks must be attached to a separate SCSI controller. Select SCSI 1:1. </p>
<p>8.By default the disk mode is set to persistent. Click Persistent to verify the disk mode. <br>9.Click OK. <br>Note: A new virtual disk and SCSI Controller 1 are now visible on the hardware tab. </p>
<p>10.Click Edit next to SCSI Controller 1 to change the bus sharing from none to virtual. <br>11.From the Bus Sharing drop-down list select virtual, then click OK. <br>Repeat step 1-step 9 create an additional shared virtual disk using SCSI 1:2 with the filename shared2.dsk. </p>
<p>Network Device Configuration — <br>You need an additional virtual network adapter to be used by Microsoft Cluster Service to maintain the cluster heartbeat. To add this adapter, click the Hardware tab for this virtual machine, then take the following steps: </p>
<p>1.Click Add Device. <br>2.Click Network Adapter. <br>3.From the Device Binding drop-down list choose vmnet_0. This attaches the second Ethernet adapter to a private network between the cluster nodes. <br>4.Click OK. <br>You have created the second cluster node virtual machine. </p>
<p>Go to the management interface's Overview page. The management interface should list both virtual machines and show them powered off. </p>
<p><br>Installing Microsoft Cluster Service <br>1.Start the node 1 virtual machine. <br>2.Follow the Windows 2000 Advanced Server mini-setup prompts to enter Advanced Server's serial number, the host name (Portsaid) and the IP addresses. Note that you need to enter the addresses for both public and private network adapters. <br>For the public network adapter, enter an IP address that belongs to the physical network. </p>
<p>For the private IP address, you may use an address like 192.168.x.x with a class C subnet mask (255.255.255.0). </p>
<p>3.At the end of the process, Windows automatically reboots. <br>4.Start the Disk Administrator and change both shared disks to basic disks. <br>5.Format both shared virtual disks with NTFS if they are not already formatted. <br>6.Assign the first shared disk to Q: (quorum) and the second disk to R:. <br>If you have joined this virtual machine to an existing Active Directory domain, skip to step 11. </p>
<p>7.Run dcpromo.exe from the command prompt. This starts the Active Directory Wizard. <br>8.Set up the current machine as a domain controller. For the domain name, use something like vmcluster.domain.com where domain.com is your DNS domain and vmcluster is your Active Directory domain. This node may be setup as a new domain tree and also a new domain forest, or it may join existing ones. <br>9.Make sure the DNS server is installed. <br>10.Set the domain permissions as mixed mode unless you plan otherwise. <br>11.To add a cluster services account in the domain, go to Programs &gt; Administrative Tools &gt; Active Directory Users and Computers. <br>12.Add an account named cluster, check User cannot change password and Password never expires. <br>13.Insert the Windows 2000 Advanced Server CD in the server's CD-ROM drive. <br>14.Go to Control Panel &gt; Add/Remove Programs. <br>15.Select Add/Remove Windows Components. <br>16.Check the Cluster Service component. <br>17.Click Next. Follow the prompts to install the service. <br>18.As you configure Cluster Service, choose Form a New Cluster. <br>19.Specify the cluster name (Arish) <br>20.Specify the cluster IP address. This is the address that will represent the cluster. It must be on the same network as that of the vmnic0. <br>21.Specify the cluster service account created above. <br>22.Specify that both shared disks should be managed by the cluster service. <br>23.Indicate the shared disk (Q:) to be the quorum disk. <br>24.Specify which network adapter is public and which is private. <br>25.Stop the cluster service on the local node (from Cluster Manager, right-click the node name), so the second virtual machine can access the shared disks. <br>26.Start the node 2 virtual machine. <br>27.Repeat step 2 and step 3 above. <br>28.Start the Disk Administrator and assign the first shared disk to Q: (quorum) and the second disk to R:. <br>29.Start dcpromo.exe and add this virtual machine as a domain controller in the same domain created in step 8 above or add it to an existing domain. You must match the setup done in step 8. <br>30.In the node 1 virtual machine, start the cluster service by reversing step 25 above. <br>31.In the node 2 virtual machine, repeat step 14-step 24 above with one exception: In step 18, select Join a Cluster. <br>This concludes the Microsoft Cluster Service installation and configuration. </p>
<p><br>Running Microsoft Cluster Service <br>Microsoft Cluster Service should operate normally in the virtual machine once it is installed. </p>
<p>Note: Some disk errors are recorded in the Windows event log in normal operation. These error messages have a format similar to<br>The driver detected a controller error on <br>\Device\Scsi\BusLogic3<br>They should be reported periodically only on the passive node of the cluster and should also be reported when the passive node is taking over during a failover. The errors are reported because the active node of the cluster has reserved the shared virtual disk(s). The passive node periodically probes the shared disk and receives a SCSI reservation conflict error. This is normal operation. </p>
<p><br>Two Nodes with Microsoft Cluster Service on Separate ESX Server Machines <br>This procedure creates a two node cluster in virtual machines that will run on two separate ESX Server machines. It uses the same naming conventions as in the previous procedure. </p>
<p>In addition, the physical shared storage is either: </p>
<p>&#8226;Shared SCSI <br>&#8226;A storage area network (SAN) <br>For this exercise the VMFS partition for the internal storage on each ESX Server computer is labeled vms. The VMFS partition for the shared storage is labeled sharedfs. </p>
<p>&#8226;The VMFS partition for the internal storage on each ESX Server machine is labeled vms. <br>&#8226;The VMFS partition for the shared storage is labeled sharedfs. <br>Each ESX Server machine must have an additional physical network adapter assigned to the virtual machines to use for the private network that monitors the heartbeat. The procedure assumes this network adapter uses the device named vmnic1. You should connect the private network adapter to a separate network from that used by the public network adapter. </p>
<p><br>Creating the First Node's Base Virtual Machine <br>Follow the procedure in Creating the First Node's Base Virtual Machine, with the following changes:</p>
<p>&#8226;In the Virtual Disk Configuration section, in step 10 click Edit next to SCSI Controller 1 to change the bus sharing from none to physical instead of virtual. From the Bus Sharing drop-down list select physical, then click OK. <br>&#8226;In the Network Device Configuration section, in step 3 use vmnic1 instead of vmnet_0 as the device used by Ethernet Adapter 1. <br>&#8226;Access the virtual machine menu by clicking the arrow to the right of the virtual machine icon. Choose Configure Options. Under Verbose Options, click the click here link. <br>Change the specifications of scsi1:1.name and scsi1:2.name to use the strict vmhba name (for example, vmhba0:1:0:1:shared1.dsk) for the VMFS partition, rather than the VMFS name (for example, sharedfs:shared1.dsk). The reason for this change is that if one ESX Server machine reboots while a virtual machine on the other physical machine is reserving the shared SCSI disk, ESX Server cannot read the VMFS name on the shared disk when it is loaded and initialized. If the shared virtual disk is not specified using the full vmhba name, ESX Server cannot determine the disk specified by the VMFS name and gives an error when restarting the virtual machine. </p>
<p>When you have made these changes, click OK. </p>
<p>In addition to these minor changes, you need to change the access rights of the VMFS partition where you store the shared virtual disks. By default VMFS partitions are configured for public access. In order to support clustering, the VMFS partition needs to be configured for shared access. </p>
<p>Take the following steps to change the access settings for the VMFS partition: </p>
<p>1.From the management interface click the Options tab <br>2.Click Storage Configuration. <br>3.Identify the disk volume that contains the VMFS partition where the shared virtual disks are stored. Click Edit for the disk volume. <br>4.From the VMFS Access drop-down list, choose Shared. <br>5.Click OK. <br>You have created the first cluster node virtual machine. </p>
<p><br>Installing the Guest Operating System <br>Follow the procedure in Installing the Guest Operating System.</p>
<p><br>Cloning the Virtual Machine <br>Now that you have a virtual machine with Windows 2000 Advanced Server installed, you can save time by cloning this virtual machine as follows:</p>
<p>1.Run sysprep.exe, which is available on the Windows 2000 CD in the \support\tools\deploy.cab file. This strips the Security ID assigned to the guest operating system and resets the machine information as well as the TCP/IP network configuration. <br>2.Shut down the guest operating system and power off the virtual machine. <br>3.Go to the console of the second ESX Server machine. This is where you will copy the virtual disk that resulted from creating the first node. <br>4.Log on as root. <br>5.Change directories: cd /vmfs/vms <br>This assumes that the internal storage for the second server is in a VMFS partition labeled vms. </p>
<p>6.Use the ftp command: ftp &lt;server1-hostname&gt; <br>7.Change directories: cd /vmfs/vms <br>This changes the current directory to the VMFS partition on the first server where you created the first node's virtual disk. </p>
<p>8.Set the type to binary: bin <br>This sets the transfer mode to binary. If you use text transfer mode, the virtual disk may not be usable on the target server. </p>
<p>9.Type: hash on <br>This turns on the display of a series of hash signs as a transfer progress indicator. </p>
<p>10.Retrieve the virtual disk file: get cluster1.dsk <br>This initiates the transfer of the virtual disk file to the current directory on the second ESX Server machine. </p>
<p>11.Quit the ftp session: bye <br>After the file transfer is completed, type the bye command to end the FTP session. </p>
<p>12.Rename the file: mv cluster1.dsk cluster2.dsk <br>This renames the virtual disk to cluster2.dsk. </p>
<p>This concludes the cloning process. Continue with creating the second node virtual machine.</p>
<p><br>Creating the Second Node Virtual Machine <br>Follow the procedure in Creating the First Node's Base Virtual Machine, noting the following differences:</p>
<p>&#8226;In the Virtual Disk Configuration section, step 10, click Edit next to SCSI Controller 1 to change the bus sharing from none to physical instead of virtual. From the Bus Sharing drop-down list, choose physical, then click OK. <br>&#8226;In the Network Device Configuration section, step 3, from the Device Binding drop-down list, choose vmnic1 instead of vmnet_0. This attaches the second Ethernet adapter to the second physical adapter designated for virtual machine use. This is used to create a private network between the cluster nodes. <br>&#8226;Change the specifications of scsi1:1.name and scsi1:2.name as you did when creating the first node's base virtual machine. </p>
<p>Clustering Using a Raw SCSI Disk <br>The shared disk used for clustering can also be a complete shared SCSI disk, rather than a VMFS file on a shared disk. Using a raw SCSI disk as a shared disk may simplify initial setup. It may be especially useful for importing an existing physical cluster that already has cluster data on a SCSI disk. In addition, using a raw SCSI disk as a shared disk allows a virtual machine to participate in a cluster with a physical machine. For example, the virtual machine can be used as the passive node for a physical machine that is the active node. </p>
<p>In order for the virtual machine to access a physical disk, the instructions in the Virtual Disk Configuration section on Virtual Disk Configuration — should be replaced with the following steps: </p>
<p>To add a physical SCSI controller and shared raw SCSI disks, go to the Hardware tab and take the following steps: </p>
<p>1.Click Add Device. <br>2.Click Hard disk. <br>3.Click System LUN/Disk to give your virtual machine direct access to a SAN or shared storage volume. <br>4.Choose the LUN/Partition you want to attach to this VM as a raw disk. <br>Note: In ESX Server, physical disks are identified by a vmhba number. For example, vmhba0:1:2:1 means physical adapter vmhba0, target 1, LUN 2, partition 1. When the final number is :0, that indicates you are specifying the entire disk, rather than a particular partition. </p>
<p>5.Choose the virtual SCSI node to which you want to attach the raw disk. <br>Note: Shared disks must be attached to a separate SCSI controller from the system disk. Select, SCSI 1:1 </p>
<p>6.Click OK. <br>A new virtual disk and SCSI Controller 1 appear on the Hardware tab. </p>
<p>7.Click Edit next to SCSI Controller 1 to change the bus sharing from none to physical. <br>8.From the Bus Sharing drop-down list choose physical, then click OK. <br>Setting the bus sharing to physical makes sure that all the SCSI reserve and reset commands go through to the physical disk. </p>
<p>Repeat step 1-step 8 to create an additional shared raw disk using SCSI 1:2. </p>
<p>You have completed the virtual machine configuration. </p>
<p><br>Installing Microsoft Cluster Service <br>Follow the procedure in Installing Microsoft Cluster Service. </p>
<p><br>Additional Notes for Clustering Across Physical Machines <br>&#8226;For maximum flexibility, put each shared virtual disk on a separate VMFS on a separate SCSI disk (or LUN). The reason for this is that SCSI reservation can be done only at the granularity of a complete SCSI disk or LUN. If two shared virtual disks are on the same VMFS, reserving one disk will also reserve the other disk. If you choose to put more than one shared disk on the same VMFS (as in the example installation above), always put these virtual disks in the same MSCS resource group. That ensures the disks are always reserved by the same computer and are always failed over at the same time. <br>&#8226;Ensure that the swap file for each ESX Server machine is not on any of the physical shared disks. Since the shared disks are reserved by one host or another, the swap file may become inaccessible to one host or the other during the operation of the cluster. <br>&#8226;If you are accessing the shared disks on a storage network (SAN) using a QLogic host bus adapter, you must use particular values for some QLogic configuration settings. Reboot your physical machine and enter the QLogic configuration utility during bootup. Under Advanced Configuration Settings, ensure that <br>◦Enable Target Reset is set to Yes. <br>◦Full LIP Login is set to Yes. <br>◦Full LIP Reset is set to No.<br>&#8226;If you are accessing the shared disks on a SAN using an Emulex host bus adapter, you need to take the following extra steps: <br>a.On the Options &gt; Advanced Settings page, Set DiskUseDeviceReset to 1. <br>b.Supply an extra parameter to the Emulex driver when it is loaded. You do this by editing the file /etc/vmware/hwconfig. First, identify the bus, slot and function holding the first (or only) Emulex card. You can find this information by looking at the Startup Profile page. Then add a line with the format <br>device.vmnix.6.14.0.options = "lpfc_delay_rsp_err=0" </p>
<p>to the end of /etc/vmware/hwconfig. Here, the numbers 6.14.0 specify the bus, slot and function where the Emulex card is located. If you have more than one Emulex card, you should have only a line referencing the first card. </p>
<p>&#8226;If you are doing multipathing and can access your shared cluster disk via multiple HBAs from a host, then you need to modify another configuration file. Go to the Options &gt; Advanced Settings page and set DiskResetOnFailover to 1. If an HBA failover occurs on the host, this option causes a SCSI bus reset to be issued after the failover happens. This bus reset allows the second HBA to access a shared disk, even if the disk has been reserved by the first HBA. The clustering software then automatically reserves the disk again via the second HBA. </p>
<p>Running Microsoft Cluster Service <br>Microsoft Cluster Service should operate normally in the virtual machines once it is installed. </p>
<p>Note: Some disk errors are recorded in the Windows event log in normal operation. These error messages have a format similar to<br>The driver detected a controller error on <br>\Device\Scsi\BusLogic3<br>They should be reported periodically only on the passive node of the cluster and should also be reported when the passive node is taking over during a failover. The errors are reported because the active node of the cluster has reserved the shared virtual disk. The passive node periodically probes the shared disk and receives a SCSI reservation conflict error. </p>
<p><br>VMFS Locking and SCSI Reservation <br>For a shared SCSI disk that can be accessed by multiple ESX Server machines, two kinds of locking may be in use. These two kinds of locking are somewhat independent and can cause confusion. The shared SCSI disk may be on shared SCSI bus or, more likely, on a storage area network (SAN). </p>
<p><br>VMFS File System Locking <br>The first kind of locking is VMFS file system locking. ESX Server locks VMFS file systems on a server level when a VMFS file system is configured as a public or shared file system. This locking is done in order to ensure that there is no corruption caused by multiple accesses to the file system by different hosts. </p>
<p>If a VMFS-1 volume is configured in public mode, only one server can ever access that VMFS at a time. If one server is accessing the VMFS-1 volume, through a virtual machine or a file system command, then a file system operation by another host fails. For example, a vmkfstools command fails with a message that says:<br>vmkfstools: file system is locked by another server. Use 'vmkfstools --recover' to unlock file system if no other server is accessing </p>
<p>Typically, you should not run vmkfstools --recover at this point, since another host is actually using the file system. The error message simply indicates that this server cannot access the VMFS until the other server has finished accessing it. However, if a server fails while accessing the file system, the file system may stay in the locked state and you may need to run vmkfstools --recover. </p>
<p>In a public VMFS-2 volume, locking is at a per-file level, resulting in fewer locking issues. However, you may still encounter the preceding message and may need to use vmkfstools --recover, if a server fails. </p>
<p>If a VMFS is used to store a virtual disk that is accessed by multiple virtual machines on multiple physical servers for the purposes of failover clustering, the VMFS should be configured as a shared file system. Then, the locking protocol is slightly relaxed to allow multiple virtual machines on different servers to access the same VMFS file at the same time. However, file system commands do the same locking as with public file systems (that is, per-VMFS in VMFS-1 volumes and per-file in VMFS-2 volumes). </p>
<p>Additionally, when multiple virtual machines access the VMFS, the VMFS file system enters a read-only mode in which it is impossible to create, delete or change the size of files. However, the contents of the individual files can still be modified. If you later want to create or remove VMFS files, you must stop all virtual machines using the VMFS and re-enter writable mode by using this command:<br>vmkfstools --config writable vmhba0:1:0:0 </p>
<p>Substitute the name of the appropriate disk or VMFS in place of vmhba0:1:0:0.</p>
<p><br>Locking at SCSI Disk Level <br>The second kind of locking is locking at the SCSI disk level, which is called SCSI disk reservation. </p>
<p>Any server connected to a SCSI disk can issue a SCSI command to reserve the disk. If no other server is already reserving the disk, the current server obtains a reservation on the disk. As long as that reservation exists, no other server can access the disk. All SCSI commands to that disk by other servers fail with an appropriate error code. </p>
<p>If a vmkfstools command is attempted on a VMFS on a disk that is reserved by another server, the vmkfstools command fails with a message that says:<br>vmkfstools: shared SCSI disk is reserved by another server. Use 'vmkfstools -L release/reset' to end reservation if no other server is using the SCSI reservation </p>
<p>Similarly, a virtual machine fails to start if its virtual boot disk is stored on a physical disk that is reserved by another host. </p>
<p>Most applications do not ever reserve a SCSI disk. However, failover clustering software reserves SCSI disks in order to ensure that only the active node is able to access the shared SCSI disk. Therefore, you should expect that the shared disk in a physical clustering setup is reserved when the cluster is active. Similarly, for a virtual machine cluster that is running across physical machines, reservations by the clustering software are transmitted through to the physical shared disk. </p>
<p>If you encounter a disk that is reserved unexpectedly, you should try to determine if some clustering software has explicitly reserved the disk. If not, you can release the reservation on the server that has the reservation by running a command in this format:<br>vmkfstools -L release vmhba0:1:0:0 </p>
<p>Substitute the name of the appropriate disk or VMFS in place of vmhba0:1:0:0. If you cannot determine which server holds the reservation, you may be able to eliminate the reservation by issuing a SCSI bus reset on any server machine using a command in this format:<br>vmkfstools -L reset vmhba0:1:0:0 </p>
<p><br>Using LUN Masking to Avoid Locking Issues <br>Locking issues are especially likely to happen on a SAN, where multiple users may be accessing some of the same disks or may mistakenly access a disk assigned to another user. </p>
<p>It is often helpful to use LUN masking or zoning to limit what disks are visible to each server in the system, and therefore reduce the ways in which one user can affect another user. In particular, the use of LUN masking or zoning can help prevent problems such as those described above in which one server unexpectedly locks or reserves the wrong SCSI disk. <br>&nbsp;<br></p>
<img src ="http://www.cnitblog.com/201/aggbug/71196.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/201/" target="_blank">David</a> 2010-11-11 14:20 <a href="http://www.cnitblog.com/201/archive/2010/11/11/71196.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>让vmware workstation 中的虚拟机开机自动启动</title><link>http://www.cnitblog.com/201/archive/2010/08/03/67877.html</link><dc:creator>David</dc:creator><author>David</author><pubDate>Tue, 03 Aug 2010 10:11:00 GMT</pubDate><guid>http://www.cnitblog.com/201/archive/2010/08/03/67877.html</guid><wfw:comment>http://www.cnitblog.com/201/comments/67877.html</wfw:comment><comments>http://www.cnitblog.com/201/archive/2010/08/03/67877.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cnitblog.com/201/comments/commentRss/67877.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/201/services/trackbacks/67877.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 实现其开机自动启动步骤其实很简单。这里用到的是微软的两个小工具（<a  href="http://download.microsoft.com/download/8/e/c/8ec3a7d8-05b4-440a-a71e-ca3ee25fe057/rktools.exe">这里下载</a>）。instsrv.exe和srvany.exe
<p>微软对instsrv.exe的官方说明如下：
</p>
<p>Installs and uninstalls executable services and assigns names to
them. 也就是个加载services的小东东。
</p>
<p>其用法如下：instsrv &lt;service name&gt; &lt;srvany path&gt; （这里的srvany
path也就是工具srvany.exe的路径了）
</p>
<p>
</p>
<p>解释下，srvany.exe是微软出的用于将一个程序注册为一个服务的小程序。它可以实现讲任何程序设置成服务启动。具体用法可以自己想下哦。
</p>
<p>
</p>
<p>解释完毕，现在来实际的操作了吧。
</p>
<p>
</p>
<p><br>1.讲所需要的工具instsrv.exe和srvany.exe放在一个文件夹内，在这我放在d:\tools中吧。
</p>
<p>2.需要了解vmware.exe的安装路径，以本机为例：D:\VMware Workstation\vmware.exe<br>要启动的虚
拟机配置文件路径，我的2003虚拟机的配置文件windows2003.vmx的路径是D:\vmare\windows2003\windows
server 2003.vmx
</p>
<p>3.新建服务
</p>
<p>假设服务名为vm_autostart，所以我的命令行是：
</p>
<p>instsrv VM_AutoStart&nbsp; D:\tools\srvany.exe
</p>
<p>4.注册服务
</p>
<p>在注册表中，定位到HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
\vm_autostart<br>新建项："Parameters"<br>在"Parameters"项里面，新建字符
串"Application"，<br>字符串的值：<br>"D:\VMware Workstation\vmware.exe" -x
"D:\vmare\windows2003\windows server 2003.vmx"
</p>
<p>(如果你想要开机加载两个虚拟机系统，只需要在其后再添加一个虚拟机配置文件路径即可）
</p>
<p>5.设置虚拟机启动状态
</p>
<p>管理工具－服务，选择vm_autostart的属性－登录，选中&#8220;本地系统帐户&#8221;，并勾选&#8220;允许服务与桌面交互&#8221;，这样，你的电脑开机后就会出现
vmware的启动界面了。
</p>
<br><img src ="http://www.cnitblog.com/201/aggbug/67877.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/201/" target="_blank">David</a> 2010-08-03 18:11 <a href="http://www.cnitblog.com/201/archive/2010/08/03/67877.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>VMware ESX Server 常用命令行</title><link>http://www.cnitblog.com/201/archive/2010/06/16/66793.html</link><dc:creator>David</dc:creator><author>David</author><pubDate>Wed, 16 Jun 2010 13:20:00 GMT</pubDate><guid>http://www.cnitblog.com/201/archive/2010/06/16/66793.html</guid><wfw:comment>http://www.cnitblog.com/201/comments/66793.html</wfw:comment><comments>http://www.cnitblog.com/201/archive/2010/06/16/66793.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/201/comments/commentRss/66793.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/201/services/trackbacks/66793.html</trackback:ping><description><![CDATA[在ESX中，主要是通过vmware-cmd这个命令来管理虚拟机的，包括虚拟机的开关、状态查询和添加删除虚拟设备。<br>
<br>
1，列出所有虚拟机（这里列出的是所有虚拟机各自对应的配置文件，ESX技术通过修改这些配置文件来完成对虚拟机的管理的）：<br>
&nbsp;
<div class="articalContent" id="sina_keyword_ad_area2"><wbr>&nbsp;<wbr>&nbsp;<wbr> # vmware-cmd
-l<br>
&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>
/vmfs/volumes/4655dd66-758d208c-1b24-001aa0187722/sol_vm1/sol_vm1.vmx<br>
<br>
2，查询某个虚拟机状态（是否加电）：<br>
&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr> # vmware-cmd
/vmfs/volumes/4655dd66-758d208c-1b24-001aa0187722/sol_vm1/sol_vm1.vmx
getstate<br>
&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr> getstate() =
on<br>
<br>
3，启动/停止/重启/暂停某台虚拟机：<br>
&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr> # vmware-cmd
/vmfs/volumes/4655dd66-758d208c-1b24-001aa0187722/sol_vm1/sol_vm1.vmx
<span style="color: #ff0102;">start/stop/reset/suspend</span>
trysoft<br>
&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>
这里，trysoft是电源管理模式，意思是先尝试安全操作，如果失败则进行强制操作，除了这个选项，还用soft和hard这两种模式。<br>
&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>
start/stop/reset/suspend只能选择其一.<br>
<br>
4，查询设备属性：<br>
&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr> # vmware-cmd
//vmfs/volumes/4655dd66-758d208c-1b24-001aa0187722/sol_vm1/sol_vm1.vmx
getconfig ide0:0.deviceType<br>
&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>
getconfig(ide0:0.deviceType) = cdrom-raw<br>
&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>
这里，我们获得的是ide0:0设备的类型，由输出可知，该设备是CDROM，而且是虚拟一个物理光驱。<br>
<br>
5，将4中的光驱改为可以读取ISO文件的虚拟光驱：<br>
&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr> # vmware-cmd
//vmfs/volumes/4655dd66-758d208c-1b24-001aa0187722/sol_vm1/sol_vm1.vmx
setconfig ide0:0.deviceType cdrom-image<br>
<br>
6，为虚拟光纤指定ISO文件<br>
&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr> # vmware-cmd
//vmfs/volumes/4655dd66-758d208c-1b24-001aa0187722/sol_vm1/sol_vm1.vmx
setconfig ide0:0.fileName /export/images/Linux4-U3.iso<br>
<br>
7，断开设备连接<br>
&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr> # vmware-cmd
//vmfs/volumes/4655dd66-758d208c-1b24-001aa0187722/sol_vm1/sol_vm1.vmx
disconnectdevice ide0:0<br>
<br>
8，连接设备：<br>
&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr> # vmware-cmd
//vmfs/volumes/4655dd66-758d208c-1b24-001aa0187722/sol_vm1/sol_vm1.vmx
connectdevice ide0:0<br>
<br>
&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr><strong>1：看你的esx版本。</strong><br>
<br>
<font color="purple">vmware -v</font><br>
<br>
<strong>2：列出esx里知道的服务</strong><br>
<br>
<font color="purple">esxcfg-firewall -s</font><br>
<br>
<br>
<strong>3：查看具体服务的情况</strong><br>
<br>
<font color="purple">esxcfg-firewall -q sshclinet</font><br>
<br>
<strong>4：重新启动vmware服务</strong><br>
<br>
<font color="purple">service mgmt-vmware restart</font><br>
<br>
<strong>5: 修改root的密码</strong><br>
<br>
<font color="purple">passwd root</font><br>
<br>
<strong>6：列出你当前的虚拟交换机</strong><br>
<br>
<font color="purple">esxcfg-vswitch -l</font><br>
<br>
<strong>7：查看控制台的设置</strong><br>
<br>
<font color="purple">esxcfg-vswif -l</font><br>
<br>
<strong>8：列出系统的网卡</strong><br>
<br>
<font color="purple">esxcfg-nics -l</font><br>
<br>
<strong>9：添加一个虚拟交换机，名字叫（internal）连接到两块物理网卡，（重新启动服务，vi就能看见了）</strong><br>
<br>
<font color="purple">esxcfg-vswitch -a vSwitch1<br>
<br>
esxcfg-vswitch -A internal vSwitch1<br>
<br>
esxcfg-vswitch -L vmnic1 vSwitch1<br>
<br>
esxcfg-vswitch -L vmnic2 vSwitch1</font><br>
<br>
<strong>10：删除交换机,(注意，别把控制台的交换机也删了）</strong><br>
<br>
<font color="purple">esxcfg-vswitch -D vSwitch1</font><br>
<br>
<strong>11：删除交换机上的网卡</strong><br>
<br>
<font color="purple">esxcfg-vswitch -u vmnic1 vswitch2</font><br>
<br>
<strong>12：删除portgroup</strong><br>
<br>
<font color="purple">esxcfg-vswitch -D internel
vswitch1</font><br>
<br>
<strong>13：创建 vmkernel switch ，如果你希望使用vmotion，iscsi的这些功能，你必须创建(
通常是不需要添加网关的）</strong><br>
<br>
<font color="purple">esxcfg-vswitch -l<br>
<br>
esxcfg-vswitch -a vswitch2<br>
<br>
esxcfg-vswitch -A "vm kernel" vswitch2<br>
<br>
esxcfg-vswitch -L vmnic3 vswitch2<br>
<br>
esxcfg-vmknic -a "vm kernel" -i 172.16.1.141 -n 255.255.252.0<br>
<br>
esxcfg-route 172.16.0.254</font><br>
<br>
<strong>14：打开防火墙ssh端口</strong><br>
<br>
<font color="purple">esxcfg-firewall -e sshclient<br>
<br>
esxcfg-firewall -d sshclient</font><br>
<br>
<strong>15: 创建控制台</strong><br>
<br>
<font color="purple">esxcfg-vswitch -a vSwitch0<br>
<br>
esxcfg-vswitch -A "service console" vSwitch0<br>
<br>
esxcfg-vswitch -L vmnic0 vSwitch0<br>
<br>
esxcfg-vswif -a vswif0 -p "service console" -i 172.16.1.140 -n
255.255.252.0</font><br>
<br>
<strong>16: 添加nas设备(a 添加标签，-o，是nas服务器的名字或ip，-s 是nas输入的共享名字）</strong><br>
<br>
<font color="purple">esxcfg-nas -a isos -o nas.vmwar.cn -s
isos</font><br>
<br>
<strong>17：列出nas连接</strong><br>
<br>
<font color="purple">esxcfg-nas -l</font><br>
<br>
<strong>18: 强迫esx去连接nas服务器(用esxcfg-nas -l 来看看结果）</strong><br>
<br>
<font color="purple">esxcfg-nas -r<br>
<br>
esxcfg-nas -l</font><br>
<br>
<strong>19：连接iscsi 设备(e:enable q:查询 d：disable s:强迫搜索）</strong><br>
<br>
<font color="purple">esxcfg-swiscsi -e</font><br>
<br>
<strong>20：设置targetip</strong><br>
<br>
<font color="purple">vmkiscsi-tool -D -a 172.16.1.133
vmhba40</font><br>
<br>
<strong>21：列出和target的连接</strong><br>
<br>
<font color="purple">vmkiscsi-tool -l -T vmhba40</font><br>
<br>
<strong>22：列出当前的磁盘</strong><br>
<br>
<font color="purple">ls -l /vmfs/devices/disks</font></div><img src ="http://www.cnitblog.com/201/aggbug/66793.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/201/" target="_blank">David</a> 2010-06-16 21:20 <a href="http://www.cnitblog.com/201/archive/2010/06/16/66793.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>VMware VirtualCenter服务开机不能自动启动问题解决</title><link>http://www.cnitblog.com/201/archive/2010/05/24/66296.html</link><dc:creator>David</dc:creator><author>David</author><pubDate>Mon, 24 May 2010 03:27:00 GMT</pubDate><guid>http://www.cnitblog.com/201/archive/2010/05/24/66296.html</guid><wfw:comment>http://www.cnitblog.com/201/comments/66296.html</wfw:comment><comments>http://www.cnitblog.com/201/archive/2010/05/24/66296.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cnitblog.com/201/comments/commentRss/66296.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/201/services/trackbacks/66296.html</trackback:ping><description><![CDATA[最近Windows2003 server + VI4 update1 环境突然工作不正常， VC4开机后无法连接，经检查是VC的计算机出现故障。由于VC server 启动依赖SQL 2005，而本机的SQL 服务貌似启动较慢，查实VMware解决方法如下：<br><br>VMware 官方原文：<a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1007669">http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1007669</a><br><br>照着下面提示将SQLserver与VCserver 建立依赖关系，验证成功。<br>
<h2>VMware VirtualCenter service does not start automatically after reboot</h2>
<br>
<h4 class="docheading Symptoms">Symptoms</h4>
<div class="doccontent cc_Symptoms"><content>
<ul>
    <li>
    <div><font face="Arial" size="2">VirtualCenter service does not start after reboot</font></div>
    </li>
    <li>
    <div><font face="Arial" size="2">VMware Infrastructure (VI)&nbsp;Client cannot connect to VirtualCenter</font></div>
    </li>
    <li>
    <div><font face="Arial" size="2">You are using&nbsp;Microsoft SQL Server or SQL Express</font></div>
    </li>
    <li>
    <div><font face="Arial" size="2">VirtualCenter Server service&nbsp;can be started manually with no problems</font></div>
    </li>
</ul>
</content></div>
<h4 class="docheading Purpose">Purpose</h4>
<div class="doccontent cc_Purpose"><content>
<div><font face="Arial" size="2">In some cases a race condition can occur and VirtualCenter&nbsp;starts before the&nbsp;SQL database it depends on.</font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">This article provides steps to prevent the race condition from occurring.</font></div>
</content></div>
<h4 class="docheading Resolution">Resolution</h4>
<div class="doccontent cc_Resolution"><content>
<div>This
issue may occur if the VirtualCenter Server service starts before one
of the services it depends on. The VirtualCenter Server service is
dependent on the following services:</div>
<div>
<ul>
    <li>SQL Services
    </li>
    <li>ADAM Services (when using linked mode in vCenter Server 4.0) </li>
</ul>
</div>
<div>To
resolve this issue, add a dependency to the VirtualCenter service so
that it only starts after the necessary services have started.</div>
<div><font face="Arial" size="2"><font face="Arial" size="2"><br></font></font></div>
<div><font face="Arial" size="2"><font face="Arial" size="2"><strong> Note</strong> :
This solution assumes that the database server and the SQL server
reside on the same machine.&nbsp;If the SQL server is on a different
physical machine, you must ensure that the SQL server is functioning
before attempting to start the VirtualCenter service.</font></font></div>
<div>&nbsp;</div>
<div><font face="Arial" size="2">To create a service dependency:</font></div>
<ol>
    <li>
    <div><font face="Arial" size="2">Click <strong> Start</strong>  &gt; <strong> Run.</strong> </font></div>
    </li>
    <li>
    <div><font face="Arial" size="2">Type <font face="Courier New">services.msc</font></font> <font face="Arial" size="2">and press Enter.</font></div>
    </li>
    <li>
    <div><font face="Arial" size="2">Locate any services that VirtualCenter requires. For example, SQLEXP_VIM or ADAM_VCMSDS.</font></div>
    </li>
    <li>
    <div><font face="Arial" size="2">Open the service properties and note the Service Name. For example, <font face="Courier New">MSSQL$SQLEXP_VIM</font> <font face="Arial">.</font></font></div>
    </li>
    <li>
    <div><font face="Arial" size="2">In the Run dialog,&nbsp;type&nbsp;<font face="Courier New">Regedit.exe</font> and press Enter. Browse to&nbsp;<font face="Courier New">HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\vpxd</font>.</font></div>
    </li>
    <li>
    <div><font face="Arial" size="2">Double-click the&nbsp;<font face="Courier New">DependOnService</font> key and add the Service name using the name identified in step 4.</font></div>
    </li>
    <li>
    <div>Close Regedit.</div>
    </li>
    <li>Go back to the Services window and open the service properties for the service identified in step 3.
    </li>
    <li>On the <strong> Dependencies</strong>  tab,&nbsp;verify the VMware VirtualCenter service&nbsp;is listed as depending on the service.
    </li>
    <li>Repeat steps 3 to 9 for any services that VirtualCenter requires. </li>
</ol>
</content></div>
<br> <img src ="http://www.cnitblog.com/201/aggbug/66296.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/201/" target="_blank">David</a> 2010-05-24 11:27 <a href="http://www.cnitblog.com/201/archive/2010/05/24/66296.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>解决VMware上RedHat Linux系统时间过快或过慢的问题</title><link>http://www.cnitblog.com/201/archive/2010/04/02/64993.html</link><dc:creator>David</dc:creator><author>David</author><pubDate>Fri, 02 Apr 2010 02:04:00 GMT</pubDate><guid>http://www.cnitblog.com/201/archive/2010/04/02/64993.html</guid><wfw:comment>http://www.cnitblog.com/201/comments/64993.html</wfw:comment><comments>http://www.cnitblog.com/201/archive/2010/04/02/64993.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/201/comments/commentRss/64993.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/201/services/trackbacks/64993.html</trackback:ping><description><![CDATA[VMware中的RedHat Eneterprise<br>Linux 5系统时间总比主机的Windows XP慢。即使用date命令设置Linux时间与Windows XP时间一致，Linux的时间仍会逐渐的慢下来。这是很头痛的问题，如果不能解决，当在两个系统间交换文件时，可能会导致编译出现异常。电脑所使用的 CPU是Intel Core2 Duo T7250，主频2.0G；而先前使用的DELL D510笔记本电脑，使用Pentium M单核CPU，却未发现这个问题。<br>    WMware官网有类似问题的描述和分析，是一篇名为&#8220;Host<br>Power Management Causes Problems with Guest Timekeeping on Linux Hosts&#8221;的文章。大概意思是：一些CPU采用了节能电源管理技术，使CPU的主频可根据系统负载自动变换，如Intel的SpeedStep、AMD 的PowerNow、Cool'n'Quiet等。VMware对于Linux，并不能完全支持这些技术，从而导致VMware上安装的Linux系统时钟变得有点飘忽不定了。<br>    Linux对自动变频技术的不适应，要么导致Linux系统时间跑得过快，要么跑得过慢。综合分析了网上寻找到的各种解决办法，找到一个简单且切实可行的方案。<br>    首先，安装上VMware-Tools。在Windows XP系统的C:\Documents and Settings\All<br>Users\Application Data\VMware\VMware Workstation\目录下，看是否有config.ini这个文件，如果没有，就创建一个吧。然后用一个文本编辑工具打开此文件，输入下面的内容：<br> <br>host.cpukHz =<br>"4194304"<br>host.noTSC =<br>"TRUE"<br>ptsc.noTSC =<br>"TRUE"<br>processor0.use =<br>"FALSE"<br>processor1.use =<br>"TRUE"<br> <br>    其中，host.cpukHz等于CPU标称最高主频，如果是双核CPU，则还有乘以2。比如，我用的电脑的CPU是Intel Core2 Duo T7250，主频2.0G，host.cpukHz = 2 * 2.0 * 1024 * 1024 = 4194304。<br>    保存对config.ini的编辑。再到Linux虚拟机文件所在的目录，找到一个后缀是vmx的文件，如我安装的虚拟机名称是Red Hat Enterprise Linux 5，则在目录下对应的文件是Red Hat Enterprise Linux 5.vmx。用文本编辑工具打开它，在文本的后部可看到下面的内容：<br> <br>sharedFolder.option =<br>"alwaysEnabled"<br>sharedFolder.maxNum =<br>"1"<br>tools.syncTime = "FALSE"<br>sharedFolder0.present =<br>"TRUE"<br>sharedFolder0.enabled =<br>"TRUE"<br>sharedFolder0.readAccess =<br>"TRUE"<br>sharedFolder0.writeAccess =<br>"TR ...... <br><img src ="http://www.cnitblog.com/201/aggbug/64993.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/201/" target="_blank">David</a> 2010-04-02 10:04 <a href="http://www.cnitblog.com/201/archive/2010/04/02/64993.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Cannot log in to an ESX 4 host with vSphere Web Access</title><link>http://www.cnitblog.com/201/archive/2009/11/11/62524.html</link><dc:creator>David</dc:creator><author>David</author><pubDate>Wed, 11 Nov 2009 07:15:00 GMT</pubDate><guid>http://www.cnitblog.com/201/archive/2009/11/11/62524.html</guid><wfw:comment>http://www.cnitblog.com/201/comments/62524.html</wfw:comment><comments>http://www.cnitblog.com/201/archive/2009/11/11/62524.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/201/comments/commentRss/62524.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/201/services/trackbacks/62524.html</trackback:ping><description><![CDATA[vmware esx4.0 安装后无法通过UI登录，提示503 Service unavailable 错误，解决方案来源官方，验证可用。<br><br>Symptoms<br><br>    * You cannot log in to an ESX 4.0 host using vSphere Web Access<br>    * The vSphere Web Access browser does not open<br>    * The browser shows the error:<br><br>      503 Service unavailable <br><br>Resolution<br>This issue may occur if the vSphere Web Access service is not started on the ESX host.<br> <br>Note: This service is disabled by default in ESX 4.0.<br> <br>To log in to an ESX 4.0 host using vSphere Web Access:<br><br>   1. Determine if the vSphere Web Access service is running on the ESX host:<br>   2.<br>         1. Log in to the ESX host Service Console as root.<br>         2. Run the command:<br><br>            service vmware-webAccess status<br><br>            The output indicates if the service is running.<br><br>   3. If the vSphere Web Access service is stopped, start it with the command:<br><br>      service vmware-webAccess start<br><br>   4. To configure the vSphere Web Access service to run automatically, run the command: <br><br>    chkconfig --level 345 vmware-webAccess on<br><br>You can now use vSphere Web Access to log in to the ESX host.<br><br><img src ="http://www.cnitblog.com/201/aggbug/62524.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/201/" target="_blank">David</a> 2009-11-11 15:15 <a href="http://www.cnitblog.com/201/archive/2009/11/11/62524.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Windows 7 + Windows 2008 R2不能运行VMware vSphere 解决方案。</title><link>http://www.cnitblog.com/201/archive/2009/11/10/62502.html</link><dc:creator>David</dc:creator><author>David</author><pubDate>Tue, 10 Nov 2009 09:43:00 GMT</pubDate><guid>http://www.cnitblog.com/201/archive/2009/11/10/62502.html</guid><description><![CDATA[<h1 class="entry-title full-title"><a href="http://www.nptech.com/blog/2009/09/10/vmware-vsphere-client-on-windows-server-2008-r2-64-bit/" title="Permanent link to vmware vsphere client on windows server 2008 r2 64-bit" rel="bookmark" rev="post-97">VMware vSphere Client on Windows Server 2008 R2 64-bit</a></h1>
<div class="entry-content full-content">
<h2>PROBLEM</h2>
<p>When you install VMware vSphere Client on Windows Server 2008 R2
64-bit, the client may not run and you will receive the following
errors when attempting to launch the client:</p>
<p><img class="alignnone size-full wp-image-107" title="vsphere1" src="http://www.nptech.com/blog/wp-content/uploads/2009/09/vsphere11.jpg" alt="vsphere1" width="377" height="149"></p>
<p><strong> Could Not Connect<br>
</strong> Error parsing the server &#8220;&lt;vCenterServerHostname&gt;&#8221; &#8220;clients.xml&#8221; file.<br>
Login will continue, contact your system administrator.</p>
<p>You click OK and then get another error:</p>
<p><img class="alignnone size-full wp-image-99" title="vsphere client error 2" src="http://www.nptech.com/blog/wp-content/uploads/2009/09/vsphere2.jpg" alt="vsphere client error 2" width="388" height="151"></p>
<p><strong> Error<br>
</strong> The type initializer for &#8216;VirtualInfrastructure.Utils.HttpWebRequestProxy&#8217; threw and exception.</p>
<p>You click OK and then the vSphere client hangs or crashes.</p>
<h2>SOLUTION</h2>
<p>To resolve this issue, perform the following:</p>
<ol>
    <li> Obtain a copy of the
    %SystemRoot%\Microsoft.NET\Framework\v2.0.50727\System.dll file from a
    non Server 2008 R2 (or non-Windows 7) machine that has .NET 3.5 SP1
    installed. (I took mine from my 32-bit Windows XP SP3 machine)</li>
    <li>On the Windows Server 2008 R2 machine where the vSphere client is
    installed, create a folder called &#8220;Lib&#8221; under the vSphere Client
    &#8216;Launcher&#8217; directory. For example: <em> C:\Program Files (x86)\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\Lib</em> <em>  </em> <em>  </em> </li>
    <li>Copy the System.dll file from Step 1 into the <em> C:\Program Files (x86)\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\Lib</em>  directory</li>
    <li>In the vSphere client launcher directory, open the <em> VpxClient.exe.config</em>  file in a text editor and modify the file as follows:&lt;?xml version=&#8221;1.0&#8243;  encoding=&#8221;utf-8&#8243;?&gt;<br>
    &lt;configuration&gt;<br>
    &lt;system.net&gt;<br>
    &lt;connectionManagement&gt;<br>
    &lt;clear/&gt;<br>
    &lt;add  address=&#8221;*&#8221; maxconnection=&#8221;8&#8243;  /&gt;<br>
    &lt;/connectionManagement&gt;<br>
    &lt;/system.net&gt;<br>
    &lt;appSettings&gt;<br>
    &lt;add  key = &#8220;protocolports&#8221; value =  &#8220;https:443&#8243;/&gt;<br>
    &lt;/appSettings&gt;<br>
    <span style="color: red;">&lt;runtime&gt;</span><br style="color: red;"><span style="color: red;">
    &lt;developmentMode  developerInstallation=&#8221;true&#8221;/&gt;</span><br style="color: red;"><span style="color: red;">
    &lt;/runtime&gt;</span><br>
    &lt;/configuration&gt;</li>
    <li>Create a batch file (e.g. vSphere.cmd) in a location of your choice
    with the following:<br>SET
    DEVPATH=%ProgramFiles(x86)%\VMware\Infrastructure\Virtual
    Infrastructure Client\Launcher\Lib<br>
    &#8220;%ProgramFiles(x86)%\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\VpxClient.exe&#8221;</li>
    <li>(Optional) Replace the shortcut on the start menu to point to the
    batch file created in Step 6. Change the shortcut properties to run
    minimized so that the command window is not shown.</li>
</ol>
<p>You can now use the VpxClient.cmd (or the shortcut) to launch the vSphere client in Windows Server 2008 R2.</p>
<p>These instructions should also work for running vSphere client on Windows 7.</p>
<address>Additional references: http://communities.vmware.com/thread/211440</address>
</div>
<br> <img src ="http://www.cnitblog.com/201/aggbug/62502.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/201/" target="_blank">David</a> 2009-11-10 17:43 <a href="http://www.cnitblog.com/201/archive/2009/11/10/62502.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>如何启用VMware ESXi 3.5的SSH服务</title><link>http://www.cnitblog.com/201/archive/2009/09/02/61206.html</link><dc:creator>David</dc:creator><author>David</author><pubDate>Wed, 02 Sep 2009 10:30:00 GMT</pubDate><guid>http://www.cnitblog.com/201/archive/2009/09/02/61206.html</guid><wfw:comment>http://www.cnitblog.com/201/comments/61206.html</wfw:comment><comments>http://www.cnitblog.com/201/archive/2009/09/02/61206.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cnitblog.com/201/comments/commentRss/61206.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/201/services/trackbacks/61206.html</trackback:ping><description><![CDATA[<p>ESXi 3.5封装有SSH服务，但是默认是关闭的。打开的步骤如下：</p>
<ol>
    <li>在ESXi的控制台（物理机器面前）里输入Alt+F1。</li>
    <li>在控制台输入<strong> unsupported</strong> 并按下回车（你看不到输入的内容）。</li>
    <li>如果你正确的输入了&#8220;unsupported&#8221;，就可以看到Tech Support模式的警告和下方的密码提示。输入root密码即可登陆。</li>
    <li>现在你可以看到命令提示符&#8220;~ #&#8221; ，编辑inetd.conf文件（输入命令&nbsp;<strong> vi /etc/inetd.conf</strong> ）。</li>
    <li>找到开头是#ssh的那一行，删除注释符#，保存退出。</li>
    <li>退出vi编辑器后，输入命令&nbsp;<strong> /sbin/services.sh restart&nbsp;</strong> 来重启管理服务。然后你就可以使用SSH客户端连接ESXi主机了。</li>
</ol>
<p><strong> ESXi 3.5 Update 2 以上版本</strong> &nbsp;- 在Update 2 以后的版本中，services.sh已经不能重启控制SSH的inetd进程。你需要重启服务器或者使用下面的方法：执行&nbsp;<strong> ps | grep inetd</strong> &nbsp;来获取inetd的进程号，然后执行&nbsp;<strong> kill -HUP &lt;进程号&gt;</strong> &nbsp;使其重新读取配置文件，这时你就可以通过SSH连接服务器了。</p>
<br><img src ="http://www.cnitblog.com/201/aggbug/61206.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/201/" target="_blank">David</a> 2009-09-02 18:30 <a href="http://www.cnitblog.com/201/archive/2009/09/02/61206.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>VMware ESX 下( guest os )Linux 虚拟机时间不正确问题修改方法</title><link>http://www.cnitblog.com/201/archive/2009/06/05/59071.html</link><dc:creator>David</dc:creator><author>David</author><pubDate>Fri, 05 Jun 2009 04:44:00 GMT</pubDate><guid>http://www.cnitblog.com/201/archive/2009/06/05/59071.html</guid><wfw:comment>http://www.cnitblog.com/201/comments/59071.html</wfw:comment><comments>http://www.cnitblog.com/201/archive/2009/06/05/59071.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/201/comments/commentRss/59071.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/201/services/trackbacks/59071.html</trackback:ping><description><![CDATA[<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tbody>
        <tr>
            <td>
            <table width="100%">
                <tbody>
                    <tr>
                        <td class="document_title" rowspan="2" style="padding-bottom: 10px;" align="center"><br><br>Adjusting ESX Server Time Zone</td>
                        <td width="200">
                        <table style="border: 1px solid #a7c8e6; padding: 1px; border-spacing: 0px;" align="right">
                            <tbody>
                                <tr>
                                    <td>
                                    <table>
                                        <tbody>
                                            <tr>
                                                <td>KB Article</td>
                                                <td><strong> 1436</strong> </td>
                                            </tr>
                                            <tr>
                                                <td>Updated</td>
                                                <td><strong>
                                                Jul. 03,
                                                2008</strong> </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        </td>
                    </tr>
                </tbody>
            </table>
            </td>
        </tr>
        <tr>
            <td>
            <table border="0" cellpadding="0" cellspacing="0">
                <tbody>
                    <tr>
                        <td class="tabbar" style="padding: 2px 5px 1px 10px;">Products<br><img alt="" src="http://kb.vmware.com/contactcenter/img/sp.gif" width="100" border="0" height="3"></td>
                        <td width="20" height="100%"><img alt="" src="http://kb.vmware.com/contactcenter/img/viewdoc_tab.gif" width="20" border="0" height="100%"></td>
                    </tr>
                </tbody>
            </table>
            </td>
        </tr>
        <tr>
            <td class="tabbar" height="2"><img alt="" src="http://kb.vmware.com/contactcenter/img/sp.gif" width="1" border="0" height="2"></td>
        </tr>
        <tr>
            <td class="body" style="padding: 10px;">
            <table border="0" cellpadding="0" cellspacing="0">
                <tbody>
                    <tr>
                        <td class="body_bold" style="padding-bottom: 5px;">VMware ESX</td>
                    </tr>
                    <tr>
                        <td class="body"><br></td>
                    </tr>
                </tbody>
            </table>
            </td>
        </tr>
        <tr>
            <td>
            <table border="0" cellpadding="0" cellspacing="0">
                <tbody>
                    <tr>
                        <td class="tabbar" style="padding: 2px 5px 1px 10px;">Details<br><img alt="" src="http://kb.vmware.com/contactcenter/img/sp.gif" width="100" border="0" height="3"></td>
                        <td width="20" height="100%"><img alt="" src="http://kb.vmware.com/contactcenter/img/viewdoc_tab.gif" width="20" border="0" height="100%"></td>
                    </tr>
                </tbody>
            </table>
            </td>
        </tr>
        <tr>
            <td class="tabbar" height="2"><img alt="" src="http://kb.vmware.com/contactcenter/img/sp.gif" width="1" border="0" height="2"></td>
        </tr>
        <tr>
            <td class="body" style="padding: 10px;"><content>
            <div><font face="Arial">During
            installation, a time zone was selected for ESX Server that doesn't
            match the desired time zone. What are the steps to change the time zone?<font size="2">  </font> </font></div>
            <div><font size="2" face="Arial"> </font>&nbsp;</div>
            <div><font size="2"><font face="Verdana"><strong> Note</strong> : An ESX
            host with the wrong date and time or time zone passes on that wrong
            information. When a&nbsp;virtual machine&nbsp;boots up it&nbsp;seems to get its inital
            time from the BIOS hardware clock which comes from the ESX host. </font> </font></div>
            </content><br></td>
        </tr>
        <tr>
            <td>
            <table border="0" cellpadding="0" cellspacing="0">
                <tbody>
                    <tr>
                        <td class="tabbar" style="padding: 2px 5px 1px 10px;">Solution<br><img alt="" src="http://kb.vmware.com/contactcenter/img/sp.gif" width="100" border="0" height="3"></td>
                        <td width="20" height="100%"><img alt="" src="http://kb.vmware.com/contactcenter/img/viewdoc_tab.gif" width="20" border="0" height="100%"></td>
                    </tr>
                </tbody>
            </table>
            </td>
        </tr>
        <tr>
            <td class="tabbar" height="2"><img alt="" src="http://kb.vmware.com/contactcenter/img/sp.gif" width="1" border="0" height="2"></td>
        </tr>
        <tr>
            <td class="body" style="padding: 10px;"><content>
            <div class="MsoNormal" style="margin: 0in 0in 0pt;">To change the time zone, please follow the steps below.</div>
            <div class="MsoNormal" style="margin: 0in 0in 0pt;">&nbsp;</div>
            <p>&#160;</p>
            <p><strong> Note:</strong>  It is not necessary to reboot the ESX Server host after following this procedure.</p>
            <ol type="1">
                <li class="MsoNormal" style="margin: 0in 0in 12pt;">Log into the ESX Server service console as root.
                </li>
                <li class="MsoNormal" style="margin: 0in 0in 12pt;">Find the desired time zone under the directory
                <tt>/usr/share/zoneinfo</tt> .<br><br><strong>Note:</strong> Some regions have multiple files in a subdirectory. For example,
                <tt>US</tt> contains several files, each representing a time zone.<br><br>The example below uses
                <tt>/usr/share/zoneinfo/US/Pacific</tt> as the new time zone file.
                </li>
                <li class="MsoNormal" style="margin: 0in 0in 12pt;">
                <div>Use
                <tt>nano</tt> ( or another text editor) to open
                <tt>/etc/sysconfig/clock</tt> . <font size="2" face="Verdana">At the command pompt, type:<br> </font><br><font size="2"><font face="Courier New">nano /etc/sysconfig/clock </font> </font><br> <br>Edit
                this file to show the relative path to the file representing the new
                time zone, and ensure that UTC and ARC are set as shown:<br><br>
                <tt>ZONE="US/Pacific"</tt> <br>
                <tt>UTC=false</tt><br>
                <tt>ARC=false</tt> </div>
                </li>
                <li class="MsoNormal" style="margin: 0in 0in 12pt;">Copy the desired time zone file to
                <tt>/etc/localtime</tt> . Continuing the example using
                <tt>US/Pacific</tt> :<br><br>
                <tt>cp /usr/share/zoneinfo/US/Pacific /etc/localtime</tt> <br><br>At the
                <tt>cp: overwrite `/etc/localtime'?</tt> prompt, answer
                <tt>y</tt> to replace the file representing the old time zone. Again, it is not necessary to reboot the ESX Server host after updating /etc/localtime .
                </li>
                <li class="MsoNormal" style="margin: 0in 0in 0pt;">Confirm that /etc/localtime has been updated with the correct zoneinfo data using the following steps:<br><br>
                </li>
                <li style="list-style-type: none;">
                <ol style="margin-top: 0in;" type="a">
                    <li class="MsoNormal" style="margin: 0in 0in 0pt;">
                    <div>Reference the zoneinfo file used in step 2 and compare it to / etc/localtime using the diff command.<br><br>[root@esxhost]# diff /etc/localtime /usr/share/zoneinfo/US/Pacific<br><br>If the files are identical, your prompt will return without any output.<br><br></div>
                    </li>
                    <li class="MsoNormal" style="margin: 0in 0in 0pt;">
                    <div>If /etc/localtime is not the same as the /usr/share/zoneinfo/&lt;your location&gt; , the output from the diff command will be something like the following:<br><br>Binary files /etc/localtime and /usr/share/zoneinfo/US/Pacific differ <br><br>If the files are not the same, repeat step 4.</div>
                    </li>
                </ol>
                </li>
            </ol>
            <p>&nbsp;</p>
            <p>After updating /etc/localtime with the correct zoneinfo data, confirm the system and hardware clocks are correct. Use the Linux date command to check and set the correct time if necessary. Set the hardware clock to match the correct system time.</p>
            <ol type="1">
                <li class="MsoNormal" style="margin: 0in 0in 12pt;">Set the system clock to the local date and time:<br><br>
                <tt>date MMDDhhmmYYYY</tt>
                </li>
                <li class="MsoNormal" style="margin: 0in 0in 0pt;">Update the hardware clock with current time of the system clock:<br><br>
                <tt>/sbin/hwclock --systohc</tt> </li>
            </ol>
            <p><strong>Note:</strong> Upon booting, ESX Server runs
            <tt>/etc/rc.d/init.d</tt> , which reads
            <tt>/etc/sysconfig/clock</tt> to
            set the system clock based on the hardware clock's current time and the
            configured time zone information. To synchronize ESX Server to an
            external time reference, see <a href="http://kb.vmware.com/kb/1339" target="_blank">http://kb.vmware.com/kb/1339</a> .</p>
            <p>&nbsp;</p>
            <p>Reference the VMware Knowledge Base at <a href="http://kb.vmware.com/">http://kb.vmware.com</a> for additional information about timezone, including issues with Daylight Saving Time (DST).</p>
            </content></td>
        </tr>
    </tbody>
</table>
<br><img src ="http://www.cnitblog.com/201/aggbug/59071.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/201/" target="_blank">David</a> 2009-06-05 12:44 <a href="http://www.cnitblog.com/201/archive/2009/06/05/59071.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>让VMware ESX中的虚拟机随esx开机自动启动 </title><link>http://www.cnitblog.com/201/archive/2009/02/15/54577.html</link><dc:creator>David</dc:creator><author>David</author><pubDate>Sun, 15 Feb 2009 09:11:00 GMT</pubDate><guid>http://www.cnitblog.com/201/archive/2009/02/15/54577.html</guid><wfw:comment>http://www.cnitblog.com/201/comments/54577.html</wfw:comment><comments>http://www.cnitblog.com/201/archive/2009/02/15/54577.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cnitblog.com/201/comments/commentRss/54577.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/201/services/trackbacks/54577.html</trackback:ping><description><![CDATA[<p>加入你的esx断电自动重新启动了，你希望你里面虚拟的系统随esx一起启动。请按下面操作步骤修改一下<br></p>
<p><br></p>
<p>Go to the Configuration tab of your ESX Server, then click on Virtual Machine Startup/Shutdown.</p>
<p><a href="http://www.twistedethics.com/wp-content/uploads/2008/07/2008-07-17_112136.png"><img class="alignnone size-full wp-image-315" title="VMware esx configuration &gt; vm start up / shutdown" src="http://www.twistedethics.com/wp-content/uploads/2008/07/2008-07-17_112136.png" alt="" width="500" height="259"></a></p>
<p>By default (I&#8217;m pretty sure) automatic startup is disabled. To
enable it, click on &#8220;Properties&#8230;&#8221; on the far upper right of the window.</p>
<p>You&#8217;ll now see this window:</p>
<p><a href="http://www.twistedethics.com/wp-content/uploads/2008/07/2008-07-17_112338.png"><img class="alignnone size-full wp-image-316" title="VM automatic startup/shutdown properties" src="http://www.twistedethics.com/wp-content/uploads/2008/07/2008-07-17_112338.png" alt="" width="500" height="323"></a></p>
<p>Check/Tick &#8220;Allow virtual machines to start and stop automatically with the system&#8221;.</p>
<p>Now, this is the bit where I nearly cried&#8230;</p>
<p><a href="http://www.twistedethics.com/wp-content/uploads/2008/07/2008-07-17_112839.png"><img class="alignnone size-full wp-image-319" title="VM auto start - default" src="http://www.twistedethics.com/wp-content/uploads/2008/07/2008-07-17_112839.png" alt="" width="499" height="174"></a></p>
<p>You know you want to &#8220;enable&#8221; your Guest OSes to automatically boot,
but how? I tried clicking and dragging, right clicking for a context
menu to enable &#8220;Automatic start up&#8221; and gave up.</p>
<p>Turns out, you need to click on the Guest OS you&#8217;d like to enable,
and then click &#8220;Move Up&#8221; until it sits underneath the &#8220;Automatic
startup&#8221; title. Argh!</p>
<p><a href="http://www.twistedethics.com/wp-content/uploads/2008/07/2008-07-17_112852.png"><img class="alignnone size-full wp-image-318" title="VM auto start - moved up" src="http://www.twistedethics.com/wp-content/uploads/2008/07/2008-07-17_112852.png" alt="" width="499" height="174"></a></p>
<br><img src ="http://www.cnitblog.com/201/aggbug/54577.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/201/" target="_blank">David</a> 2009-02-15 17:11 <a href="http://www.cnitblog.com/201/archive/2009/02/15/54577.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>MYSQL主从复制高可用实施手册</title><link>http://www.cnitblog.com/201/archive/2009/02/01/54099.html</link><dc:creator>David</dc:creator><author>David</author><pubDate>Sun, 01 Feb 2009 08:55:00 GMT</pubDate><guid>http://www.cnitblog.com/201/archive/2009/02/01/54099.html</guid><wfw:comment>http://www.cnitblog.com/201/comments/54099.html</wfw:comment><comments>http://www.cnitblog.com/201/archive/2009/02/01/54099.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/201/comments/commentRss/54099.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/201/services/trackbacks/54099.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 声明：该方案不能进行主从自由切换，如果要在主节点当机在恢复使用必须时候手动来操作，首先要进行同步数据，然后在做同步复制，最后在切换！这一切操作必须人为干预！应用需求：双机热备提供备份，冗余功能安装环境：NODE1 主机名 master IP地址 10.10.10.101NODE2 主机名 slave IP地址 10.10.10.102VIA ...&nbsp;&nbsp;<a href='http://www.cnitblog.com/201/archive/2009/02/01/54099.html'>阅读全文</a><img src ="http://www.cnitblog.com/201/aggbug/54099.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/201/" target="_blank">David</a> 2009-02-01 16:55 <a href="http://www.cnitblog.com/201/archive/2009/02/01/54099.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Dell SC 440 + VMware esx 3.5 U3 安装</title><link>http://www.cnitblog.com/201/archive/2008/12/04/52190.html</link><dc:creator>David</dc:creator><author>David</author><pubDate>Thu, 04 Dec 2008 02:21:00 GMT</pubDate><guid>http://www.cnitblog.com/201/archive/2008/12/04/52190.html</guid><wfw:comment>http://www.cnitblog.com/201/comments/52190.html</wfw:comment><comments>http://www.cnitblog.com/201/archive/2008/12/04/52190.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/201/comments/commentRss/52190.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/201/services/trackbacks/52190.html</trackback:ping><description><![CDATA[之前使用ESX 由于不支持Dell sc 440 网卡 Broadcom NetXtreme BCM5754，只能去重新找一块千兆intel网卡替代。<br><br>现在vmware esx 3.5 u3 提供对Broadcom NetXtreme BCM5754的支持，可以尽情安装esx3.5u3 测试了。<br><br>我的配置为：<br>E2180 2.0/4G RAM/160G SATA,没有任何RAID卡。<br><br>呵呵，因为CPU，主板对VT不支持，只能虚拟出32bit的操作系统。<br><br>如果你要使用esx 虚拟出64bit 的linux ,win 2008 ,建议去购买dell 1430,1900, 2950吧，那些有 VT的支持<br><br> <img src ="http://www.cnitblog.com/201/aggbug/52190.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/201/" target="_blank">David</a> 2008-12-04 10:21 <a href="http://www.cnitblog.com/201/archive/2008/12/04/52190.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>在VMWare ESX上重新加载旧的Datastore</title><link>http://www.cnitblog.com/201/archive/2008/10/23/50609.html</link><dc:creator>David</dc:creator><author>David</author><pubDate>Thu, 23 Oct 2008 12:03:00 GMT</pubDate><guid>http://www.cnitblog.com/201/archive/2008/10/23/50609.html</guid><description><![CDATA[<div class="storycontent">
<p>这篇文章的背景问题在<a href="http://www.windwood.name/blog/archives/471.html" title="&#8220;LVM.DisallowSnapshotLun&#8221; Problem when Migrating a Datastore on VMWare ESX Server">上一篇文章(</a><a href="http://www.windwood.name/blog/archives/471.html" rel="bookmark">&#8220;LVM.DisallowSnapshotLun&#8221; Problem when Migrating a Datastore on  VMWare ESX Server)</a>里提到了——当时不知道取什么题目好，当然现在还不是很清楚，不过会明确一点了，就是将Datastore的LUN调整成其它值(unpresent&amp;&amp;present)了以后，ESX就没法把这个识别到的LUN作为Datastore了。</p>
<p>系统日志vmkernel里有显示一些经常出现的信息：</p>
<blockquote>
<p>Dec 25 13:21:55 vm0 vmkernel: 229:02:33:19.877 cpu7:1037)WARNING: LinSCSI: 4524: The <strong> physical media represented</strong>  by vmhba2:0:2 has changed. The device has been re-synchronized with the system.</p>
<p>Dec 25 14:53:57 vm0 vmkernel: 0:00:01:56.956 cpu6:1038)LVM: ValidateDevice: [vmhba3:0:1:1] Mismatch between <strong> stored disk ID</strong>  and actual <strong> disk ID</strong> <br>
Dec 25 14:53:57 vm0 vmkernel: 0:00:01:56.966 cpu6:1038)LVM: CheckDevSnapshot: Device vmhba3:0:1:1 is a snapshot:<br>
Dec 25 14:53:57 vm0 vmkernel: 0:00:01:56.973 cpu6:1038)LVM:
CheckDevSnapshot: disk ID: &lt;type 2, len 22, lun 1, devType 0, scsi
6, h(id) 16169674206390955907&gt;<br>
Dec 25 14:53:57 vm0 vmkernel: 0:00:01:56.984 cpu6:1038)LVM:
CheckDevSnapshot: m/d disk ID: &lt;type 2, len 22, lun 2, devType 0,
scsi 6, h(id) 16169674206390955907&gt;<br>
Dec 25 14:53:57 vm0 vmkernel: 0:00:01:56.997 cpu6:1038)LVM:
ValidateDevice: [vmhba3:0:1:1] Mismatch between stored disk ID and
actual disk ID<br>
Dec 25 14:53:57 vm0 vmkernel: 0:00:01:57.008 cpu6:1038)LVM:
ProbeDeviceInt: vmhba3:0:1:1 =&gt; Operation should be retried due to
temporary error condition<br>
Dec 25 14:53:57 vm0 vmkernel: 0:00:01:57.019 cpu6:1038)LVM:
ValidateDevice: [vmhba3:0:1:1] Mismatch between stored disk ID and
actual disk ID<br>
Dec 25 14:53:57 vm0 vmkernel: 0:00:01:57.029 cpu6:1038)LVM: CheckDevSnapshot: Device vmhba3:0:1:1 is a snapshot:<br>
Dec 25 14:53:57 vm0 vmkernel: 0:00:01:57.037 cpu6:1038)LVM:
CheckDevSnapshot: disk ID: &lt;type 2, len 22, lun 1, devType 0, scsi
6, h(id) 16169674206390955907&gt;<br>
Dec 25 14:53:57 vm0 vmkernel: 0:00:01:57.048 cpu6:1038)LVM:
CheckDevSnapshot: m/d disk ID: &lt;type 2, len 22, lun 2, devType 0,
scsi 6, h(id) 16169674206390955907&gt;<br>
Dec 25 14:53:57 vm0 vmkernel: 0:00:01:57.061 cpu6:1038)LVM:
ValidateDevice: [vmhba3:0:1:1] Mismatch between stored disk ID and
actual disk ID<br>
Dec 25 14:53:57 vm0 vmkernel: 0:00:01:57.070 cpu6:1038)WARNING: LVM:
ProbeDeviceInt: [vmhba3:0:1:1] detected as a snapshot device.
Disallowing access to the LUN since resignaturing is turned off.<br>
Dec 25 15:53:05 vm0 vmkernel: 0:00:01:11.546 cpu7:1037)LVM: 5670: Device vmhba2:0:1:1 is a <strong> snapshot</strong> :<br>
Dec 25 15:53:05 vm0 vmkernel: 0:00:01:11.546 cpu7:1037)LVM: 5676: disk
ID: &lt;type 2, len 22, lun 1, devType 0, scsi 6, h(id)
16169674206390955907&gt;<br>
Dec 25 15:53:05 vm0 vmkernel: 0:00:01:11.546 cpu7:1037)LVM: 5678: m/d
disk ID: &lt;type 2, len 22, lun 2, devType 0, scsi 6, h(id)
16169674206390955907&gt;<br>
Dec 25 15:53:05 vm0 vmkernel: 0:00:01:11.549 cpu7:1037)LVM: 5670: Device vmhba2:0:1:1 is a snapshot:<br>
Dec 25 15:53:05 vm0 vmkernel: 0:00:01:11.549 cpu7:1037)LVM: 5676: disk
ID: &lt;type 2, len 22, lun 1, devType 0, scsi 6, h(id)
16169674206390955907&gt;<br>
Dec 25 15:53:05 vm0 vmkernel: 0:00:01:11.549 cpu7:1037)LVM: 5678: m/d
disk ID: &lt;type 2, len 22, lun 2, devType 0, scsi 6, h(id)
16169674206390955907&gt;<br>
Dec 25 15:53:06 vm0 vmkernel: 0:00:01:11.549 cpu7:1037)WARNING: LVM: 4844: [vmhba2:0:1:1] <strong> detected as a snapshot</strong>  device. Disallowing access to the LUN <strong> since resignaturing is turned off</strong> .</p>
</blockquote>
<p>按照我最后的理解，这部分信息应该是最重要的。其中被强调显示标记的说明了，volume的LUN更改以后Disk ID也发生了变化，这个和ESX里存储的Disk ID出现了不一致。由于Configuration-Advanced Settings里LVM.EnableResignaturing
这个开关被设置为0(turned
off)，ESX就把这个volume视作一个&#8220;新&#8221;的volume，而且是现有Datastore的snapshot而禁止加载。也正因此，可以通过把
LVM.DisallowSnapshotLun开关关闭，将这个可能是现有Datastore的snapshot的volume加载为一个新的
Datastore。这就是我对这个问题的理解。</p>
<p>至于什么是resignaturing呢？正常状态下，
ESX的/vmfs/volumes/下面显示一些目录，这是现有的Datastore所对应的volume的挂载点(mount
point)，目录名就是volume在系统里的标志（我猜测就是Disk
ID），例如：44b0d972-e8adad27-adee-00132165b7cb、44b65ab5-928b798d-
fbb7-00132165b7cb。这些volumes可能是位于本地磁盘的VMFS的分区，也可能是位于SAN上的磁盘分区。对于添加的空白
volume，ESX会自动signature这个volume的一些信息，成为这个标识（即目录名），并挂载到/vmfs/volumns里；对于那些
非空白的，可能是其它Datastore的snapshot的volume，除非系统允许RE-signature，即重新signature信息，重新
挂载到ESX中。但是resignature后那个标识信息将不是原来的，而是新的了。换句话说要访问这个&#8220;新&#8221;的Datastore就要通过新的目录名
来访问了。</p>
<p><em> 在/vmfs/volumes/下面还有一些以storage1之类的链接名，这些链接名就是VIC里面所看到的Datastore的名称。如果通过VIC将名称改了，链接名也马上发上改变。</em> </p>
<p>知道问题的原理以后，也就知道该怎么解决了。具体详细的过程可以参考这篇<a href="http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&amp;docType=kc&amp;externalId=9453805&amp;sliceId=2&amp;docTypeID=DT_KB_1_1&amp;dialogID=4150083&amp;stateId=0%200%204146820" title="Resignaturing VMFS3 Volumes That Are Not Snapshots">文章（Resignaturing VMFS3 Volumes That Are Not Snapshots）</a>。</p>
<p>在操作之前有几点要注意的：</p>
<ul>
    <li>VIC连接的最好是ESX本身的地址，而不是Virtual Center的地址；</li>
    <li>把所有的虚拟机停掉。把所有ESX启动后会自动开机的虚拟机改成不要自动开机，因为后面最好是重启一下；</li>
    <li>重启服务器的方法：通过VIC 右键点击具体的ESX Host选择reboot或者在登录服务器控制台执行reboot命令，而不要在SSH远程登录终端里halt（这样不能完全关闭，控制台显示已经halt了，但是SSH远程还是可以登录，VIC也还可以连接）</li>
</ul>
<p>由于我之前用了DisallowSnapshotLun的办法，所以我认为的操作方法和文章提到的有点差别，具体是这样的：</p>
<ol>
    <li>将虚拟机停掉</li>
    <li>VIC连上ESX，
    将LVM.DisallowSnapshotLun开关设置为1，将LVM.EnableResignaturing开关设置为1，Rescan，将
    LVM.EnableResignaturing设置回0；（由于我实际上是连到VirtualCenter操作，并且rescan之前没有停掉虚拟机，
    所以rescan之后原先的Datastore出现错误，同时VirtualCenter和ESX断开连接，只好重启一遍）</li>
    <li>ESX重启后，用VIC连上，在Configuration-Storage(SCSI, SAN and NFS)就可以看到以snap开头的一个新的DataStore了，可以将这个DataStore的名字改成自己喜欢的；</li>
    <li>由于旧的DataStore已经失效或者说找不到了，虚拟主机列表里所有主机都显示为不可用，而且不能显示原先的名字；</li>
    <li>重启ESX服务器，在操作系统内核选择菜单选择进入Console模式；</li>
    <li>以root登录，查看/vmfs/volumes/下新的目录名（类似44b65ab5-928b798d-fbb7-00132165b7cb的磁盘信息），记下来；</li>
    <li>修改/etc/vmware/hostd/vmInventory.xml文件（这个文件保存的是所有虚拟主机的配置文件路径），将位于已经失效的DataStore的volume上的虚拟机的配置路径(&lt;&lt;vmxCfgPath&gt;)修改成现在的；</li>
    <li>重启ESX服务器，进入正常状态，用VIC连上Virtual Center，可以看到现在虚拟机都回来了；</li>
    <li>使用文章介绍的方法把失效的DataStore删除，如果无法删除可能是Virtual Machines里还有Template，就先把Template <em> Remove from Inventory</em> ；</li>
    <li>将每台虚拟机启动一下，会出现关于UUID是要keep，还是renew的的时候，选择keep就好了；</li>
    <li>最后就是将原先修改的自动开机的设置改回去。</li>
</ol>
<p>目前这样就算是基本完成了，最后再补充几点：</p>
<ul>
    <li>操作步骤里5,6,7所产生的效果就是可以将虚拟主机清单指向新的DataStore，而不用像文章里所说的一样，将虚拟主机Remove from Inventory，然后再从DataStore中浏览出来，Add to Inventory；</li>
    <li>步骤3,4其实可以不要，即直接重启到Console，修改好了以后再重启到正常状态（服务器重启一次要好久，大部分的时间都是浪费在等待重启上了）。</li>
</ul>
<p>还需要解决的问题：</p>
<ul>
    <li>如果能知道ESX是如果进行signature，以及signature后的结果是存放到哪里的，就可以直接在Console模式下去编辑配置文件修改原先的DataStore的Disk ID，就可以减少Add &amp;&amp; Remove的操作了；</li>
    <li>如果能知道Template添加到Inventory后是保存到那个配置文件的话，就可以向修改vmInventory一样，直接修改Template的路径，而不用remove以后再Add，然后还要Convert to template。</li>
</ul>
</div>
<br><img src ="http://www.cnitblog.com/201/aggbug/50609.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/201/" target="_blank">David</a> 2008-10-23 20:03 <a href="http://www.cnitblog.com/201/archive/2008/10/23/50609.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ESX SERVER 命令控制台添加VMFS</title><link>http://www.cnitblog.com/201/archive/2008/10/23/50607.html</link><dc:creator>David</dc:creator><author>David</author><pubDate>Thu, 23 Oct 2008 12:00:00 GMT</pubDate><guid>http://www.cnitblog.com/201/archive/2008/10/23/50607.html</guid><description><![CDATA[对大部份的VMWARE的朋友来说，在真实的VI3环境下增加一个硬盘，并且在VC下添加成VMFS卷应该不算是什么问题。因为我手头上没有VI3的真实环境，在VM6.02虚拟环境也是勉强搭建起来运行ESX SERVER。我最初安装ESX是出于对ESX的学习，刚学两星期在这方面也没有太多的经验。也就没有对整体的实验进行规划，按照VM6建Red hat虚拟系统的步骤生成虚拟系统。硬盘只分了8G。在VM下装了ESX3.0玩了两天觉得有点无聊，就试着想在ESX下安系统玩玩，才发现硬盘空间只剩下1G了。无耐只能再给ESX加一个15G的SCSI硬盘。<br>我的硬件：<br>CPU   INTEL E2160(郁闷不支持VT技术)<br>内存  2G<br>硬盘  80G<br>HOST系统是WIN XP SP2<br> <br>我的物理机上运行一个VC、VM。VC用于控制ESX，但是由于计算机硬件CPU不支持VT技术导致虚拟系统占用了全部的CPU。CPU在启动ESX开始就一直是100%的。最终造成VC无法正常使用，变成可远观而不可亵玩焉，基本上点击什么功能都是弹出错误，说什么&#8220;等待服务器响应超时&#8221;然后又是一个说什么&#8220;参考对象没有设定为一个实例的一个对象&#8221;的错误~~~~郁闷。ESC的启动也是奇慢无比，我个人比较懒也不想为了加一个硬盘上去做实验去关闭ESX等待那一个小时的启动。我想到一般的服务器都支持热插拔技术，不过好像VM不可以添加。我试过强行修改VMX配置文件添加下去也不行。<br>不好意思，扯远了。下边是正题：<br>在ESX上添加一块15G的硬盘，启动&#8230;&#8230;我可怜的小U不支持VT技术，用了一个小时才启动完成。<br>按ALT+F1进入命令控制台<br> <br>由于本人的LINUX基础不是很好，VMware会更加复杂，因为会有两种情况存在。<br>当对齐raw disk或者Raw Device Mapping(RDM)卷，实在虚拟主机(VM)层次上来实现对齐的。例如，在windows的虚拟主机上使用diskpar来实现对齐。对于VMFS卷，会在ESX Server的层次上使用fdisk来实现对齐，正如diskpar在VM层次。这是因为不管是ESX Server还是客户端都会把MBR放到LUN上面去。ESX必须对齐VMFS卷，而客户系统必需对其他们的虚拟磁盘。因此我只选择了使用fdisk工具来进行分区<br>使用fdisk &#8211;l查看系统中的磁盘分区<br>看到一个 Disk  /dev/sdb: 16.1 GB， 16106127360 bytes的磁盘，(LINUX的磁盘设备命名方式，第一块IDE磁盘hda、第二块则是hdb以最后的一位英文字母依次递增来表示磁盘的编号。我所使用的是SCSI硬盘，所以编号为sda和sdb。Sda1是指sda的第一个文件系统＝分区)下面我们先对它进行分区：<br>在命令提示符下输入<br> [root@vmware dev]# fdisk /dev/sdb<br>Device contains neither a valid DOS partition table， nor Sun， SGI or OSF disklab el<br>Building a new DOS disklabel. Changes will remain in memory only，<br>until you decide to write them. After that， of course， the previous<br>content won't be recoverable.<br> <br> <br>The number of cylinders for this disk is set to 1958.<br>There is nothing wrong with that， but this is larger than 1024，<br>and could in certain setups cause problems with:<br>1) software that runs at boot time (e.g.， old versions of LILO)<br>2) booting and partitioning software from other OSs<br>   (e.g.， DOS FDISK， OS/2 FDISK)<br>Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)<br> <br>Command (m for help): n                               (#输入n参数来增加新的分区#)<br>Command action          (#选择新建的分区类型，主分区还是扩展分区；选择p或者e#)<br>   e   extended<br>   p   primary partition (1-4)<br>p                                                      (#这里选择P是主要分区#)<br>Partition number (1-4): 1                                           (#添加主分区1 #)<br>First cylinder (1-15360， default 1): 1       (#输入开始位置，直接回车；默认为1 ，就好#)<br> <br>Command (m for help): x                                   (#输入x ，进行专家模式#)<br> <br>Expert command (m for help): b           （#专家行模式，输入b ，编辑bsd类型分区#）<br>Partition number (1-4): 1                                            (#添加主分区1#)<br>New beginning of data (1-15360， default 15360):  (#输入结束位置，直接回车；默认为15360#)<br>Using default value 15360<br> <br>Expert command (m for help): r                                (#输入r ，返回主菜单#)<br> <br>Command (m for help): t          (#输入t ，改变分区类型，系统会提示要改变哪个分区#)<br>Selected partition 1<br>Hex code (type L to list codes): fb  (#输入fb ，如果想知道系统支持的分区类型列表，输入l#)<br>Changed system type of partition 1 to fb (Unknown)<br> <br>Command (m for help): w                              （#输入w ，保存修改，并退出#）<br>The partition table has been altered!<br> <br>Calling ioctl() to re-read partition table.<br> <br>Syncing disks.   <br> <br>到了这里我们再用命令查看创建出来的分区<br>[root@vmware dev]# fdisk &#8211;l<br> <br>看到了吧.ID为fb　　　System是Unknown的<br>分区创建到这里，往下走下一步<br>（#在（）内我使用了#号里边的内容作了解释，如有错的地方请多多指教。用户通过提示键入&#8220;m&#8221;，可以显示Fdisk命令各个参数的说明。整个关键是在进入专家后的配置和分区类型一定要选择fb，fb是表示系统自动选择#）<br>通过把分区类型声明为fb，ESX Server会将这个分区认为一个没有被格式化的VMFS卷。你应该能够使用MUI或者vmkfstools，把一个VMFS文件系统放上去。对于Linux的虚拟主机，按照上面列出的程序步骤来做。对于windows的虚拟主机，也是按照上面的程序步骤来做。<br> <br>贴两个跟LINUX分区有关的表<br> <br> <br>Fdisk分区工具的参数表：<br> <br>  <br> <br>LINUX系统支持的分区类型列表<br> <br> <br>最后一步，在这里我们要使用到VMware ESX Server-vmkfstools文件系统管理工具对vmhba0适配器上的第一个磁盘分区上创建一个文件块大小为1MB，标签为'mlyVMFS'的VMFS3文件系统.<br>[root@vmware dev]# vmkfstools -C vmfs3 -b 1m -S mlyVMFS vmhba0:1:0:1<br> <br>这里我把整个命令拆开解释一下：<br>Vmkfstools             (#使用Vmkfstools 工具#)<br>-C                           (#建立一个虚拟磁盘#)<br>Vmfs3                    (#创建为VMFS3文件格式系统#)<br>-b 1m                     (#用于指定文件块大小,我这里指定为1M#)<br>-S mlyVMFS            (#设置VMFS文件系统标签, 我这里设置成mlyVMFS#)<br>vmhba0:1:0:1<br>(#vmhba0其中第一个0表示适配器,1表示第一块目标硬盘（默认是0开始吧）,0表示LUN(逻辑单位编号),1表示分区.如果这一位为0则表示整个磁盘#) <br> <br> <br>敲下命令后又开始郁闷了~~~~又等了将近一小时。在这段焦虑无比的心情下，终于看到了VM状态栏里的第二块硬盘一阵狂闪&#8230;&#8230;系统提示Successfully了!!!<br>好，下面我用VC看一下有没有^o^ 大家一起看：<br>郁闷，居然没有。点击一下Refresh刷新一下。系统又弹出了那个讨厌的错误对话框说什么&#8220;等待服务器响应超时&#8221;然后又是一个说什么&#8220;参考对象没有设定为一个实例的一个对象&#8221;的错误。强行关闭VC再开碰碰运气。结果成功了。<br> <br>这下心情可无比激动了，呵呵。这下可以装虚拟系统了，电脑熬了一天CPU 100%的快要崩溃了。这是本人第一次写教程，哪里写得不好的请大家在论坛中指出，千万不要砸我。谢谢<br> <br>*（在使用VMware ESX Server-vmkfstools文件系统管理工具的时候有一点必须得注意的。就是要注意参数和命令的大小写，LINXU也是对输入的字符和命令有大小写要求的。否则会出错）<br> <br> <br> <br>以下是一些VMware ESX Server-vmkfstools工具的命令行<br>Vmkfstools - VMware ESX Server文件系统管理工具<br><br>语法:<br>vmkfstools OPTIONS<br>vmkfstools OPTIONS PARTITION<br>vmkfstools OPTIONS DEVICE<br>vmkfstools OPTIONS PATH<br><br>vmkfstools是一个创建和维护在VMware ESX Server上的虚拟磁盘，文件系统，逻辑卷和物理存储设备的程序.他支持创建在一磁盘分区上创建VMFS，和管理保存在VMFS上的文件(如虚拟磁盘).<br>OPTIONS是指定操作的一个或多个命令行选项.被操作的文件或者VMFS文件系统可指定在选项后，基于/vmfs目录的相对或绝对的文件路径.<br><br>PARTITION参数用于指定分区， 应该以vmhbaA:T:L:P的形式，其中A表示适配器，T表示目标，L表示LUN(逻辑单位编号)，P表示分区.P为0表示整个磁盘.<br>例: vmhba0:2:3:1指向第一个适配器，目标为2，LUN为3上面的第一个分区.<br><br>DEVICE参数用于指定设备，并且是一个以/vmfs/devices(设备文件系统的挂载点)开始的路径名.下面的子挂载点为每个设备.例如: /vmfs/devices/disks为本地或其于SAN的磁盘， /vmfs/devices/lvm为VMKernel逻辑卷，/vmfs/device/generic为通用SCSI设备，如磁带机，等等.<br><br>PATH参数用于指定VMFS文件系统或文件，为基于/vmfs目录下的相对或绝对路径或者文件名.<br><br>文件系统选项<br>长和短形式的命令选项是相等的.如:<br><br>vmkfstools -C --createfs vmfs3<br>-b --blocksize #[mMkK]<br>-S --setfsname fsName<br>-Z --extendfs extension-partition<br>deviceName<br>-P --queryfs -h --humanreadable<br>-T --tovmfs3<br>-x --upgradetype [zeroedthick|eagerzeroedthick|thin]<br>-u --upgradefinish<br>vmfsPath<br><br>-C， --createfs vmfs3<br>-b， --blocksize #[mMkK]<br>-S， --setfsname fsName<br>　　文件块大小通过选项-b指定，默认文件块大小为1MB，文件块大小必须为1MB，2MB，4MB或8MB.在ESX Server 3下，VMFS-2文件系统为只读的，用户不允许创建和修改.VMFS-3文件系统ESX 2.X不可用.<br>　　-s选项设置VMFS文件系统标签， 该选项只能与选项'-C'关联使用.标签可容纳128字符，头尾不能包含空格. 可通过如下命令修改已创建的文件系统标签:<br>　　ln -sf /vmfs/volumes/<fs uuid=""> /vmfs/volumes/<new label=""><br><br>　　-Z， --extendfs 扩展分区<br>　　通过增加其它分区扩展已经存在的VMFS-3文件系统.一个VMFS-3文件系统最多可以有32个分区.该选项不能用于ESX Server 3下的VMFS-2文件系统．<br><br>-P， --queryfs<br>-h， --human-readable<br>　　列出当一个VMFS文件系统上有任何文件和目录时的文件系统属性，列出了VMFS版本号，构成指定VMFS文件系统的分区号，文件系统标签（如果有的话），文件系UUID，可用空间，并列出文件系统关联所有分区的设备名称．选项'-h'为可读的打印格式大小（如5k，12.1M或2.1G)<br><br>文件系统升级选项<br><br>　　VMFS-2升级到VMFS-3文件系统需两个步骤．升级前必须卸下`vmfs2`和`vmfs3`驱动，并装载辅助文件系统驱动程序'fsaux'．升级第一步使用'-T'选项，完成后，卸下辅助文件系统'fsaux'，重新装入vmfs2和vmfs3驱动．升级第二步使用'-u'选项．<br><br>　　-T， --tovmfs3<br>　-x， --pgradetype [zeroedthick|eagerzeroedthick|thin]<br>转换VMFS-2文件系统至VMFS-3格式，对于文件系统保存所有文件.只有文件块大小为8MB或更小的文件系统能被转换.转换是单向的，不能回滚.<br><br>　　-u， --upgradefinish /vmfs/volumes/<file label|file="" system="" uuid=""><br>　　一旦文件系统升级的第一步骤完成(使用`-T`)， `vmfs2`和`vmfs3`模块必须被重新装载，选项`-u`用以完成文件系统的升级.<br><br>虚拟磁盘选项<br><br>vmkfstools -c --createvirtualdisk #[gGmMkK]<br>　-d --diskformat [zeroedthick|eagerzeroedthick|thick|thin]<br>-a --adapterType [buslogic|lsilogic]<br>-w --writezeros<br>-j --inflatedisk<br>-U --deletevirtualdisk<br>-E --renamevirtualdisk srcDisk<br>-i --clonevirtualdisk srcDisk<br>-d --diskformat [rdm:<device>|rdmp:<device>|raw:<device>|thin|2gbsparse|monoflat|monosparse]<br>-X --extendvirtualdisk #[gGmMkK]<br>-M --migratevirtualdisk<br>-r --createrdm /vmfs/devices/disks/...<br>-q --queryrdm<br>-z --createrdmpassthru /vmfs/devices/disks/...<br>-v --verbose #<br>-g --geometry<br>-J --miscop [setuuid | getuuid]<br>vmfsPath<br><br>　　-c， --createvirtualdisk #[gGmMkK]<br>　　-a， --adaptertype [buslogic|lsilogic] srcFile<br>　　-d， --diskformat [zeroedthick|eagerzeroedthick|thick|thin]<br>在VMFS文件系统上以指定大小创建一虚拟磁盘.大小选项默认单位为字节，但可以分别通过后缀'k'，'m'，或'g'指定为kb，Mb或Gb.'adaptertype'选项允许用户去指定使用哪种设备驱动程序与虚拟磁盘通讯.'-d'选项表示虚拟磁盘格式.默认磁盘格式为'zeroedthick'.具体详见'SUPPORTED DISK FORMATS'章节.<br>　-U， --deletevirtualdisk<br>　删除指定虚拟磁盘以及关联的文件.<br><br>　-E， --renamevirtualdisk srcDisk<br>　重命名指定虚拟磁盘关联的文件名称。<br><br>　-i， --clonevirtualdisk srcDisk<br>　-d， --diskformat [rdm:<device>|rdmp:<device>|raw:<device>|thin|2gbsparse|monosparse|monoflat]<br>　创建虚拟磁盘或raw磁盘的一个拷贝(克隆).<br><br>　-e， --exportvirtualdisk dstDisk<br>　不赞成该操作.可以使用'-i srcDisk -d 2gbsparse'达到相同效果.<br><br>　-x， --extendvirtualdisk #[gGmMkK]<br>　扩展指定的VMFS虚拟盘至指定的大小.<br><br>　-M， --migratevirtualdisk<br>　迁移ESX2虚拟磁盘到ESX3虚拟磁盘.<br><br>　-r， --createrdm /vmfs/devices/disks/...<br>　在VMFS文件系统上影射一个raw磁盘到一个文件.一旦影射被确定，可以象控制一个普通的VMFS虚拟磁盘一样控制raw磁盘.<br><br>　-q， --queryrdm<br>　列出关于raw磁盘影射的属性.<br><br>　-z， --createdmpassthru /vmfs/devices/disks/...<br>　在VMFS文件系统上影射一个passthrougn raw磁盘到一个文件.这允许虚拟机器跳过 VMKernel SCSI命令过虑的没用的VMFS虚拟磁盘.<br><br>　-v， --verbose #<br><br>　-g， --geometry<br>　获取虚拟磁盘物理信息(柱面，磁头数，扇区)<br><br>　-w， --writezeros<br>　虚拟磁盘写0.原存储的数据丢失.<br><br>　-j， --inflatedisk<br>　转换一个thin虚拟磁盘到预分配大小.原来数据和块会受到保护.<br><br>　-J， --miscop [setuuid | getuuid]<br>　'setuuid'选项为虚拟磁盘创建一个唯一的标识符(UUID)，并保存UUID在虚拟磁盘的一个描述文件里.如果描述文件中已包含一个UUID，将被新的覆盖.请确保虚拟磁盘没有一个UUID才使用该项.'getuuid'项将显示虚拟磁盘的UUID.<br><br>例子:<br>vmkfstools -C vmfs3 -b 1m -S myVMFS vmhba1:3:0:1<br>在vmhba适配器1，目标3，LUN编号0上的第一个磁盘分区上创建一个文件块大小为1MB，标签为'myVMFS'的VMFS3文件系统<br><br>vmkfstools -Z vmhba0:1:2:4 vmhba1:3:0:1<br>扩展分区，原来文件系统将跨越两个分区.vmhba0:1:2:4 和vmhba1:3:0:1.在这里vmhba1:3:0:1是做为文件系统的头部分区得到了扩展.<br><br>vmkfstools -c 2048m /vmfs/volumes/myVMFS/myOS.vmdk<br>在名为'myVMFS'的VMFS文件系统上创建一个文件名为'myOS.vmdk'的，容量大小为2GB的VMFS虚拟磁盘.</device></device></device></device></device></device></file></new></fs><br><img src ="http://www.cnitblog.com/201/aggbug/50607.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/201/" target="_blank">David</a> 2008-10-23 20:00 <a href="http://www.cnitblog.com/201/archive/2008/10/23/50607.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>vmware esx 上的命令行－－更改Service Console的IP地址 </title><link>http://www.cnitblog.com/201/archive/2008/10/23/50608.html</link><dc:creator>David</dc:creator><author>David</author><pubDate>Thu, 23 Oct 2008 12:00:00 GMT</pubDate><guid>http://www.cnitblog.com/201/archive/2008/10/23/50608.html</guid><description><![CDATA[esx上特有的命令很多，有些是很方便，就用这个来记录我平时在esx上用到的命令<br>1：看你的esx版本。<br>vmware -v<br>2：列出esx里知道的服务<br>esxcfg-firewall -s<br>3：查看具体服务的情况<br>esxcfg-firewall -q sshclinet<br>4：重新启动vmware服务<br>service mgmt-vmware restart<br>5: 修改root的密码<br>passwd root<br>6：列出你当前的虚拟交换机<br>esxcfg-vswitch -l<br>7：查看控制台的设置<br>esxcfg-vswif -l<br>8：列出系统的网卡<br>esxcfg-nics -l<br>9：添加一个虚拟交换机，名字叫（internal）连接到两块物理网卡，（重新启动服务，vi就能看见了）<br>esxcfg-vswitch -a vSwitch1<br>esxcfg-vswitch -A internal vSwitch1<br>esxcfg-vswitch -L vmnic1 vSwitch1<br>esxcfg-vswitch -L vmnic2 vSwitch1<br>10：删除交换机,(注意，别把控制台的交换机也删了）<br>esxcfg-vswitch -D vSwitch1<br>11：删除交换机上的网卡<br>esxcfg-vswitch -u vmnic1 vswitch2<br>12：删除portgroup<br>esxcfg-vswitch -D internel vswitch1<br>13：创建 vmkernel switch ，如果你希望使用vmotion，iscsi的这些功能，你必须创建( 通常是不需要添加网关的）<br>esxcfg-vswitch -l<br>esxcfg-vswitch -a vswitch2<br>esxcfg-vswitch -A "vm kernel" vswitch2<br>esxcfg-vswitch -L vmnic3 vswitch2<br>esxcfg-vmknic -a "vm kernel" -i 172.16.1.141 -n 255.255.252.0<br>esxcfg-route 172.16.0.254<br>14：打开防火墙ssh端口<br>esxcfg-firewall -e sshclient<br>esxcfg-firewall -d sshclient<br>15: 创建控制台<br>esxcfg-vswitch -a vSwitch0<br>esxcfg-vswitch -A "service console" vSwitch0<br>esxcfg-vswitch -L vmnic0 vSwitch0<br>esxcfg-vswif -a vswif0 -p "service console" -i 172.16.1.140 -n 255.255.252.0<br>16: 添加nas设备(a 添加标签，-o，是nas服务器的名字或ip，-s 是nas输入的共享名字）<br>esxcfg-nas -a isos -o nas.vmwar.cn -s isos<br>17：列出nas连接<br>esxcfg-nas -l<br>18: 强迫esx去连接nas服务器(用esxcfg-nas -l 来看看结果）<br>esxcfg-nas -r<br>esxcfg-nas -l<br>19：连接iscsi 设备(e:enable q:查询 d：disable s:强迫搜索）<br>esxcfg-swiscsi -e<br>20：设置targetip<br>vmkiscsi-tool -D -a 172.16.1.133 vmhba40<br>21：列出和target的连接<br>vmkiscsi-tool -l -T vmhba40<br>22：列出当前的磁盘<br>ls -l /vmfs/devices/disks<br> <br>更改Service Console的IP地址<br> <br>本来想创建两个SC,一个用于内网,另个这用于外网,使之内外都可以控制ESX,但是只能添加一个默认网关,而VMware工程师说不能实现,eddyc提示可以添加第二网关,有时间试下.<br>为了可以内外网都可以控制暂时手动更改SC的IP,以下是我看了其它同仁的帖子并按自己需要简化测试而来的<br>在 CLI下更改service console的ip地址，注意大小写，vmware是把物理nic虚拟成vmnic，在vmnic上创建虚拟交换机vswitch，是把网卡当成交换机来使用，不能对网卡进行ip地址的设置，只能在vswitch上创建interface就是vswif，对vswif进行ip设置<br> <br>[root@VI3 root]# esxcfg-vswif &#8211;l                                                               #vswif0代表的虚拟网卡的interface0，service console对应vswif0<br>Name     Port Group          IP Address       Netmask          Broadcast        Enabled   DHCP    <br>vswif0   Service Console     192.168.251.50   255.255.255.0    192.168.251.255  true      false<br>[root@VI3 root]# esxcfg-vswif -d vswif0                                                    #删除vswif0<br>[root@VI3 root]# esxcfg-vswitch &#8211;l                                                             #vswitch0代表虚拟交换机，vswitch0下面有两个PortGroup，&#8220;vm network&#8221;和&#8220;service console&#8221;对应vmnic0<br>Switch Name    Num Ports   Used Ports  Configured Ports  Uplinks           <br>vSwitch0       32          3           32                vmnic0            <br> <br>  PortGroup Name      Internal ID    VLAN ID  Used Ports  Uplinks           <br>  VM Network          portgroup1     0        0           vmnic0            <br>  Service Console     portgroup0     0        1           vmnic0<br>[root@VI3 root]# esxcfg-vswif -a vswif0 -p "Service Console" -i10.0.0.50 -n 255.255.255.0                 #建立vswif0并与Service console的绑定<br>[root@VI3 root]# esxcfg-vswif &#8211;l                                                            <br>Name     Port Group          IP Address       Netmask          Broadcast        Enabled   DHCP    <br>vswif0   Service Console    10.0.0.50   255.255.255.0   10.0.0.255       true      false<br>[root@VI3 root]#service mgmt-vmware restart     #重启服务<br>--------------------------------分割线-----------------------------------<br>也许是频繁的更改SC的地址,造成了配置文件混乱,想到的办法只有删掉所有的vswitch,vswif,portgroup,在重新建立,并对照vswif配置文件,是否吻合,手动更改.<br>1.CLI创建service console<br>[root@VI3 root]# esxcfg-vswif -l<br>Name     Port Group          IP Address       Netmask          Broadcast        Enabled   DHCP     <br>vswif0   Service Console     192.168.251.60   255.255.255.0    192.168.251.255  true      false    <br>[root@VI3 root]# esxcfg-vswif -d vswif0                 #删除vswif0<br>[root@VI3 root]# esxcfg-vswitch -l<br>Switch Name    Num Ports   Used Ports  Configured Ports  Uplinks           <br>vSwitch0       32          3           32                vmnic0             <br>  PortGroup Name      Internal ID    VLAN ID  Used Ports  Uplinks           <br>  VM Network          portgroup1     0        0           vmnic0             <br>  Service Console     portgroup0     0        1           vmnic0             <br>[root@VI3 root]# esxcfg-vswitch &#8211;D &#8220;Service Console&#8221; vSwitch0    #删除vSwitch0上面portgroup<br>[root@VI3 root]# esxcfg-vswitch &#8211;D &#8220;VM Network&#8221; vSwitch0<br>[root@VI3 root]# esxcfg-vswitch -d vswitch0                #删除vswitch0<br>[root@VI3 root]# esxcfg-vswitch &#8211;l                                #之前操作删除了vswitch信息,现在是空白<br>[root@VI3 root]# esxcfg-vswitch -a vSwitch0                        #创建vSwitch0<br>[root@VI3 root]# esxcfg-vswitch -A "Service Console" vSwitch0                #在vSwitch0上创建portgroup,命名为Service Console<br>[root@VI3 root]# esxcfg-vswitch -L vmnic0 vSwitch0                #将vmnic0绑定在vSwitch0<br>[root@VI3 root]# esxcfg-vswitch &#8211;l                #可以看到service console已经绑定 vmnic0<br>[root@VI3 root]# esxcfg-vswif -a vswif0 -p "Service Console" -i 192.168.251.50 -n 255.255.255.0                #创建vswif0并与service console绑定,在ESX里ip地址只能跟vswif0绑定,也就是虚拟交换机的interface<br>[root@VI3 root]# esxcfg-vswif &#8211;l<br>Name     Port Group          IP Address       Netmask          Broadcast        Enabled   DHCP     <br>vswif0   Service Console     192.168.251.50   255.255.255.0    192.168.251.255  true      false <br>[root@VI3 root]# esxcfg-vswitch &#8211;l<br>Switch Name    Num Ports   Used Ports  Configured Ports  Uplinks           <br>vSwitch0       64          3           64                vmnic0             <br>~<br>  PortGroup Name      Internal ID    VLAN ID  Used Ports  Uplinks           <br>  Service Console     portgroup6     0        1           vmnic0<br>[root@VI3 root]# service mgmt-vmware restart                #到这里正常情况下就可以使用VI连接到ESX<br>2.如果不行检查一下以下配置文件.<br>[root@VI3 root]# vi /etc/sysconfig/network                 #这里纪录主机名字和网关<br>NETWORKING=yes<br>HOSTNAME=VI3      <br>GATEWAY=192.168.251.12        #网关<br>GATEWAYDEV=vswif0                #网关指定在vswif0<br>[root@VI3 root]# vi /etc/sysconfig/network-scripts/ifcfg-vswif0        #看看这里的信息是否跟之前配置吻合<br>DEVICE=vswif0                        #之前把service cosole与vswif0关联      <br>MACADDR=00:50:56:43:a3:52<br>PORTGROUP=portgroup6                #这里的protgroup与service console一致      <br>BOOTPROTO=static<br>BROADCAST=192.168.251.255<br>IPADDR=192.168.251.60                        #与service console 一致<br>NETMASK=255.255.255.0<br>ONBOOT=yes<br>如果以上不一致,可以手动更改<br>在vi编辑器中,i键是插入模式,进行文本更改,esc键退出插入模式,:wq保存并退出.<br>编辑完成reboot.可能启动后显示地址跟设置不同,但是可以使用VI连接到ESX<br><img src ="http://www.cnitblog.com/201/aggbug/50608.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/201/" target="_blank">David</a> 2008-10-23 20:00 <a href="http://www.cnitblog.com/201/archive/2008/10/23/50608.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>