This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Ceph] | |
| name=Ceph $basearch | |
| baseurl=https://download.ceph.com/rpm-squid/el9/$basearch | |
| enabled=0 | |
| gpgcheck=0 | |
| priority=99 | |
| gpgkey=https://download.ceph.com/keys/release.gpg | |
| [Ceph-noarch] | |
| name=Ceph noarch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [centos-9-baseos] | |
| name=CentOS Stream $releasever - BaseOS | |
| #metalink=https://mirrors.centos.org/metalink?repo=centos-baseos-$stream&arch=$basearch&protocol=https,http | |
| baseurl=https://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os | |
| gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial | |
| gpgcheck=0 | |
| repo_gpgcheck=0 | |
| metadata_expire=6h | |
| countme=0 | |
| priority=10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| FOLDER=/root/benchtest | |
| echo "Sequencial RW 50" | |
| echo "SSD" | |
| fio --name=seq_bw --filename=/root/fio_ssd_30g.raw --rw=readwrite --rwmixread=50 --bs=1M --iodepth=32 --numjobs=4 --ioengine=libaio --direct=1 --time_based=1 --runtime=300 --size=30G --fallocate=none --fsync=1 --fsync_on_close=1 --group_reporting --randrepeat=0 --refill_buffers=1 --thread --stonewall >> $FOLDER/seq_rw_ssd_result.txt | |
| echo "RAMDISK" | |
| fio --name=seq_bw --filename=/dev/ram0 --rw=readwrite --rwmixread=50 --bs=1M --iodepth=32 --numjobs=4 --ioengine=libaio --direct=1 --time_based=1 --runtime=300 --size=30G --fsync=1 --fsync_on_close=1 --group_reporting --randrepeat=0 --refill_buffers=1 --thread --stonewall >> $FOLDER/seq_rw_ramdisk_result.txt | |
| echo "TMPFS" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| umount /home | |
| lvremove -y /dev/mapper/rl-home # Careful mapper name | |
| lvextend -l +100%FREE /dev/mapper/rl-root # Careful mapper name | |
| xfs_growfs / # If XFS. # If ext4, resize2fs /dev/mapper/rl-root |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| HOSTNAME=<SOME_HOSTNAME> | |
| PORT=<SOME_PORT> | |
| CACERT=/etc/cloudia/certs/ca/ca-certificate.crt | |
| CERT=/etc/cloudia/certs/my.crt | |
| KEY=/etc/cloudia/certs/my.id_ecc.pkcs8.pem | |
| echo "===== TLSv1.2 Cipher Test =====" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| - name: Time check | |
| hosts: all | |
| gather_facts: true | |
| tasks: | |
| - name: Set current time | |
| ansible.builtin.set_fact: | |
| start_time: "{{ now().timestamp() | float }}" | |
| - name: Sleep 3 second | |
| ansible.builtin.wait_for: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # rik.baek Development Environment | |
| ## Commands | |
| # podman volume create devVolume # 만약, volume 있으면 무시 | |
| # podman build -t rik.baek.dev.java17:17-jdk-slim -f Dockerfile.rik.baek.java17 . | |
| # podman create -v devVolume:/root/devel/ --pids-limit=-1 --name devJava17 --network host rik.baek.dev.java17:17-jdk-slim | |
| # podman start devJava17 && podman exec -it devJava17 /bin/bash | |
| FROM docker.io/library/openjdk:17-jdk-slim | |
| # Setup git and credential | |
| RUN apt update && apt install -y git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| podman run -it --name dev --network host -v devVolume:/root/ rockylinux/rockylinux:9.5 /bin/bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 현재: ProLinux 8.6 | |
| /dev/sdc 가 공유볼륨이라는 사실은 | |
| 1. DB1 에서 dd if=/dev/urandom of=/dev/sdc bs=4K count=1 날림. | |
| 2. DB1, DB2 에서 hexdump /dev/sdc -C 로 같은 값이 나오는지 확인. | |
| 3. 공유볼륨 확인 완료. | |
| 모든 노드에 대해 | |
| 1. dnf install lvm2-lockd gfs2-utils dlm-lib -y | |
| 2. /etc/hosts 에 10.0.2.22 GFS-DB1 / 10.0.2.21 GFS-DB2 추가 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # 관련한 모든 rpm 들 설치 (with dependencies) | |
| dnf download --resolve --alldeps <package_name_1> ... |
NewerOlder