所附体积不出现 [英] The attached volume does not appear

查看:107
本文介绍了所附体积不出现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我需要连接和安装一个卷以它的一个实例。我有一些不成功的尝试,最后,我卸载了音量。

I have an instance that I need to attach and mount a volume to it. I have some unsuccessful attempts, then finally, I unmounted the volume.

然后我执行下面的命令 sudo的DF -h 知道卷之前我装上卷从公共快照。我:

Then I performed the following command sudo df -h to know the volumes before I attach the volume from a public snapshot. I got:

Filesystem      Size  Used Avail Use% Mounted on
/dev/xvda1      8.0G  989M  6.7G  13% /
udev             17G  8.0K   17G   1% /dev
tmpfs           6.7G  164K  6.7G   1% /run
none            5.0M     0  5.0M   0% /run/lock
none             17G     0   17G   0% /run/shm
/dev/xvdb       827G  201M  785G   1% /mnt

然后,我连着一个容量(即我从公开的快照创建的)到我的实例。看到:

Then, I attached a volume (that I created from a publicly available snapshot) to my instance. See:

于是,我确信,该​​卷的状态连接到我的实例。我再次执行命令。我得到了同样的previous输出之前,我附上了音量。

Then, I made sure that the status for the volume is attached to my instance. I performed the command again. I got the same previous output before I attach the volume.

Filesystem      Size  Used Avail Use% Mounted on
/dev/xvda1      8.0G  989M  6.7G  13% /
udev             17G  8.0K   17G   1% /dev
tmpfs           6.7G  172K  6.7G   1% /run
none            5.0M     0  5.0M   0% /run/lock
none             17G     0   17G   0% /run/shm
/dev/xvdb       827G  201M  785G   1% /mnt

这是我这样做的原因是,我需要安装新附加的卷。有在这个职位几次不成功的尝试,如果你需要我的问题的详细信息:<一href="http://stackoverflow.com/questions/12547409/how-to-search-for-a-file-or-directory-in-linux-ubuntu-machine">How搜索在Linux操作系统Ubuntu机器上的文件或目录

The reason that I am doing this is that I need to mount the newly attached volume. There were several unsuccessful attempts in this post if you need more information about my problem: How to search for a file or directory in Linux Ubuntu machine

请帮我解决这个问题。

推荐答案

我还在的Unix系统管理员相当经验的(足够是危险的?),但我有完全相同这个问题 - 根据AWS控制台,音量应连接到/ dev / SDJ,但事实并非如此。

I'm still fairly inexperienced at Unix sysadmin (enough to be dangerous?), but I had exactly this problem - according to the AWS console, the volume should be attached at /dev/sdj, but it wasn't.

然后我发现我的previous体积(显示为/ dev / sda1的),是不存在要么,而是被叫做/ dev / xvda1。模式识别后来点点,我意识到,我的体积列在xvdj

Then I noticed that my previous volume (listed as /dev/sda1), wasn't there either, but instead was called /dev/xvda1. Tiny bit of pattern recognition later and I realised that my volume was listed under xvdj

sudo mount /dev/xvdj /path/to/your/directory

...和安装的卷是一个我所期待的。

... and the mounted volume was the one I was looking for.

也许有人可以填补我在为什么在评论?

Maybe someone can fill me in on why, in the comments?

这篇关于所附体积不出现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