차이

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

차이 보기로 링크

다음 판
이전 판
tech:log2ram [2021/08/22 17:16] – 만듦 108.162.215.125tech:log2ram [2023/05/07 18:22] (현재) – [확인] V_L
줄 9: 줄 9:
  
 https://forum.proxmox.com/threads/proxmox-live-migration-no-network-after-migration-is-done.45427/ https://forum.proxmox.com/threads/proxmox-live-migration-no-network-after-migration-is-done.45427/
 +
 +=====설치=====
 +<file>
 +echo "deb [signed-by=/usr/share/keyrings/azlux-archive-keyring.gpg] http://packages.azlux.fr/debian/ bullseye main" | sudo tee /etc/apt/sources.list.d/azlux.list
 +sudo wget -O /usr/share/keyrings/azlux-archive-keyring.gpg  https://azlux.fr/repo.gpg
 +sudo apt update
 +sudo apt install log2ram
 +</file>
 + 
 +
 +=====세부 설정=====
 +기본 설정으로는 [[rsync]]를 사용해서 하루에 한번 HDD에 저장한다. 
 +
 +
 +''/etc/log2ram.conf'' 
 +
 +
 +  SIZE=400M
 +실제 ''/var/log'' 의 크기보다 커야한다.(*)
 +폴더 크기 줄여 보려면 [[var_log]]참조
 +
 +이제 재시작
 +  reboot
 +
 +=====확인=====
 +
 +<file>
 +# systemctl status log2ram
 +Active: active (exited) since Sun 2021-08-22 10:35:50 UTC; 39s ago
 +</file>
 +
 +active 확인
 +
 +<file>
 +# df -h
 +Filesystem            Size  Used Avail Use% Mounted on
 +log2ram               400M  108M  293M  27% /var/log
 +</file>
 +
 +임시 저장용 ''log2ram'' 램디스크가 생겨있는 것을 볼 수 있다.