全文検索:
- 22 Ceph create-volume でエラー @01_linux:13_storage
- uster ceph --name client.bootstrap-osd --keyring /var/lib/ceph/bootstrap-osd/ceph.keyring -i - osd new ... y Running command: /usr/bin/mount -t tmpfs tmpfs /var/lib/ceph/osd/ceph-0 Running command: /usr/bin/cho... -2 Running command: /usr/bin/ln -s /dev/ssd/data /var/lib/ceph/osd/ceph-0/block Running command: /usr/b... uster ceph --name client.bootstrap-osd --keyring /var/lib/ceph/bootstrap-osd/ceph.keyring mon getmap -o
- 05 Percona Xtrabackup @01_linux:11_データベース:01_mysql
- ると、エラーになるので移動するか、削除する。 <code console> # rm -rvf /var/lib/mysql/* </code> 元に戻す <code console> # innoba... /backup/xtrabackup/base/ # chown -R mysql:mysql /var/lib/mysql/ </code> ==== 4.起動 ==== **<color red... <code console> # rsync -av -e ssh 192.168.20.248:/var/lib/mysql/ /var/lib/mysql/ </code> 両方のDBを起動後、同期 <code console> mysql> SET GLOBAL wsrep_cluster_addres
- 08 qcow2 バックアップ 外部へ取得する場合(online external) @01_linux:08_仮想化:kvm
- -------------------------------------- vda /var/lib/libvirt/images/testvm.qcow2 sda - </cod... -------------------------------------- vda /var/lib/libvirt/images/testvm.testsnap sda - </... r name='qemu' type='qcow2'/> <source file='/var/lib/libvirt/images/testvm.testsnap' index='3'/> ... <format type='qcow2'/> <source file='/var/lib/libvirt/images/testvm.qcow2'/> <backi
- 16 unboundでキャッシュサーバ @01_linux:01_net
- e: "unbound" directory: "/etc/unbound" logfile: "/var/log/unbound.log" use-syslog: no log-queries: no log-time-ascii: yes pidfile: "/var/run/unbound/unbound.pid" root-hints: "/etc/unboun... ache </code> ==== ログファイル作成 ==== <code> # touch /var/log/unbound.log # chown unbound:unbound /var/log/unbound.log # chmod 644 /var/log/unbound.log </code>
- BINDでキャッシュサーバ @01_linux:01_net
- conf用意 ===== <box orange round left 90%> # cp -p /var/named/chroot/etc/named.caching-nameserver.conf /var/named/chroot/etc/named.conf </box> ===== named.co... on-v6 port 53 { ::1; }; directory "/var/named"; dump-file "/var/named/data/cache_dump.db"; statistics-file "/var/named
- 32 CentOS5でTLS1.2 Apache PHP @01_linux:02_www
- tpd=${HTTPD-/usr/sbin/httpd} < pidfile=${PIDFILE-/var/log/httpd/${prog}.pid} < lockfile=${LOCKFILE-/var/lock/subsys/${prog}} --- > httpd=${HTTPD-/opt/httpd/httpd-2.2.24/bin/httpd} > pidfile=${PIDFILE-/var/run/httpd-2.2.24.pid} > lockfile=${LOCKFILE-/var/lock/subsys/httpd-2.2.24} 67c67 < CONFFILE=/etc/http
- 39 💻logrotateのテスト @01_linux:99_その他
- ===== 確認 ===== /etc/cron.daily/logrotate を見ると、「/var/lib/logrotate/logrotate.status」のステートファイルを確認してローテー... ily/logrotate #!/bin/sh /usr/sbin/logrotate -s /var/lib/logrotate/logrotate.status /etc/logrotate.con... 前とかテストしたいログのローテートのスパンによって変える。 一部抜粋 <code> # cat /var/lib/logrotate/logrotate.status logrotate state -- version 2 "/var/log/yum.log" 2021-3-23-9:20:30 "/var/log/maillog"
- 70 WordPress + PostgreSQL @01_linux:02_www
- ress/]] ===== インストール ===== ==== 1.ファイル設置 ==== /var/www/html/ がDocumentRootとして http://[[Domain]]/wp/ ... 定 ・wordpress <code> $ cp wordpress-3.1.4-ja.zip /var/www/html/ $ unzip wordpress-3.1.4-ja.zip $ mv wor... p <code> $ cp postgresql-for-wordpress.1.3.1.zip /var/www/html/ $ unzip postgresql-for-wordpress.1.3.1.zip $ mv postgresql-for-wordpress/pg4wp/db.php var/www/html/wp/wp-content/ $ mv postgresql-for-wordp
- 04 Postfix+MySQL+Postfix AdminでバーチャルSMTPサーバの構築 @01_linux:03_mail
- LAIN connect = dbname=postfix user=postfix host=/var/lib/mysql/mysql.sock password=xxpostfix password... # vi /etc/dovecot.conf listen = [::] log_path = /var/log/dovecot.log ssl_disable = no ssl_cert_file = ... conf } socket listen { client { path = /var/spool/postfix/private/auth mode = 0660 user... f postfixadmin_2.3.tar.gz # mv postfixadmin_2.3 /var/www/html/postfixadmin # cd /var/www/html/postfix
- 13 CentOS6メール設定 @01_linux:03_mail
- CRYPT connect = dbname=postfix user=postfix host=/var/lib/mysql/mysql.sock password=xxpostfix password_... uid = 10000 #listen = [::] listen = * log_path = /var/log/dovecot.log mail_location = maildir:/home/mai... ocols = imap pop3 service auth { unix_listener /var/spool/postfix/private/auth { group = postfix ... f postfixadmin_2.3.tar.gz # mv postfixadmin_2.3 /var/www/html/postfixadmin # cd /var/www/html/postfix
- 01 PostgreSQL streaming replica @01_linux:11_データベース:02_postgresql
- /system/postgresql-13.service Environment=PGDATA=/var/lib/pgsql/13/data/ ↓ Environment=PGDATA=/data/ </... ===== PATH追加 ===== <code> cat << __EOM__ | tee /var/lib/pgsql/.pgsql_profile PATH=/usr/pgsql-13/bin:$PATH export PATH __EOM__ source /var/lib/pgsql/.pgsql_profile </code> ===== PGDATA変更 ===== <code> # vi /var/lib/pgsql/.bash_profile #PGDATA=/var/lib/pgsql/12
- 75 Proftpd @01_linux:01_net
- red </IfModule> SystemLog /var/log/proftpd.log SyslogLevel i... idFile /usr/local/proftpd/var/proftpd.pid PassivePorts 7000 ... --name ftp_user \ --uid=1000 --gid=1000 \ --home=/var/www/vhost/hogehoge \ --shell=/sbin/nologin </code... ==== 6.ログ ==== <code> [root@vm-rocky ~]# tail /var/log/xferlog Wed Nov 27 06:44:03 2024 0 _gateway
- 17 mon HEALTH_WARN mon xxx is using a lot of disk space @01_linux:13_storage
- 。 ===== エラー ===== このsstファイルが大量にできてしまってディスクを圧迫 /var/lib/ceph/mon/ceph-mon01/store.db/*.sst <code> # ... 15 GiB >= mon_data_size_warn (15 GiB) # du -sh /var/lib/ceph/mon/ceph-mon01/ 16G /var/lib/ceph/mon/ceph-mon01/ </code> ===== compact ===== compactか... 動しないOSDを削除し、同期完了するとちゃんと小さくなります。 <code> # du -hs /var/lib/ceph/mon/ceph-mon01/store.db/ 2.1G /var/lib/c
- 01 Galera構築 @01_linux:11_データベース:01_mysql
- root@ohana ~]# cat /etc/my.cnf [mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock user=mysql # Default to using old password format for compa... query_cache_limit = 4M [mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid # # * IMPORTANT: Additional settings that can over
- 13 mysql56 + galera3 @01_linux:11_データベース:01_mysql
- binlog_format=ROW bind-address=0.0.0.0 datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock explicit_defaults_for_timestamp=true user=mysql # Disab... " #tcert="" #tca="" [mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid [client] socket=/var/lib/mysql/mysql.sock __M