【问题标题】:Can the operating system use ebs transparently?操作系统可以透明使用ebs吗?
【发布时间】:2016-09-19 12:23:14
【问题描述】:

我知道我们可以动态地将卷附加和分离到实例。我的问题是操作系统会自动分配这些 plysicall 资源还是应该由用户配置,即为文件系统创建一个挂载点并明确告诉应用挂载点在哪里?

我使用thiscloudformation将mongodb部署到aws,模板让用户可以选择指定卷大小来托管数据库服务器,只是想知道即使我分配了物理资源,模板如何使用它?我如何知道数据所在的卷。当我尝试为实例分离其中一个卷时,事情就会中断。但我确信我不需要这么多卷来托管数据

【问题讨论】:

    标签: mongodb amazon-web-services operating-system


    【解决方案1】:

    是的,您需要在创建 ebs 并将其附加到某个实例后立即手动执行此操作,您需要按照以下步骤操作(在 linux 系统上)

    - Check if volume is attached and get its name.
       lsblk
    - Format the newly attached volume
       mkfs -t ext4 /dev/<volume name>
    - Create a mount_point
       mkdir mount_point
    - mount the volume to mount point
       mount /dev/<volume_name> mount_point
    - Verify the newly attached partition
       df -Ht
    

    看不到您的云形成模板

    【讨论】:

    猜你喜欢
    • 2015-06-20
    • 2011-08-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-08-05
    • 2010-12-31
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多