1. EFS 를 생성한 VPC 에 /etc/hosts 에는 아래와 같이 설정 [ec2-user@ip-10-0-9-225 ~]$ cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost6 localhost6.localdomain6 ap-northeast-2a.fs-020802722ebd4497e.efs.ap-northeast-2.amazonaws.com fs-020802722ebd4497e.efs.ap-northeast-2.amazonaws.com ap-northeast-2c.fs-020802722ebd4497e.efs.ap-northeast-2.amazonaws.com fs..
패키지 설치 ### install pkg yum install lsyncd lua rsync 로컬 서버 2개 패스 동기화 및 벤드위스 제한 및 오너쉽 변경 settings { logfile="/var/log/lsyncd/lsyncd.log", statusFile="/var/log/lsyncd/lsyncd-status.log" } sync { default.rsync, source="/lsync-data", target="/lsync-backup", rsync = { owner = true, group = true, chown = "nike:nike", _extra = {"--bwlimit=102400"} } } sync { default.rsync, source="/lsync-backup", target..
glusterfs 볼륨의 폴더의 리밋을 걸거나 전체 용량에서 제한하기 위해 사용한다. 1. 리스트 확인 [root@reni-glusterfs01 ~]# gluster volume quota glusterfs-storage list quota command failed : Quota is disabled, please enable quota 2. quota enable & 리스트 확인 [root@reni-glusterfs01 ~]# gluster volume quota glusterfs-storage enable volume quota : success [root@reni-glusterfs01 ~]# gluster volume quota glusterfs-storage list quota: No quota..
- auth.allow 등록 - 기본이 * 이며 등록 되면 나머지 아이피는 인증 실패로 마운트 불가하다. [root@reni-glusterfs01 brick1]# gluster volume set glusterfs-storage auth.allow 192.168.0.18 volume set: success - allow 확인 [root@reni-ansible ~]# df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 2.0G 0 2.0G 0% /dev tmpfs 2.0G 0 2.0G 0% /dev/shm tmpfs 2.0G 9.1M 2.0G 1% /run tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup /dev/mapper/centos-..
glusterfs network interface를 따로 본딩 구성하는 방향으로 해야 네트워크 이슈가 적을 것이다. - 서버 정보 - glusterfs node info gluster01 / 192.168.0.19 gluster02 / 192.168.0.20 - client server reni-ansible / 192.168.0.16 /etc/hosts 192.168.0.18 reni-ansible 192.168.0.19gluster01.reni.comgluster01 192.168.0.20gluster02.reni.comgluster02 1. yum repository 추가 [root@reni-glusterfs01 ~]# yum install centos-release-gluster 2. Gluste..
리눅스 서버 사용 종료 시 특정 스크립트를 실행 하여 /root/shutdown_$(date +"%Y%m%d-%H-%M-%S").txt 파일 생성 다양한 용도의 스크립트를 서버 셧다운 시 응용 가능 Test os : centos 7 scripts : /usr/local/sbin/uploadLogsOnShutdown.sh systemd 서비스 파일 생성 : vi /etc/systemd/system/uploadLogsOnShutdown.service uploadLogsOnShutdown.service 내용 [Unit] Description=upload log files at shutdown DefaultDependencies=no Before=shutdown.target halt.target [Service..
프록시 서버의 프록시 데몬이 NAS볼륨 마운트 이후 실행 하기위한 설정 proxy 서버 2대로 이중화 구성 conf.d 폴더를 통한 ACL 적용 및 conf.d NAS 볼륨을로 구성 설정 후 이슈 NAS VOL mount fail 해결방안 fstab _netdev 옵션을 적용하여 해결 squid 데몬이 nas vol mount보다 먼저 기동되어 컨피드 케쉬로 업데이트 실패 해결방안 "systemctl list-unit-files |grep mount" 명령으로 NAS볼륨 찾은 후 /etc/systemd/system/multi-user.target.wants/squid.service 파일에서 after=syslog.target network.target etc-squid-conf.d-mount 추가 [ro..
install [root@reni-ansible ~]#yum install -y epel-release . . . [root@reni-ansible ~]#yum install -y ansible . . . version chetck [root@reni-ansible ~]# ansible --version ansible 2.9.25 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/..
- Total
- Today
- Yesterday
- cisco ansible
- cmd로 윈도우 계정 관리
- shell connmad log
- 윈도우서버 계정 관려
- DL20 GEN9 장비에 CentOS 7
- ios ansible
- ISCSI 볼륨 RAC
- centos7 ntp
- 특정 문구 치환
- ipmi
- ansible network
- 리눅스 커맨드 로그남기기
- linux7 ntp
- dl20
- CentOS 7 GUI
- ansible ios
- dl20 centos7
- cmd로 계정 생성
- cgroup
- 윈도우 cmd 계정 관리
- ILO
- chrony
- windows.old 강제삭제
- 특정 라인삭제
- vm rac
- dl20 g9 centos7 설치
- nxos ansible
- dependency fail
- nutanix rac
- linux command log
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |