zoukankan      html  css  js  c++  java
  • Openstack Swift 如何查找 slave node 挂载的 VD 的 IP

    1. 在 /etc/swift/container-server.conf 或者 object-server.conf 中的 devices= 一行 可以找到 /srv/node.

        在 /srv/node/ 下可发现设备, 如 sdb. 即 /srv/node/sdb

    2. 通过命令 cat /etc/fstab 可以得到如下信息

    # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    # / was on /dev/sda1 during installation
    UUID=2d666d5f-aedf-4130-b51e-4296661b07d2 /               ext4    errors=remount-ro 0       1
    # swap was on /dev/sda5 during installation
    UUID=aa7c8c0e-46ba-44c5-b11e-ab384d6669d1 none            swap    sw              0       0
    /dev/disk/by-path/ip-10.666.1.666:3260-iscsi-iqn.2002-03.com.666:storage.666-dg.6661-lun-0 /srv/node/sdb ext4 _netdev 0 0

    即可得到 ip。

  • 相关阅读:
    python笔记目录
    Django 的View(视图)系统
    051_Bootstrap 框架
    050_jQuery 事件
    049_jQuery 操作标签
    048_jQuery
    016-递归函数
    047_BOM_DOM
    046_JS
    045_CSS
  • 原文地址:https://www.cnblogs.com/liujx2019/p/11251951.html
Copyright © 2011-2022 走看看