用户名:  密码:  验证码: 验证码  注册  找回
RSS
无双网
 2019年03月19日 星期二  您现在位于: 首页 → 技术文栏 → ESXU3新功能-VMDK 恢复工具 -操作系统...

ESXU3新功能-VMDK 恢复工具

2011年06月20日  无双网  出处:
VMDK Recovery Tool
目前该工具还处在实验阶段,兄弟们使用的时候注意

Purpose(用途)

Use the VMDK Recovery Tool to:

Create a “block list” of your VMDK files. The block list file is aplain text file that keeps a record of all VMDKs of the virtualmachines.
Recover VMDK files if they become deleted, or if the VMFS datastore gets deleted or corrupted.

Limitations(限制)
The VMDK Recovery Tool is a utility VMware provides in ESX 3.5 Update 3 as experimental software.

Experimental means that the tool is not supported and might not work as expected in all customer environments.

The tool is not available for ESXi.

You cannot restore from multiple block list files.


(工具使用)
To use the tool:

Log in to the service console and enter the vmfs-undelete command. Select option [ b ]. This lists all the virtual machines registered on your host.

Either select [ 99 ] to back up a vmdk blocklist of all the virtualmachines, or select a number from the virtual machine list to back up aspecific virtual machine.

While backing up, the tool prompts you to specify the filename tobackup the data. You can either give an absolute path (the file isnewly created by the tool) or it will be saved in the current workingdirectory.

(例子:)

Sample session:

[root@esx11]# vmfs-undelete
########################################################
# VMFS Data Recovery and Backup #
# #
# This tool is NOT a replacement for regular backups #
# Please backup your data on a regular basis #
# There is absolutely no guarantee #
# Use at your own risk #
# #
# VMs with Raw Disks (virtual or physical) are #
# Not supported!!!! #
########################################################

--------------------------------------------------
Select [ b ]ackup, [ r ]estore [ q ] to quit: b
------------------------------------------
0 ) /vmfs/volumes/48b033a5-b8c3c297-424d-0019bbd51b56/Win2k3DC-64/Win2k3DC-64.vmx
1 ) /vmfs/volumes/48b033a5-b8c3c297-424d-0019bbd51b56/mandel-rhel3-32/mandel-rhel3-32.vmx
2 ) /vmfs/volumes/48da37be-22e0d1a4-b076-0019bbd51b56/spanis/spanis.vmx
3 ) /vmfs/volumes/48da37be-22e0d1a4-b076-0019bbd51b56/rhel4/rhel4.vmx
4 ) /vmfs/volumes/48da37be-22e0d1a4-b076-0019bbd51b56/spanfc/spanfc.vmx
5 ) /vmfs/volumes/48932bc1-a4b8a07e-ac22-0019bbd51b58/Win2k3DC-32/Win2k3DC-32.vmx
------------------------------------------
found 6 vms
Choose a VM to backup, [ 99 ] for all registered VMs or [ q ] to quit: 1
number of vms to backup 1
Ready to write to data to disk
Enter path and filename of where to save the recover log to:/back/test
________________________________________
working on VM: /vmfs/volumes/48b033a5-b8c3c297-424d-0019bbd51b56/mandel-rhel3-32/mandel-rhel3-32.vmx
Checking for VM Snapshots...
Creating Snapshot...
read block list for /vmfs/volumes/48b033a5-b8c3c297-424d-0019bbd51b56/restore/mandel-32.vmdk
removing snapshot....
Done......
########################################################
# VMFS Data Recovery and Backup #
# #
# This tool is NOT a replacement for regular backups #
# Please backup your data on a regular basis #
# There is absolutely no guarantee #
# Use at your own risk #
# #
# VMs with Raw Disks (virtual or physical) are #
# Not supported!!!! #
########################################################

--------------------------------------------------
Select [ b ]ackup, [ r ]estore [ q ] to quit: q

In the previous example, the user:

Is logged into the service console as root and enters the vmfs-undelete command.

[root@esx11]# vmfs-undelete

Presses the b key (for [ b ]ackup), and then presses the Return key.

Select [ b ]ackup, [ r ]estore [ q ] to quit: b

Six virtual machines are listed from 0-5.

Enters 1 to back up the second virtual machine.

Choose a VM to backup, [ 99 ] for all registered VMs or [ q ] to quit: 1

(Instead, you can enter 99 to select all virtual machines in the list.)

Specifies /back/test as the location for the backup file.

Enter path and filename of where to save the recover log to:/back/test

The blocklist backup is completed without any errors and the /back/test file is created.

Enters q to quit the tool.

Select [ b ]ackup, [ r ]estore [ q ] to quit: q

(恢复VMDK文件:)
To restore a VMDK file:

Run the tool and select [ r ] to restore the missing file.

(例子:)

Sample session:

[root@esx11 /]# vmfs-undelete
########################################################
# VMFS Data Recovery and Backup #
# #
# This tool is NOT a replacement for regular backups #
# Please backup your data on a regular basis #
# There is absolutely no guarantee #
# Use at your own risk #
# #
# VMs with Raw Disks (virtual or physical) are #
# Not supported!!!! #
########################################################

