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。

  • 相关阅读:
    定时器
    Vue CLI环境变量
    负数的二进制表示方法
    IDEA指定启动JDK版本
    Windows7安装两个jdk配置
    Bloom Filter 数据结构去重
    新浪微博爬虫参考
    Spring Data JPA
    Spring的JDBC框架
    数据库连接池:Druid
  • 原文地址:https://www.cnblogs.com/liujx2019/p/11251951.html
Copyright © 2011-2022 走看看