大家好,
我们的 EC2 实例仅使用 “ 一半检查已通过 ”在我分离并重新连接我的卷之后(我这样做是为了一些特定的调试目的)。因此我无法登录我的 Linux 服务器现在(使用 putty .. 它显示网络错误)我有一些复杂的脚本,如果我们决定终止实例,我需要检索这些脚本。
我不太了解 EC2 编程,因为我们只将其用于 SAP HANA 云访问。我生成了该实例的系统日志,如下所示:
souvenir Xen Minimal OS!
start_info: 0x9248000(VA)
nr_pages: 0x1117000
shared_inf: 0x7e68b000(MA)
pt_base: 0x924b000(VA)
nr_pt_frames: 0x4d
mfn_list: 0x990000(VA)
mod_start: 0x0(VA)
mod_len: 0
flags: 0x0
cmd_line: root=/dev/sda1 ro 4
stack: 0x94f860-0x96f860
MM: Init
_text: 0x0(VA)
_etext: 0x6000d(VA)
_erodata: 0x78000(VA)
_edata: 0x80b00(VA)
stack start: 0x94f860(VA)
_end: 0x98fe68(VA)
start_pfn: 929b
max_pfn: 1117000
Mapping memory range 0x9400000 - 0x1117000000
setting 0x0-0x78000 readonly
skipped 0x1000
MM: Initialise page allocator for 11b4d000(11b4d000)-1117000000(1117000000)
MM: done
Demand map pfns at 1117001000-3117001000.
Heap resides at 3117002000-5117002000.
Initialising timer interface
Initialising console ... done.
gnttab_table mapped at 0x1117001000.
Initialising scheduler
Thread "Idle": pointer: 0x3117002010, stack: 0x1113680000
Initialising xenbus
Thread "xenstore": pointer: 0x31170027c0, stack: 0x1113690000
Dummy main: start_info=0x96f960
Thread "main": pointer: 0x3117002f70, stack: 0x11136a0000
"main" "root=/dev/sda1" "ro" "4"
vbd 2049 is hd0
******************* BLKFRONT for device/vbd/2049 **********
backend at /local/domain/0/backend/vbd/390/2049
Failed to read /local/domain/0/backend/vbd/390/2049/feature-barrier.
Failed to read /local/domain/0/backend/vbd/390/2049/feature-flush-cache.
41943040 sectors of 512 bytes
**************************
vbd 2144 is hd1
******************* BLKFRONT for device/vbd/2144 **********
backend at /local/domain/0/backend/vbd/390/2144
Failed to read /local/domain/0/backend/vbd/390/2144/feature-barrier.
Failed to read /local/domain/0/backend/vbd/390/2144/feature-flush-cache.
41943040 sectors of 512 bytes
**************************
vbd 2160 is hd2
******************* BLKFRONT for device/vbd/2160 **********
backend at /local/domain/0/backend/vbd/390/2160
Failed to read /local/domain/0/backend/vbd/390/2160/feature-barrier.
Failed to read /local/domain/0/backend/vbd/390/2160/feature-flush-cache.
41943040 sectors of 512 bytes
**************************
vbd 2176 is hd3
******************* BLKFRONT for device/vbd/2176 **********
backend at /local/domain/0/backend/vbd/390/2176
Failed to read /local/domain/0/backend/vbd/390/2176/feature-barrier.
Failed to read /local/domain/0/backend/vbd/390/2176/feature-flush-cache.
41943040 sectors of 512 bytes
**************************
vbd 2192 is hd4
******************* BLKFRONT for device/vbd/2192 **********
backend at /local/domain/0/backend/vbd/390/2192
Failed to read /local/domain/0/backend/vbd/390/2192/feature-barrier.
Failed to read /local/domain/0/backend/vbd/390/2192/feature-flush-cache.
20971520 sectors of 512 bytes
**************************
vbd 2208 is hd5
******************* BLKFRONT for device/vbd/2208 **********
backend at /local/domain/0/backend/vbd/390/2208
Failed to read /local/domain/0/backend/vbd/390/2208/feature-barrier.
Failed to read /local/domain/0/backend/vbd/390/2208/feature-flush-cache.
41943040 sectors of 512 bytes
**************************
vbd 2224 is hd6
******************* BLKFRONT for device/vbd/2224 **********
backend at /local/domain/0/backend/vbd/390/2224
Failed to read /local/domain/0/backend/vbd/390/2224/feature-barrier.
Failed to read /local/domain/0/backend/vbd/390/2224/feature-flush-cache.
41943040 sectors of 512 bytes
**************************
[H[J
GNU GRUB version 0.97 (71680000K lower / 0K upper memory)
[ Minimal BASH-like line editing is supported. For
the first word, TAB lists possible command
completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grubdom> [9;10HXen Minimal OS!
start_info: 0x9248000(VA)
nr_pages: 0x1117000
shared_inf: 0x7e692000(MA)
pt_base: 0x924b000(VA)
nr_pt_frames: 0x4d
mfn_list: 0x990000(VA)
mod_start: 0x0(VA)
mod_len: 0
flags: 0x0
cmd_line: root=/dev/sda1 ro 4
stack: 0x94f860-0x96f860
MM: Init
_text: 0x0(VA)
_etext: 0x6000d(VA)
_erodata: 0x78000(VA)
_edata: 0x80b00(VA)
stack start: 0x94f860(VA)
_end: 0x98fe68(VA)
start_pfn: 929b
max_pfn: 1117000
Mapping memory range 0x9400000 - 0x1117000000
setting 0x0-0x78000 readonly
skipped 0x1000
MM: Initialise page allocator for 11b4d000(11b4d000)-1117000000(1117000000)
MM: done
Demand map pfns at 1117001000-3117001000.
Heap resides at 3117002000-5117002000.
Initialising timer interface
Initialising console ... done.
gnttab_table mapped at 0x1117001000.
Initialising scheduler
Thread "Idle": pointer: 0x3117002010, stack: 0x1113680000
Initialising xenbus
Thread "xenstore": pointer: 0x31170027c0, stack: 0x1113690000
Dummy main: start_info=0x96f960
Thread "main": pointer: 0x3117002f70, stack: 0x11136a0000
"main" "root=/dev/sda1" "ro" "4"
vbd 2049 is hd0
******************* BLKFRONT for device/vbd/2049 **********
backend at /local/domain/0/backend/vbd/391/2049
Failed to read /local/domain/0/backend/vbd/391/2049/feature-barrier.
Failed to read /local/domain/0/backend/vbd/391/2049/feature-flush-cache.
41943040 sectors of 512 bytes
**************************
vbd 2144 is hd1
******************* BLKFRONT for device/vbd/2144 **********
backend at /local/domain/0/backend/vbd/391/2144
Failed to read /local/domain/0/backend/vbd/391/2144/feature-barrier.
Failed to read /local/domain/0/backend/vbd/391/2144/feature-flush-cache.
41943040 sectors of 512 bytes
**************************
vbd 2160 is hd2
******************* BLKFRONT for device/vbd/2160 **********
backend at /local/domain/0/backend/vbd/391/2160
Failed to read /local/domain/0/backend/vbd/391/2160/feature-barrier.
Failed to read /local/domain/0/backend/vbd/391/2160/feature-flush-cache.
41943040 sectors of 512 bytes
**************************
vbd 2176 is hd3
******************* BLKFRONT for device/vbd/2176 **********
backend at /local/domain/0/backend/vbd/391/2176
Failed to read /local/domain/0/backend/vbd/391/2176/feature-barrier.
Failed to read /local/domain/0/backend/vbd/391/2176/feature-flush-cache.
41943040 sectors of 512 bytes
**************************
vbd 2192 is hd4
******************* BLKFRONT for device/vbd/2192 **********
backend at /local/domain/0/backend/vbd/391/2192
Failed to read /local/domain/0/backend/vbd/391/2192/feature-barrier.
Failed to read /local/domain/0/backend/vbd/391/2192/feature-flush-cache.
20971520 sectors of 512 bytes
**************************
vbd 2208 is hd5
******************* BLKFRONT for device/vbd/2208 **********
backend at /local/domain/0/backend/vbd/391/2208
Failed to read /local/domain/0/backend/vbd/391/2208/feature-barrier.
Failed to read /local/domain/0/backend/vbd/391/2208/feature-flush-cache.
41943040 sectors of 512 bytes
**************************
vbd 2224 is hd6
******************* BLKFRONT for device/vbd/2224 **********
backend at /local/domain/0/backend/vbd/391/2224
Failed to read /local/domain/0/backend/vbd/391/2224/feature-barrier.
Failed to read /local/domain/0/backend/vbd/391/2224/feature-flush-cache.
41943040 sectors of 512 bytes
**************************
[H[J
GNU GRUB version 0.97 (71680000K lower / 0K upper memory)
[ Minimal BASH-like line editing is supported. For
the first word, TAB lists possible command
completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grubdom> [9;10H
希望各位专家能帮助我解决这个问题。
谢谢
答案1
我也遇到过这种情况——第二个健康检查是网络连接,在解决这个问题之前,SSH 是不会工作的(显然)。我建议
- 从 AWS 控制台或 AWS CLI 内部完全重启实例。
- 您可能还想分离实例的弹性 IP,等待几秒钟然后重新连接它。
您还可以在同一个可用区中启动一个新的 EC2 实例,从不健康的实例中分离卷,并将其作为辅助/第三卷安装在新实例中 - 要么检查它,要么获取您需要的脚本/文件。
抱歉,我无法提供更具体的建议,但我想知道您的 /local/ 分区是否已变得无法读取?