全文検索:
- 01 vim @01_linux:20_エディタ
- rcを置けばOK <code> $ cat ~/.vimrc ""#####表示設定##### ""set number "行番号を表示する set title "編集中のファイル名を表示 set showmatch "括弧入力時の対応する括弧を表示 syntax on "コードの色分け set tabstop=4 "インデントをスペース4つ分に設定 set nosmartindent "
- 55 corosync pacemaker @01_linux:01_net
- 設定 ===== ==== フィルタの停止と、初期設定 ==== pcs property set stonith-enabled=false pcs property set no-quorum-policy=ignore pcs resource defaults resource-s... ocf:pacemaker:ping \ name=ping_set \ dampen=5s \ multi... ocf:pacemaker:ping \ name=ping_g_set \ dampen=5s \ multi
- 36 LINSTOR Bcache @01_linux:13_storage
- ORでzfsthinを設定してもシンプロにならないので注意</color> <code> zfs set compress=lz4 DataPool ##zfs set compress=off DataPool zfs set sync=disabled DataPool zfs set atime=off DataPool zpool set autotrim=off DataPool </code> ==== プールの設定
- 01 NagiosQL @01_linux:04_監視
- iosql_v3 > db_nagiosql_v3.dump </code> === 2.CHARSET=latin1 を CHARSET=utf8 に変更 === <code> # vi db_nagiosql_v3.dump :%s/CHARSET=latin1/CHARSET=utf8/g </code> === 3.dumpを戻す === <code> # cat db_nagiosql_v3.dump |mysql db_nagiosql_
- 14 MariaDB @01_linux:11_データベース:01_mysql
- DB | +------------------------+--------+ 1 row in set (0.00 sec) MariaDB [(none)]> show global variabl... N | +-----------------------+-------+ 1 row in set (0.00 sec) MariaDB [(none)]> show global variabl... ---------------------------+----------+ 2 rows in set (0.00 sec) MariaDB [(none)]> show global variabl... +-------------------------+-----------+ 1 row in set (0.00 sec) MariaDB [(none)]> show global variabl
- 16 unboundでキャッシュサーバ @01_linux:01_net
- g-cache-slabs: 16 num-queries-per-thread: 16384 rrset-cache-size: 1500m rrset-cache-slabs: 16 infra-cache-slabs: 16 do-ip6: no access-control: 127.0.0.0/8 a... shold: 10000000 prefetch: yes prefetch-key: yes rrset-roundrobin: yes minimal-responses: yes dlv-anchor... め スラブ数とワーカスレッド数を一致させるとロック回数が減る。 msg-cache-slabs rrset-cache-slabs: infra-cache-slabs key-cache-slabs
- 03 iperf3 @01_linux:09_ベンチマーク
- cv the specified file -A, --affinity n/n,m set CPU affinity -V, --verbose more det... ulticast address -C, --linux-congestion <algo> set TCP congestion control algorithm (Linux only) -M, --set-mss # set TCP maximum segment size (MTU - 40 bytes) -N, --nodelay set TCP no d
- 15 InnoDB テーブルロック @01_linux:11_データベース:01_mysql
- | sato | 40 | +----+--------+-----+ 3 rows in set (0.02 sec) </code> <code> create table lock_test... , age int not null ) engine=innoDB default charset=utf8; insert into lock_test (name, age) values ... rows affected (0.00 sec) mysql> UPDATE lock_test SET age = 21 WHERE name = 'tanaka'; Query OK, 1 row a... rows affected (0.00 sec) mysql> UPDATE lock_test SET age = 31 WHERE name = 'suzuki'; ERROR 1205 (HY000
- 20 Ceph PG数 @01_linux:13_storage
- == 1.変更前の準備 ===== ==== scrub止める ==== ceph osd set noscrub ceph osd set nodeep-scrub ==== back_fillの値を下げておく ==== ceph tell 'osd.*' injectargs --osd-... ctive=3 ===== 2.PG_num変更 ===== ceph osd pool set TEST-pool pg_num 128 ceph osd pool set TEST-pool pgp_num 128 ===== 3.変更の確認 ===== <code> # ceph osd
- 01 Galera構築 @01_linux:11_データベース:01_mysql
- ertify_nonPK=1 # Maximum number of rows in write set wsrep_max_ws_rows=131072 # Maximum size of write set wsrep_max_ws_size=1073741824 # to enable debug level logging, set this to 1 wsrep_debug=0 # convert locking sessio... ge auto_increment_increment and auto_increment_offset automatically wsrep_auto_increment_control=1 # r
- 51 Heartbeat + Pacemaker + galera(3 server) @01_linux:01_net
- (ocf::heartbeat:IPaddr2): Started galera-1 Clone Set: cl_mysql Started: [ galera-1 galera-2 galer... (ocf::heartbeat:IPaddr2): Started galera-2 Clone Set: cl_mysql Started: [ galera-2 galera-3 ] ... (ocf::heartbeat:IPaddr2): Started galera-2 Clone Set: cl_mysql Started: [ galera-1 galera-2 galer... (ocf::heartbeat:IPaddr2): Started galera-2 Clone Set: cl_mysql Started: [ galera-1 galera-2 galer
- 17 Nginx FastCGI Cache @01_linux:02_www
- astcgi_params; ### 以下の設定を追加 ### set $do_not_cache 0; # -- POST or HEAD ? if ($request_method != "GET") { set $do_not_cache 1; } # -- Login or Comment... or_|wordpress_logged_in|wp-postpass_).*$) { set $do_not_cache 1; } fastcgi_cache cache-zo... ay 2021 13:52:56 GMT Content-Type: text/html; charset=UTF-8 Transfer-Encoding: chunked Connection: keep
- 30 ZFS Linux @01_linux:13_storage
- pool01 /dev/rbd0 ===== pool config ===== zfs set compress=lz4 pool01 zfs set sync=disabled pool01 zfs set dedup=on pool01 zpool set autotrim=on pool01 ===== export ===== pool のマウントを外す zpool export pool
- 76 dmraid リビルド @01_linux:99_その他
- id -s ERROR: isw: wrong number of devices in RAID set "isw_jcjeadfeb_raid01" [1/2] on /dev/sdb *** Group superset isw_jcjeadfeb --> *Inconsistent* Active Subset name : isw_jcjeadfeb_raid01 size : 927985664 stride... v/sda ERROR: isw: wrong number of devices in RAID set "isw_jcjeadfeb_raid01" [1/2] on /dev/sdb isw: dri
- 92 Gitコマンド @01_linux:99_その他
- --name-status git log --name-only ===== git reset ===== # 全ファイルをステージングから取り除く。ファイルの変更はそのまま残す $ git reset # 指定したファイルをステージングから取り除く。ファイルの変更はそのまま残す $ git reset ファイル名 # 全ファイルをステージングから取り除く。ファイルの変更した箇所も変更前に戻す $ git reset --hard === 特定のファイルのみを過去のある時点に戻す場合 === resetで--har