728x90
반응형

전체 글 59

[Linux] pam_unix(sudo:auth): conversation failed, auth could not identify password for [service]

Symptom..서비스[service]는 올라가있는데(active), 로그를 보면 실패했다~ 안된다~ 는 식으로 나옴.pam_unix(sudo:auth): conversation failedpam_unix(sudo:auth): auth could not identify password for [service]추가로 pam이나 auth, sudo를 얘기함.Touble-shooting../etc/sudoers에 서비스를 사용하는 사용자를 추가해준다.[user] ALL=NOPASSWD:[command]# ex)# test-user ALL=NOPASSWD:/bin/test-service/etc/sudoers파일을 수정 한 후 서비스 재시작하기service [service] restart# orsystemctl ..

Linux 2024.09.27

[Linux] Curl error 60 SSL peer certificate or SSH remote key was not OK

env.RHEL (CentOS 7, Rocky 7)eol이 지난 OS에서 발생한것으로 보임(추측..) Trouble..yum update / upgrade등을 진행할 때 제목에서의 에러가 발생한다.Curl error 60 SSL peer certificate or SSH remote key was not OK 사용하는 OS의 eol때문인지, 기존의 source.list에서 받아오지를 못함. source.list의 url을 변경해봐도 동일. Trouble-Shooting../etc/yum.conf 파일 수정vi /etc/yum.conf 입력모드(i)로 변경 후 맨 아래줄에 해당 라인 추가sslverify=falseorvi편집기로 열지 않고 수정하기echo "sslverify=false" >> /etc/yu..

Linux 2024.09.12

[Linux] /etc/fstab 설정 자동 마운트

/etc/fstab..리눅스 시스템에서 OS디스크 영역말고, 추가 디스크를 사용해 시스템에 붙여 사용하는 경우가 있다.이 경우 마운트를 해서 사용하는데 시스템이 리부팅(reboot)이 되거나 재마운트(moutn -a)하는 경우에 마운트해 사용하던 디스크가 빠진다.해당 이슈를 방지하기 위해 fstab 파일을 통해 자동적으로 원하는 디스크를 원하는 위치로 마운트 시킬수 있는데 이에 대한 글을 남겨본다. fstab 설정아래는 fstab의 기본 예시로 나타냈다.# /etc/fstab[file_system_device] [mount_point] [file_system] [options] [dump fsck]UUID=asdf123-assdf23-assfeg-23v2d / ext4 defaults 0 0/dev/sd..

Linux 2024.09.10

[Openstack]Error : UnsupportedHostCPUControlPolicy

Env.OS : Rocky 9.4Openstack : Yoga ErrorERROR nova.compute.manager Instance failed to spawn: nova.exception.UnsupportedHostCPUControlPolicy: Requested CPU control policy not supported by hostopenstack에서 가상서버 생성시 compute Error 로그에 위와 같은 문구 나오면서 생성 에러 발생. Touble-shooting생성 에러가 발생한 compute node에 아래 파일이 있는지 확인/usr/lib/python3.9/site-packages/nova/virt/libvirt/host.py없다면 아래 링크에서 다운로드후 파일 추가.* 각 버전에 따..

Openstack 2024.07.04

[Linux] stress-ng test 스트레스 테스트

Install stress-ngstress-ng 설치# Ubuntuapt install stress-ng# red-hatyum install stress-ngRun Stress-ngstress-ng로 테스트 실행# Ubuntu, red-hatstress-ng --cpu [cpu_worker_num] --vm [vm_worker_num] --vm-bytes [vm_worker_bytes] -t [time]# ex)stress-ng --cpu 1 -t 1m --metrics-brief # --metrics-brief : 결과값이 0이 아닌 것만 출력 cpu, vm에 들어가는 값은 작업량 느낌으로 이해(프로세스 개수)-t 1m : 시간을 1분동안 설정

Linux 2024.06.27

[Windows] chntpw 패스워드 초기화(clear)

패스워드 초기화를 위해 경로 이동cd /Windows/System32/config/chntpwchntpw -i SAM: chntpw를 사용해 SAM수정 / 아래의 순서대로 진행> 1 - Edit user data and passwords> enter user numer : 01f4 [초기화할 user의 RID]> 1 - Clear (blank) user password> q -Quit editing user, back to user select> q - Quit (you will be asked if there is something to save)Write hive files?(y/n) : y위 작업 진행시 패스워드 초기화(사라짐) clear!

Windows 2024.06.25

[vm] qemu-nbd 마운트

nbd 모듈 추가modprobe nbd max_part=8로 모듈 추가$ modprobe nbd max_part=8모듈 관련 명령어는 아래 글 참고https://plastic2113.tistory.com/entry/Linux-%EB%AA%A8%EB%93%88-%EA%B4%80%EB%A6%AClsmod-modprobe-rmmodnbd모듈로 디스크 파일 연결: /dev/nbd0로 [disk_file]을 연결$ qemu-nbd --connect=/dev/nbd0 [disk_file_path]or$ qemu-nbd -c /dev/nbd0 [disk_file_path]kpartx를 사용한 디바이스 매핑(생략가능): kpart를 이용해 nbd0에 대한 파티션 매핑을 추가$ kpartx -a /dev/nbd0disk..

Openstack 2024.06.23
728x90
반응형