차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
pve9_local_repository_구성 [2025/11/21 02:15] koovpve9_local_repository_구성 [2025/11/21 03:02] (현재) koov
줄 1: 줄 1:
 ====== PVE9 local repository 구성 ====== ====== PVE9 local repository 구성 ======
 + --- //[[koovis@gmail.com|이강우]] 2025/11/21 03:02//
  
 인터넷이 안되는 환경이나 특수한 상황에서 PVE를 구성해야 할 경우 레포지토리를 접근하기 위해 로컬에 레포지토리 미러를 구성하는 방법에 대해 설명한다. 인터넷이 안되는 환경이나 특수한 상황에서 PVE를 구성해야 할 경우 레포지토리를 접근하기 위해 로컬에 레포지토리 미러를 구성하는 방법에 대해 설명한다.
줄 70: 줄 71:
 </code> </code>
 </WRAP> </WRAP>
 +
 +혹시 미러링 경로나 대상 디렉토리를 변경하려면 아래와 같이 수행하면 된다.
 +<WRAP prewrap>
 +<code bash>
 +proxmox-offline-mirror config mirror update --id debian_trixie_backports --repository "deb http://ftp.lanet.kr/debian trixie-backports main contrib non-free non-free-firmware"
 +proxmox-offline-mirror config mirror update --id debian_trixie_main --repository "deb http://ftp.lanet.kr/debian trixie main contrib non-free non-free-firmware"
 +proxmox-offline-mirror config mirror update --id debian_trixie_updates --repository "deb http://ftp.lanet.kr/debian trixie-updates main contrib non-free non-free-firmware "
 +proxmox-offline-mirror config mirror update --id debian_trixie_security --repository "deb http://deb.debian.org/debian-security trixie-security main contrib non-free non-free-firmware"
 +</code>
 +</WRAP>
 +
 +
  
 위의 6개 레포지토리를 선택했다면 저장하고 나와서 스냅샷을 생성하고 미러링을 수행한다. 위의 6개 레포지토리를 선택했다면 저장하고 나와서 스냅샷을 생성하고 미러링을 수행한다.
줄 232: 줄 245:
  
 위와같이 미러링을 시도할때마다 스냅샷이 날짜시간 형태로 계속해서 만들어진다. 그렇다고 해서 동일한 패키지 파일을 계속 받아두는 방식은 아니고 ''.pool'' 디렉토리에 패키지 원본파일이 저장되어있고 스냅샷 디렉토리에는 하드링크로 존재하는 형태로 구성된다. 위와같이 미러링을 시도할때마다 스냅샷이 날짜시간 형태로 계속해서 만들어진다. 그렇다고 해서 동일한 패키지 파일을 계속 받아두는 방식은 아니고 ''.pool'' 디렉토리에 패키지 원본파일이 저장되어있고 스냅샷 디렉토리에는 하드링크로 존재하는 형태로 구성된다.
 +
 +''*.tmp''로 만들어진 스냅샷 디렉토리는 미러링중 취소되거나 중단된 경우 생기는 디렉토리인데 그냥 삭제해도 무방하다
  
 만약 스냅샷을 모두 삭제하고 싶다면 아래 스크립트를 이용하도록 한다. 만약 스냅샷을 모두 삭제하고 싶다면 아래 스크립트를 이용하도록 한다.
줄 258: 줄 273:
 </code> </code>
 </WRAP> </WRAP>
 +
 +<WRAP center round important 60%>
 실행후 반드시 다시한번 미러링을 실시하여 스냅샷을 최소 한개 만들어놔야지만 ''.pool'' 에 받아놓은 패키지 데이터가 ''gc''로 인해 삭제되지 않는다. 실행후 반드시 다시한번 미러링을 실시하여 스냅샷을 최소 한개 만들어놔야지만 ''.pool'' 에 받아놓은 패키지 데이터가 ''gc''로 인해 삭제되지 않는다.
 +</WRAP>
  
 이렇게 미러는 구성되어 있지만 우리는 일반적인 레포지토리 형태로 사용하고 싶기 때문에 아래 스크립트를 이용하여 레포지토리를 복제하도록 한다. 이렇게 미러는 구성되어 있지만 우리는 일반적인 레포지토리 형태로 사용하고 싶기 때문에 아래 스크립트를 이용하여 레포지토리를 복제하도록 한다.
줄 343: 줄 361:
 ##### #####
 Types: deb Types: deb
-URIs: file:///repo/ceph_squid_trixie+URIs: file:///data/repo/ceph_squid_trixie
 Suites: trixie Suites: trixie
 Components: no-subscription Components: no-subscription
줄 349: 줄 367:
  
 Types: deb Types: deb
-URIs: file:///repo/debian_trixie_main+URIs: file:///data/repo/debian_trixie_backports 
 +Suites: trixie-backports 
 +Components: main contrib non-free non-free-firmware 
 +Trusted: yes 
 + 
 +Types: deb 
 +URIs: file:///data/repo/debian_trixie_main
 Suites: trixie Suites: trixie
-Components: main contrib+Components: main contrib non-free non-free-firmware
 Trusted: yes Trusted: yes
  
 Types: deb Types: deb
-URIs: file:///repo/debian_trixie_security+URIs: file:///data/repo/debian_trixie_security
 Suites: trixie-security Suites: trixie-security
-Components: main+Components: main contrib non-free non-free-firmware
 Trusted: yes Trusted: yes
  
 Types: deb Types: deb
-URIs: file:///repo/debian_trixie_updates+URIs: file:///data/repo/debian_trixie_updates
 Suites: trixie-updates Suites: trixie-updates
-Components: main+Components: main contrib non-free non-free-firmware
 Trusted: yes Trusted: yes
  
 Types: deb Types: deb
-URIs: file:///repo/pve_trixie_no-subscription+URIs: file:///data/repo/pve_trixie_no-subscription
 Suites: trixie Suites: trixie
 Components: pve-no-subscription Components: pve-no-subscription
 Trusted: yes Trusted: yes
 +
 </code> </code>
 </WRAP> </WRAP>
줄 382: 줄 407:
 ##### #####
 deb [trusted=yes] file:///repo/ceph_squid_trixie trixie no-subscription deb [trusted=yes] file:///repo/ceph_squid_trixie trixie no-subscription
-deb [trusted=yes] file:///repo/debian_trixie_main trixie main contrib +deb [trusted=yes] file:///repo/debian_trixie_backports trixie-backports main contrib non-free non-free-firmware 
-deb [trusted=yes] file:///repo/debian_trixie_security trixie-security main +deb [trusted=yes] file:///repo/debian_trixie_main trixie main contrib non-free non-free-firmware 
-deb [trusted=yes] file:///repo/debian_trixie_updates trixie-updates main+deb [trusted=yes] file:///repo/debian_trixie_security trixie-security main contrib non-free non-free-firmware 
 +deb [trusted=yes] file:///repo/debian_trixie_updates trixie-updates main contrib non-free non-free-firmware
 deb [trusted=yes] file:///repo/pve_trixie_no-subscription trixie pve-no-subscription deb [trusted=yes] file:///repo/pve_trixie_no-subscription trixie pve-no-subscription
 </code> </code>
  • pve9_local_repository_구성.1763691310.txt.gz
  • 마지막으로 수정됨: 2025/11/21 02:15
  • 저자 koov