zoukankan      html  css  js  c++  java
  • xenserver增加新硬盘

    1. 查看所有硬盘了的id

    # ls -l /dev/disk/by-id/ 

    2. 挂载

    # xe sr-create type=lvm content-type=user device-config:device=/dev/disk/by-uuid/13942f1e-5b2b-4073-b04f-af96f4446f30 
      name-label="Local storage 2" 

    3. 列出pdb模块

    # xe pbd-list 
    uuid ( RO)                  : ef93ebb5-255c-4a4c-b29b-b96e7a4a4a76
                 host-uuid ( RO): bf8e993a-b79b-4f96-a81c-9f6ac86ae2f5
                   sr-uuid ( RO): 472c8021-f103-7cb4-7fed-93e077ea5b8a
             device-config (MRO): location: /opt/xensource/packages/iso; legacy_mode: true
        currently-attached ( RO): true

    4. 断开本地存储连接

    # xe pbd-unplug uuid="uuid of PBD" 

    5. 列出存储

    # xe sr-list 
    
    uuid ( RO)                : 3efee1e8-7f88-ff6c-b527-7873ed7d6723
              name-label ( RW): Local storage
        name-description ( RW): 
                    host ( RO): xenserver-lfywfkzt
                    type ( RO): lvm
            content-type ( RO): user

    6. 卸载存储

    # xe sr-destroy uuid="uuid of SR" 
  • 相关阅读:
    Codeforces 798C
    Codeforces 798B
    Codeforces 798A
    HDU
    HDU
    HDU
    加速cin的技巧
    Codeforces Gym
    Codeforces Gym
    Solutions to an Equation LightOJ
  • 原文地址:https://www.cnblogs.com/zhangxuechao/p/11709861.html
Copyright © 2011-2022 走看看