가상화/Citrix
[XenServer] 로컬 스토리지 삭제
날았다 고양이
2020. 5. 6. 09:46
반응형
개요
구성환경
xenserver version 6.5
1. SR(Storage Repository)의 UUID 확인
shell> xe sr-list name-label="Local Storage 1" uuid ( RO) : ddba786b-7797-10b8-d487-5921450f3341 name-label ( RW): Local Storage 1 name-description ( RW): host ( RO): xenserver1 type ( RO): lvm content-type ( RO): shell> |
2. SR의 UUID를 이용하여 PBD(Phisical Block Device)의 UUID 확인
shell> xe pbd-list sr-uuid=ddba786b-7797-10b8-d487-5921450f3341 uuid ( RO) : 76a101f7-6c24-efde-bdf9-22e4058d7a49 host-uuid ( RO): d3acf3e8-b275-49e7-b1ba-f167b6e24a9e sr-uuid ( RO): ddba786b-7797-10b8-d487-5921450f3341 device-config (MRO): device: /dev/disk/by-id/scsi-SATA_VMware_Virtual_01000000000000000001 currently-attached ( RO): true shell> |
3. 호스트로 부터 PBD를 unplug, 이명령이 성공하면 호스트로 부터 SR이 보이지 않는다.
shell> xe pbd-unplug uuid=76a101f7-6c24-efde-bdf9-22e4058d7a49 shell> |
4. SR 제거
shell> xe sr-forget uuid=ddba786b-7797-10b8-d487-5921450f3341 shell> |
반응형