본문 바로가기

전체 글

(265)
리눅스 부팅 커널 변경 및 커널 업그레이드 1.설치전 요구사항 /boot 용량 100M 이상 여유가 있는지 확인 2. 부팅 환경 파일 /boot/grub2/grub.cfg ==> bios 환경 /boot/efi/EFI//grub.cfg ==> efi 환경 3. 디폴트 부팅 커널 변경 방법 3.1 부팅 커널 목록 확인(efi 환경) > awk -F\' '$1=="menuentry " {print $2}' /boot/efi/EFI/centos/grub.cfg ==> centos > awk -F\' '$1=="menuentry " {print $2}' /boot/efi/EFI/redhat/grub.cfg ==> redhat ** bios 환경일 경우 /boot/grub2/grub.cfg 3.2 디폴트 커널 변경 방법1) > grub2-set-defau..
리눅스 리부팅시 messages 파일 로그 리눅스 리부팅시 messages 파일 로그
process, thread 수 확인 및 변경 1. process의 thread count 확인 ps -o nlwp or ps -o thcount watch ps -o thcount ** nlwp == thcount 같은 의미 2. 프로세별 thread count 확인 > ps -eo nlwp,command 3. 전체 thread count > ps -eLf | wc -l or > ps -eo nlwp | tail -n +2 | awk '{ num_threads += $1 } END { print num_threads }' 4. 사용자별 thread count 수 > ps h -Led -o user | sort | uniq -c | sort -n 5. 서버상의 max process(실제 thread 수) 5.1 확인 > cat /proc/sys/ke..
stress 명령어를 이용한 성능 측정 개요 stress 명령어를 이용하여 시스템부하 발생후 시스템 성능 측정 명령어(vmstat, top)로 변화되는 모습 관찰 1. 테스트 환경 구성 OS: CentOS 7.9, Core 4, RAM: 4G stress 패키지 설치 > yum -y install epel-release > yum -y install stress 2. 부하 테스트 2.1 CPU 부하 테스트 > stress -c 4 > vmstat 1 * procs의 r(실행 가능한 프로세스 수(실행 중이거나 실행 대기 중)) 값이 증가, 현재 cpu 수보다 커다면 cpu 증설 필요 > top 2.2 메모리 부하 테스트 예) 3개의 worker(process)에 60초간 4096m 메모리를 할당 > stress --vm 3 --vm-bytes ..
[Linux] Partion Script 1. gpt, mbr 확인 방법 parted /dev/sda print Partiton table: [ gpt | msdos ] 2. mbr 파티션 스크립트 예) /dev/sda 의 여분의 영역에 파티션 생성(/dev/sda3)후 root lv 확장 ( echo n # Add a new partition echo p # Primary partition echo # Partition number echo # First sector (Accept default: 1) echo # Last sector (Accept default: varies) echo w # Write changes ) | fdisk /dev/sda partprobe /dev/sda pvcreate /dev/sda3 vgextend cen..
debian Apache Reverse Proxy 설정 구성환경 debian 10.3 1. /etc/apache2/apach2.conf 파일 수정 ProxyPass /examples http://localhost:8080/examples ProxyPassReverse /examples http://localhost/examples 2. 모듈 활성화 > a2enmod proxy > a2enmod proxy_http > systemctl restart apache2
DFSR 이벤트 ID 4012 조치 개요 구성환경 Windows Server 2016 Domain Controller 증상 이벤트 ID 4012 The DFS Replication service stopped replication on the folder with the following local path: C:\Windows\SYSVOL\domain. This server has been disconnected from other partners for 232 days, which is longer than the time allowed by the MaxOfflineTimeInDays parameter (60). DFS Replication considers the data in this folder to be stale, and t..
리눅스 파일시스템 타입 확인 개요 환경 CentOS 7.3 리눅스의 파일시스템 타입 확인 명령어 예) file -L -s 파일시스템 # file -L -s /dev/mapper/centos_lincluster1-root /dev/mapper/centos_lincluster1-root: SGI XFS filesystem data (blksz 4096, inosz 512, v2 dirs) file -L -s /dev/mapper/centos_lincluster1-root /dev/mapper/centos_lincluster1-root: SGI XFS filesystem data (blksz 4096, inosz 512, v2 dirs) 예2) blkid 파일시스템 # blkid /dev/mapper/centos_lincluster1-r..