AJc*_*dez 0 amazon-ec2 mongodb
我正在学习在 EC2 上设置 MongoDB的教程,但我陷入了以下部分:
$ sudo mkfs.ext4 /dev/xdf
mke2fs 1.42.3 (14-May-2012)
Could not stat /dev/xdf --- No such file or directory
The device apparently does not exist; did you specify it correctly?
Run Code Online (Sandbox Code Playgroud)
不知道如何进行 - 任何帮助将不胜感激!
编辑:
$ ls /dev
autofs disk hvc4 loop1 mapper ppp sdg tty1 tty17 tty24 tty31 tty39 tty46 tty53 tty60 ttyS1 vcs4 vcsa5 xvdh
block fd hvc5 loop2 mem psaux sdh tty10 tty18 tty25 tty32 tty4 tty47 tty54 tty61 ttyS2 vcs5 vcsa6 zero
btrfs-control full hvc6 loop3 net ptmx shm tty11 tty19 tty26 tty33 tty40 tty48 tty55 tty62 ttyS3 vcs6 vga_arbiter
char fuse hvc7 loop4 network_latency pts stderr tty12 tty2 tty27 tty34 tty41 tty49 tty56 tty63 urandom vcsa vhost-net
console hvc0 input loop5 network_throughput random stdin tty13 tty20 tty28 tty35 tty42 tty5 tty57 tty7 vcs vcsa1 xen
core hvc1 kmsg loop6 null root stdout tty14 tty21 tty29 tty36 tty43 tty50 tty58 tty8 vcs1 vcsa2 xvda1
cpu hvc2 log loop7 oldmem sda1 tty tty15 tty22 tty3 tty37 tty44 tty51 tty59 tty9 vcs2 vcsa3 xvdf
cpu_dma_latency hvc3 loop0 loop-control port sdf tty0 tty16 tty23 tty30 tty38 tty45 tty52 tty6 ttyS0 vcs3 vcsa4 xvdg
Run Code Online (Sandbox Code Playgroud)
从答案看来,这些是块设备的名称。在管理控制台中,它们看起来像sdh
, sdf
, sdg
。有道理xdf
不退出。
您是按照使用 ec2-run-instances 命令指定的教程启动实例,还是使用以不同方式启动的实例?
它在ec2-run-instances命令中指定了额外的卷:
$ ec2-run-instances ami-05355a6c -t m1.large -g [SECURITY-GROUP] -k [KEY-PAIR] -b "/dev/xdf=:200:false:io1:1000" -b "/dev /xdg=:25:false:io1:250" -b "/dev/xdh=:10:false:io1:100" --ebs-optimized true
如果您启动了一个没有这些卷的实例,您可以创建它们并将其附加到您的实例,或者使用上述参数启动一个新实例。
该预建AMI是在市场上可能会更容易让你开始,他们就拥有了一切已经建立许多优化预配置。
归档时间: |
|
查看次数: |
2939 次 |
最近记录: |