开发者

Setting up Mysql on EC2 (ubuntu). Having issue with XFS

开发者 https://www.devze.com 2023-02-06 09:09 出处:网络
I have been following the direction开发者_StackOverflows on setting up a MySql database on EC2 here: http://aws.amazon.com/articles/1663?_encoding=UTF8&jiveRedirect=1

I have been following the direction开发者_StackOverflows 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


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号