linux – 从EC2实例存储中恢复数据

前端之家收集整理的这篇文章主要介绍了linux – 从EC2实例存储中恢复数据前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
所以上周,一个关于EC2的实例停止响应,我仍然不知道为什么因为我不能再进入SSH,我怀疑安装到另一个驱动器的/ tmp /目录因某些未知原因而无法访问.

我有一些非常重要的文件,我需要从这台服务器上下来…

我仍然能够在AWS控制台中提取日志,这里有一些非常相关的行(我仍然能够重启服务器):

  1. Welcome to CentOS release 5.4 (Final)
  2. Press 'I' to enter interactive startup.
  3. Cannot access the Hardware Clock via any known method.
  4. Use the --debug option to see the details of our search for an access method.
  5. Setting clock : Thu Dec 29 13:52:43 EST 2011 [ OK ]
  6.  
  7. Starting udev: [ OK ]
  8.  
  9. Setting hostname localhost.localdomain: [ OK ]
  10.  
  11. No devices found
  12. Setting up Logical Volume Management: File descriptor 7 (/sys/kernel/hotplug) leaked on lvm.static invocation. Parent PID 232: /bin/bash
  13. [ OK ]
  14.  
  15. Checking filesystems
  16. Checking all file systems.
  17. [/sbin/fsck.ext3 (1) -- /] fsck.ext3 -a /dev/sda1
  18. /dev/sda1: clean,202786/1310720 files,1428718/2621440 blocks
  19. [ OK ]
  20.  
  21. Remounting root filesystem in read-write mode: [ OK ]
  22.  
  23. Mounting local filesystems: [ OK ]
  24.  
  25. Enabling local filesystem quotas: [ OK ]
  26.  
  27. chown: cannot access `/tmp/.ICE-unix': No such file or directory
  28. Enabling /etc/fstab swaps: [ OK ]
  29.  
  30. INIT: Entering runlevel: 4
  31.  
  32. Entering non-interactive startup
  33. Starting background readahead: [ OK ]
  34.  
  35. Bringing up loopback interface: [ OK ]
  36.  
  37. Bringing up interface eth0:
  38. Determining IP information for eth0...mktemp: cannot create temp file /tmp/wnt890: No such file or directory
  39. /sbin/dhclient-script: line 57: $rscf: ambiguous redirect
  40. /sbin/dhclient-script: line 62: $rscf: ambiguous redirect
  41. /sbin/dhclient-script: line 69: $rscf: ambiguous redirect
  42. done.
  43. [ OK ]
  44.  
  45. Starting getsshkey: /etc/rc4.d/S11getsshkey: line 12: /tmp/my-key: No such file or directory
  46. getting ssh-key...
  47. /etc/rc4.d/S11getsshkey: line 17: /tmp/my-key: No such file or directory
  48. getting ssh-key...

我确定它不是防火墙问题.这是nmap的输出

  1. [root@ip-xxxxxxxxx ~]# nmap -sS -P0 xxxxxxxxxxx
  2.  
  3. Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2011-12-29 16:32 EST
  4. Interesting ports on xxxxxx (xxxxxxxxx):
  5. Not shown: 1675 filtered ports
  6. PORT STATE SERVICE
  7. 22/tcp closed ssh
  8. 25/tcp closed smtp
  9. 80/tcp closed http
  10. 443/tcp closed https
  11. 8000/tcp closed http-alt

解决方法

我不认为在这里要求任何人帮助你“入侵服务器”特别有利于解答.

>创建正在运行的EC2实例的快照
>创建一个新实例.
>将快照装载为实例上的新EBS卷.
>从快照中复制数据
>终止以前的和新的虚拟机实例.

塔达!你刚刚恢复了数据,没有涉及黑客攻击.

一些工具here可能会有所帮助.

猜你在找的Linux相关文章