Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3014599
  • 博文数量: 535
  • 博客积分: 15788
  • 博客等级: 上将
  • 技术积分: 6507
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-07 09:11
文章分类

全部博文(535)

文章存档

2016年(1)

2015年(1)

2014年(10)

2013年(26)

2012年(43)

2011年(86)

2010年(76)

2009年(136)

2008年(97)

2007年(59)

分类: 系统运维

2009-12-11 09:53:26

1.当root分区存储在本地时,其中的数据只能在instance运行时存在,停止实例后数据消失,而且存储空间为10G。
当使用EBS时,数据可以持久存储而不是仅仅在实例运行时,存储的最大空间为1TB。
 
 
2、boot from ebs 后,如果terminate实例,默认会删除启动时挂载的ebs卷标(如:root分区),如果你再启动instance以后挂载了ebs卷标,这些卷标不会被自动删除。
如果想要terminate实例以后仍然持久保存数据,查看 Amazon EC2 developer guide at http://aws.amazon.com/documentation.
 
3、stop and start(从s3上的ami启动时不能执行这两种操作)
 Stop will shut down your instance releasing the compute resources, but it will not delete your Amazon EBS volume. When Stop is called, you will retain your instance id, so that you can restart it at a later time.
stop 不会删除EBS卷标。
 
You can override that behavior so that a shutdown will also act like a Terminate. This is documented in more detail in the Developer Guide. 
 
从系统内执行shutdown操作时相当于执行了stop操作。
 
 Start is then used to restart instances that have previously been stopped. When the instance is restarted it will retain the original instance id.   
 
 
当你执行了stop操作以后,你会发现EBS卷标仍然存在(如果执行terminate,卷标将被删除),状态为in-use。这时,你可以向操作普通EBS卷标一样操作这个卷标,如卸载或重新挂载到其他instance上,并修复文件系统或者挂载到一台集中控制的instance上来更新程序。
 
执行stop start操作以后,public ip将会改变,解决办法就是使用elastic ip。


4、在create image(EBS ami)时,实例不可以连接

阅读(1962) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~