기타

2024.08.07 10:29

XenServer 의 로컬 스토리지 저장소 LVM EXT 변경 하는 방법

  • 비아웹 오래 전 2024.08.07 10:29
  • 59
    0
기본적으로 XenServer는 LVM 유형 로컬 SR(스토리지 저장소)을 생성합니다. 
EXT 타입의 로컬저장소로 변경하기 위해서는 아래와 같이 진행하시면 됩니다. 

기존 로컬 스토리지의 UUID를 찾습니다.

 $ xe sr-list name-label="Local storage"
또는 LVM 타입의 스토리지를 찾음

 $ xe sr-list type="lvm"
 
확인이 되어쓰면 로컬스토리지와 연결된 물리적 불록 장치의 UUID를 확인.
$ xe pbd-list sr-uuid=[local_storage_uuid]

물리적 블록 장치를 제거하고 로컬스토리지를 제거
$ xe pdb-unplug uuid=[pbd_uuid]
$ xe pbd-destory uuid=[pbd_uuid]
$ xe sr-forget uuid=[local_storage_uuid]

pdb_uuid = pbd-list 에서 나온 uuid 값
local_storage_uuid = sr-list 에서 나온 uuid 값
 
마지막으로 새로운 EXT 타입의 로컬스토리지를 생성
$xe sr-create content-type="Local SR" host-uuid=[local_storage host_uuid] type=ext device-config-device=/dev/disk/by-id/scsi-36d4ae520abcae6001b4f47c004bf7062-part3 shared=false name-label="Local storage"

성공적으로 완료되면 새로 생성된 로컬스토리지의 UUID를 출력합니다.
  • 공유링크 복사

    댓글목록

    등록된 댓글이 없습니다.