Как удалить Storage Repository в XenServer

Имеем доступ в CLI Xen, отключаем диск от PBD из Source Repository:

xe pbd-list
...

uuid ( RO)                  : ae239dca-4ed7-9a35-1d76-52f81bdcf65b
             host-uuid ( RO): 767266f8-133e-4497-b332-72d495d33e8e
               sr-uuid ( RO): 416a31b7-24a1-96b3-2984-901114b1155e
         device-config (MRO): device: /dev/disk/by-id/scsi-SATA_SAMSUNG_HD154UIS24EJ9BZB02485-part1
    currently-attached ( RO): true

Смотрим UUID и отключаем:

xe pbd-unplug uuid=ae239dca-4ed7-9a35-1d76-52f81bdcf65b

Смотрим список Storage Repository:

xe sr-list

uuid ( RO)                : 2a1d94fd-229b-29ea-0052-535698883e59
          name-label ( RW): Local storage
    name-description ( RW):
                host ( RO): server15
                type ( RO): lvm
        content-type ( RO): user


uuid ( RO)                : 416a31b7-24a1-96b3-2984-901114b1155e
          name-label ( RW): Local storage 2
    name-description ( RW):
                host ( RO): server15
                type ( RO): lvm
        content-type ( RO): user

И вводим команду, чтобы в XenCenter диск не показывался:

xe sr-forget uuid=416a31b7-24a1-96b3-2984-901114b1155e
Понравилась статья? Поделиться с друзьями:
Добавить комментарий

;-) :| :x :twisted: :smile: :shock: :sad: :roll: :razz: :oops: :o :mrgreen: :lol: :idea: :grin: :evil: :cry: :cool: :arrow: :???: :?: :!: