在 EC2 (ubuntu) 上设置 Mysql。 XFS 有问题
我一直遵循在 EC2 上设置 MySql 数据库的说明:http ://aws.amazon.com/articles/1663?_encoding=UTF8&jiveRedirect=1
我在运行时遇到问题:
$ sudo mkfs.xfs /dev/sdh
Cannot stat /dev/sdh: No such file or directory
这可能是什么?
编辑: 我根据@karudzo的建议运行了以下命令
$ cd /dev
$ sudo /sbin/MAKEDEV sdh
$ sudo mkfs.xfs /dev/sdh
mkfs.xfs: cannot open /dev/sdh: No such device or address
I have been following the directions on setting up a MySql database on EC2 here: http://aws.amazon.com/articles/1663?_encoding=UTF8&jiveRedirect=1
I got a problem when I run:
$ sudo mkfs.xfs /dev/sdh
Cannot stat /dev/sdh: No such file or directory
What can it be?
Edit:
I ran the following based on @karudzo advice
$ cd /dev
$ sudo /sbin/MAKEDEV sdh
$ sudo mkfs.xfs /dev/sdh
mkfs.xfs: cannot open /dev/sdh: No such device or address
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这意味着 /dev/sdh 还不存在。试试这个:http://getsatisfaction.com/cohesiveft/topics/attaching_a_ebs_volume_to_ec2_instance_at_dev_sdh_doesnt_出现_附加
That means that /dev/sdh doesn't exist yet. Try this: http://getsatisfaction.com/cohesiveft/topics/attaching_a_ebs_volume_to_ec2_instance_at_dev_sdh_doesnt_appear_to_attach
您无法为您的实例创建临时设备。在 Amazon 控制台中,您需要:
1) 创建 EBS 卷
2) 将该卷附加到位于设备位置 /dev/sdh 的实例
然后您将能够在块设备上运行 mkfs.xfs
You can't create ad-hoc devices for your instances. In the Amazon console you'll need to:
1) Create an EBS volume
2) Attach that volume to your instance at device location /dev/sdh
Then you'll be able to run mkfs.xfs on the block device