--------------------------------------------------
Select [ b ]ackup, [ r ]estore [ q ] to quit: r
enter file name to restore from: /back/test

----------------------------------------
1) /vmfs/volumes/48b033a5-b8c3c297-424d-0019bbd51b56/mandel-rhel3-32/mandel-rhel3-32.vmx
Found 1 VMs available to restore

select VM to restore [1 - 1] or 'q' to quit:1
Available VMDKs to restore:
----------------------------------------
1) /vmfs/volumes/48b033a5-b8c3c297-424d-0019bbd51b56/restore/mandel-32.vmdk
select VMDK to restore [1 - 1 ]: 1
1) /vmfs/volumes/spannedISCSI ------> [VMFS UUID: 48ad7ec0-e325a051-b085-0019bbd51b56]
2) /vmfs/volumes/esx11:storage1 ------> [VMFS UUID: 48ad95b7-a4fbcfd2-3ae5-0019bbd51b58]
3) /vmfs/volumes/datastore4 ------> [VMFS UUID: 48da37be-22e0d1a4-b076-0019bbd51b56]
4) /vmfs/volumes/100gb ------> [VMFS UUID: 48932bc1-a4b8a07e-ac22-0019bbd51b58]
5) /vmfs/volumes/spannedFC ------> [VMFS UUID: 48ada29d-e6f0dd4b-c312-0019bbd51b58]
6) /vmfs/volumes/templib ------> [VMFS UUID: 000a8416-362eaee8-b274-00145e5a474f]
select VMFS DataStore to restore to [1 - 6] : 4
Enter the directory to restore to: restore
/vmfs/volumes/100gb/restore already exists
Are you sure you want to restore to /vmfs/volumes/100gb/restore [y/n]: y
Enter the file name to restore to: [ex: recovered.vmdk]: test.vmdk
restoring VM: /vmfs/volumes/48b033a5-b8c3c297-424d-0019bbd51b56/mandel-rhel3-32/mandel-rhel3-32.vmx
Disk: /vmfs/volumes/48b033a5-b8c3c297-424d-0019bbd51b56/restore/mandel-32.vmdk
to : /vmfs/volumes/100gb/restore/test.vmdk
restoring data....
[==> 4%


In the previous example, the user:

Enters option r.

Select [ b ]ackup, [r]estore [ q ] to quit: r



Specifies the /back/test file to restore.

enter file name to restore from: /back/test

The virtual machine is listed from the backup file.

1) /vmfs/volumes/48b033a5-b8c3c297-424d-0019bbd51b56/mandel-rhel3-32/mandel-rhel3-32.vmx
Found 1 VMs available to restore

(If the 99 option were used to create the backup file, all virutal machines would be listed.)



Enters 1 to select the specific virtual machine.

select VM to restore [1 - 1] or 'q' to quit:1

All available datastores are listed.


Chooses 4 to save the restored vmdk.

select VMFS DataStore to restore to [1 - 6] : 4



Specifies the directory to restore to as "restore."

Enter the directory to restore to: restore



Enters y to confirm this choice. The directory is created automatically.

Are you sure you want to restore to /vmfs/volumes/100gb/restore [y/n]: y



Specifies test.vmdk as the restore filename for the vmdk.

Enter the file name to restore to: [ex: recovered.vmdk]: test.vmdk

原文地址:/20101129233345197
 (本文已被浏览 613 次)
 发布人:[标签:发布人]
 → 推荐给我的好友
上篇文章:ESX内存的最佳做法
下篇文章:在VMware中使用NAS的优点
发表评论
  → 评论内容 (点击查看)   共0条评论,每页显示5条评论   浏览所有评论
(没有相关评论)
  → 发表我的评论 (点击发表)
热门文章
 保存webbrowser中的HTML内...
 全部DLL下载
 用VB6.0设计简易赛车游戏
 MSFlexGrid使用技巧一例
 游戏对照表
 添加红月装备的详细教程 (包括装备 武...
 Win2003+Discuz!5.5+II...
 用vb6的ActiveX控件实现异步下...
 PC经典RPG《仙剑奇侠传Ⅰ》for PP...
 利用压缩网页来提升网站浏览速度
最新文章
 [ODBC SQL Server Driv...
 评论:115网盘的何去何从
 我科学家实现百公里量级自由空间量子隐形...
 中国智能手机出货量占全球27%居世界之...
 Gartner:2012 第二季度西欧 P...
 [多图]华山论剑:当今在世的智商最高的...
 三星获出租车服务系统专利 可快速查看驾...
 [多图]15项可能延续到2030年的科...
 分析称苹果三星专利大战输赢已成定论
 Google终获云操作系统专利
 网站留言· 友情链接·与我在线·网站地图联系我们·管理·TOP 
 陕ICP备09004157号  
 Copyright © 2012 Asp126.com Inc. All Rights Reserved.Processed in 0.016s, 8 queries, 35 Cache,0 Online