zoukankan      html  css  js  c++  java
  • 公司xenserver搭建的使用

    [root@xenserver ~]# ls -l /dev/disk/by-path/
    total 0
    lrwxrwxrwx 1 root root  9 Jan 19 16:33 pci-0000:00:1f.2-scsi-0:0:0:0 -> ../../sda
    lrwxrwxrwx 1 root root 10 Jan 19 16:33 pci-0000:00:1f.2-scsi-0:0:0:0-part1 -> ../../sda1
    lrwxrwxrwx 1 root root 10 Jan 19 16:33 pci-0000:00:1f.2-scsi-0:0:0:0-part2 -> ../../sda2
    lrwxrwxrwx 1 root root 10 Jan 19 16:33 pci-0000:00:1f.2-scsi-0:0:0:0-part3 -> ../../sda3
    lrwxrwxrwx 1 root root  9 Jan 19 16:33 pci-0000:00:1f.2-scsi-4:0:0:0 -> ../../sdb

    xe sr-create type=lvm content-type=user device-config:device=/dev/disk/by-path/pci-0000:00:1f.2-scsi-4:0:0:0 name-label="diskb"

    xe sr-create type=lvm content-type=user device-config:device=/dev/disk/by-id/edd-int13_dev81-part1 name-label="Local storage 2"


    查看所有硬盘了的id
    ls -l /dev/disk/by-id/

    记下硬盘的全称.接下来开始挂载
    xe sr-create type=lvm content-type=user device-config:device=/dev/disk/by-id/scsi-SATA_ST1000NM0033-9Z_Z1W19ZH8-part1 name-label="Local storage 2"

     scsi-SATA_ST1000NM0033-9Z_Z1W19ZH8-part1
    -config:device=/dev/disk/by-id/后面跟的是刚才记下的SCSI
    name-label="Local storage 2"是你需要创建的名字.可以任意更改
    =======================================================================================================================================================================
    [root@xenserver ~]# xe sr-create type=lvm content-type=user device-config:device=/dev/disk/by-id/scsi-SATA_ST1000NM0033-9Z_Z1W19ZH8-part1 name-label="Local storage 2"
    62abbc5e-4829-4d40-0f79-92ac2d3e70eb


    [root@xenserver ~]# ls -l /dev/disk/by-id/
    total 0
    lrwxrwxrwx 1 root root  9 Jan 21 13:52 scsi-SATA_ST1000NM0033-9Z_Z1W19Z01 -> ../../sda
    lrwxrwxrwx 1 root root 10 Jan 21 13:52 scsi-SATA_ST1000NM0033-9Z_Z1W19Z01-part1 -> ../../sda1
    lrwxrwxrwx 1 root root 10 Jan 21 13:52 scsi-SATA_ST1000NM0033-9Z_Z1W19Z01-part2 -> ../../sda2
    lrwxrwxrwx 1 root root 10 Jan 21 13:52 scsi-SATA_ST1000NM0033-9Z_Z1W19Z01-part3 -> ../../sda3
    lrwxrwxrwx 1 root root  9 Jan 21 13:52 scsi-SATA_ST1000NM0033-9Z_Z1W19ZH8 -> ../../sdb
    lrwxrwxrwx 1 root root 10 Jan 21 13:52 scsi-SATA_ST1000NM0033-9Z_Z1W19ZH8-part1 -> ../../sdb1




    xe sr-create type=lvm content-type=user device-config:device=  name-label="sda"

    xe sr-create type=lvm content-type=user device-config:device=/dev/disk/by-id/scsi-SATA_ST1000NM0033-9Z_Z1W19ZH8 name-label="sdb"
    xe sr-create type=lvm content-type=user device-config:device=/dev/disk/by-scsibus/SATA_ST1000NM0033-9Z_Z1W30QA2-2:0:0:0 name-label="diskb"


    02c50e3f-a049-8f84-6dbb-6b0d127750f6
    xe pbd-unplug uuid='02c50e3f-a049-8f84-6dbb-6b0d127750f6'


     xe pbd-unplug uuid= '02c50e3f-a049-8f84-6dbb-6b0d127750f6'

  • 相关阅读:
    关于linux命令 cp,rm,mv执行时是否询问的问题,不同用户有不同的别名设置
    用jquery根据json动态创建多级菜单导航(by https://www.cnblogs.com/fatty-yu/p/7088955.html)
    前台向后台传值的两种方法 以及 从后台获取数据的方法
    “加载更多”功能如何实现
    AngularJS的主要组成部分:
    数组与字符串的相互转化
    angular过滤器的使用 By http://www.tuicool.com/articles/ueUZBv
    transclude
    内嵌模版 template 原创
    导航栏选中效果 ng-repeat
  • 原文地址:https://www.cnblogs.com/itcomputer/p/4736092.html
Copyright © 2011-2022 走看看