VMware ESX 上の vcbMounterコマンドでバックアップ


VMware vcbMounterコマンドの使い方、仮想マシンのバックアップ

VMware Consolidated Backup -- Virtual Machine Mount Utility
Version 1.5.0 (build-110268)
Copyright (C) 1998-2008 VMware, Inc.  All rights reserved.
vcbMounter -h <url> -u <username> [-p <password>] <operation> [<mode>] [<verbosity>]
            <url> := <hostname>[":"<port>]
      <operation> := <mount_op> | <file_umount_op> | <auto_umount_op>
      <verbosity> := -L (0-6)
           <mode> := -m "cos"|"nbd"|"nbdssl"
       <mount_op> := -a <VM> <mountPoint> [<flavor>][<datastores>]
 <file_umount_op> := -d <VM> <SsId> <mountPoint>
 <auto_umount_op> := -U <mountpoint_dir>

             <VM> := <moref>|<uuid>|<ipaddr>|<...> [-c <cacheFile>]
                     (See VM Backup guide for complete list of search
     <mountPoint> := -r <dir>
         <flavor> := -t "fullvm"
     <datastores> := -C <datastore_catalog_file>
           <SsId> := -n "ssid:"<Sdk-MoRef>
   <export-flags> := -M (0|1) -F (0|1)

If no password is specified on the command line, you will be prompted for one.

Export Flags:
 -M: If set, the disk is exported into a single (monolithic) file.
     When turned off (default), the disk is split into multiple 2GB files.
 -F: If set, the disk is exported as "flat" disk, with no optimizations.
     When turned off (default), the exported disk files will be more compact as
     unused space in the disk image is not included in the  exported file.

+) Do a full VM style backup of vm "foo.bar.com" across the SAN,
   talk to ESX/VC host "wisdom.bar.com" as user "vc" with
   password "foobar". - Export will go to "d:\backups":

   vcbMounter -h wisdom.bar.com -u vc -p foobar -a ipaddr:foo.bar.com \
              -r d:\backups\foo-fullVM -t fullvm

   Full VM backups export an entire virtual machine into a set of
   files within a directory. Backing up this file set allows for the
   entire virtual machine to be restored later on.

+) Do an automatic unmount of the export just created:

   vcbMounter -h wisdom.bar.com -u vc -p foobar \
              -U d:\backups\foo-fullVM

   An automatic unmount will work for both file-level and full VM mounts.
   (A full VM unmount operation just has to delete the exported files.)

esxcfg-firewall でsmbClientのポートを空けWindows共有(Windowsファイルサーバー)にアクセスする方法

■ SMBマウントする場合のスクリプト


esxcfg-firewall -e smbClient

smbmount ${SERVICE} ${MOUNTPOINT} -o ${OPTION}

■ SMBマウントを解除する場合のスクリプト


smbumount ${MOUNTPOINT}

esxcfg-firewall -d smbClient


サブページ リスト