用户名:  密码:  验证码: 验证码  注册  找回
RSS
无双网
 2019年09月24日 星期二  您现在位于: 首页 → 技术文栏 → ESX Update3 磁盘备份工具&nb...

ESX Update3 磁盘备份工具 vmfs-undelete 的使用方法

2011年06月16日  无双网  出处:
Copyright Reserved@Katooo,翻版必究! 转载请著名出处.

[root@esx80 /]# pwd

/

[root@esx80 /]# mkdir vmbackup ########建立保存备份文件的目录

[root@esx80 /]# 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 ackup, [r]estore [q] to quit: b ########备份选择----b

------------------------------------------

0 ) /vmfs/volumes/48d70e5b-e8cf29c8-9c04-001e0b75d2d4/86_Redhat_as5_Backup/86_Redhat_as5_Backup.vmx

1 ) /vmfs/volumes/48d70e5b-e8cf29c8-9c04-001e0b75d2d4/87_Window2003/87_Window2003.vmx

2 ) /vmfs/volumes/48d70e5b-e8cf29c8-9c04-001e0b75d2d4/88_windowsXP_sp3/88_windowsXP_sp3.vmx

3 ) /vmfs/volumes/48ad2ec3-02689de1-a7a0-001e0b75d2d6/86_KT_LocalMachine/86_KT_LocalMachine.vmx

------------------------------------------

found 4 vms

Choose a VM to backup, [99] for all registered VMs or [q] to quit: 99 ########全部都备份就选择99….部分备份,就按照0,1,2,3选择

Backing up all VMs on this host

number of vms to backup 4

Ready to write to data to disk

Enter path and filename of where to save the recover log to: vmbackup/all_vm_vmdk_backup ########目录必须是存在的,文件会自动生成,所以文件名必须是目前不存在的

________________________________________

working on VM: /vmfs/volumes/48d70e5b-e8cf29c8-9c04-001e0b75d2d4/86_Redhat_as5_Backup/86_Redhat_as5_Backup.vmx

Checking for VM Snapshots...

Creating Snapshot...

read block list for /vmfs/volumes/48d70e5b-e8cf29c8-9c04-001e0b75d2d4/86_Redhat_as5_Backup/86_Redhat_as5_Backup.vmdk

removing snapshot....

________________________________________

working on VM: /vmfs/volumes/48d70e5b-e8cf29c8-9c04-001e0b75d2d4/87_Window2003/87_Window2003.vmx

Checking for VM Snapshots...

Creating Snapshot...

read block list for /vmfs/volumes/48d70e5b-e8cf29c8-9c04-001e0b75d2d4/87_Window2003/87_Window2003.vmdk

removing snapshot....

________________________________________

working on VM: /vmfs/volumes/48ad2ec3-02689de1-a7a0-001e0b75d2d6/86_KT_LocalMachine/86_KT_LocalMachine.vmx

Checking for VM Snapshots...

Creating Snapshot...

read block list for /vmfs/volumes/48ad2ec3-02689de1-a7a0-001e0b75d2d6/86_KT_LocalMachine/86_KT_LocalMachine.vmdk

removing snapshot....

________________________________________

working on VM: /vmfs/volumes/48d70e5b-e8cf29c8-9c04-001e0b75d2d4/88_windowsXP_sp3/88_windowsXP_sp3.vmx

Checking for VM Snapshots...

Creating Snapshot...

read block list for /vmfs/volumes/48d70e5b-e8cf29c8-9c04-001e0b75d2d4/88_windowsXP_sp3/88_windowsXP_sp3.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 ackup, [r]estore [q] to quit: r ######## 还原

enter file name to restore from: vmbackup/all_vm_vmdk_backup ########选择还原文件的位置

----------------------------------------

1) /vmfs/volumes/48d70e5b-e8cf29c8-9c04-001e0b75d2d4/86_Redhat_as5_Backup/86_Redhat_as5_Backup.vmx

2) /vmfs/volumes/48d70e5b-e8cf29c8-9c04-001e0b75d2d4/87_Window2003/87_Window2003.vmx

3) /vmfs/volumes/48ad2ec3-02689de1-a7a0-001e0b75d2d6/86_KT_LocalMachine/86_KT_LocalMachine.vmx

4) /vmfs/volumes/48d70e5b-e8cf29c8-9c04-001e0b75d2d4/88_windowsXP_sp3/88_windowsXP_sp3.vmx

Found 4 VMs available to restore

select VM to restore [1 - 4] or 'q' to quit: 1 ########恢复第一台机器

Available VMDKs to restore:

----------------------------------------

1) /vmfs/volumes/48d70e5b-e8cf29c8-9c04-001e0b75d2d4/86_Redhat_as5_Backup/86_Redhat_as5_Backup.vmdk

select VMDK to restore [1 - 1 ]: 1

1) /vmfs/volumes/storage1 ------> [VMFS UUID: 48d70e5b-c460124a-d14c-001e0b75d2d4]

2) /vmfs/volumes/EMC_Lun ------> [VMFS UUID: 48ad2ec3-02689de1-a7a0-001e0b75d2d6]

3) /vmfs/volumes/Lun1 ------> [VMFS UUID: 48fc24ca-b04e7806-ed47-001e0b75d2d6]

4) /vmfs/volumes/Lun2 ------> [VMFS UUID: 48d6fbae-ba787635-6de1-001f29579480]

select VMFS DataStore to restore to [1 - 4] : 2 ########还原的磁盘文件保存在哪?...这部尤其重要,还原出来的文件不能保存在相同的LUN上

Enter the directory to restore to: reconver_redhat ########还原的磁盘文件保存的位置—文件夹—该文件夹不允许为已经存在的目录

/vmfs/volumes/EMC_Lun/reconver_redhat created successfully.

Enter the file name to restore to: [ex: recovered.vmdk]: reconver_rehat.vmdk ########还原出来的磁盘文件的名字,随便改.

restoring VM: /vmfs/volumes/48d70e5b-e8cf29c8-9c04-001e0b75d2d4/86_Redhat_as5_Backup/86_Redhat_as5_Backup.vmx

Disk: /vmfs/volumes/48d70e5b-e8cf29c8-9c04-001e0b75d2d4/86_Redhat_as5_Backup/86_Redhat_as5_Backup.vmdk

to : /vmfs/volumes/EMC_Lun/reconver_redhat/reconver_rehat.vmdk

[>======================100%======================]

Restored Successfully ########还原完成. 这时候可以新建虚拟机, 使用现有的磁盘文件即可.



个人看法, 该磁盘文件备份手法确实是狠! 备份磁盘文件非常快速,并且保存出来的文件非常的小..

狠的第2个地方,备份后, 无论原来的磁盘文件怎么删除/破坏, 都可以完全还原!

狠的第3个地方,操作十分方便!

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