全文検索:
- 01 JuJu Maas Openstack @01_linux:08_仮想化:juju
- il: hoge@hogehoge.com Import SSH keys [] (lp:user-id or gh:user-id):gh:flateight </code> 「Import SSH keys」でLaunchPadかGithubの公開鍵をインポートできる。 この場合flateightの公... SH Key の作成 ==== mkdir -p ~/.ssh touch ~/.ssh/id_rsa_cloud chmod 600 ~/.ssh/id_rsa_cloud openstack keypair create mykey > ~/.ssh/id_rsa_cloud ===
- 21 kernelによってvmstat結果が違う @01_linux:99_その他
- buff cache si so bi bo in cs us sy id wa st 5 0 0 247944 8012 186900 0 0... 0 zombie Cpu(s): 11.0%us, 0.0%sy, 0.0%ni, 87.5%id, 0.0%wa, 0.0%hi, 0.0%si, 1.6%st Mem: 66670... 1 zombie Cpu0 : 99.7%us, 0.3%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu1 :100.0%us, 0.0%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Cpu2 :100.0%
- 01 PostgreSQL streaming replica @01_linux:11_データベース:02_postgresql
- -c "UPDATE actor set first_name='BBB' where actor_id=1" UPDATE 1 $ psql -h 172.16.0.52 -U postgres testdb -c "SELECT * FROM actor where actor_id=1" actor_id | first_name | last_name | last_update ----------+------------+---------... tgres testdb -c "SELECT * FROM actor where actor_id=1" actor_id | first_name | last_name | la
- 37 MegaCliのSmart情報 @01_linux:99_その他
- Adapter #0 Enclosure Device ID: 64 Slot Number: 0 Drive's position: DiskGroup: 0, Span: 0, Arm: 0 Enclosure position: N/A Device Id: 2 WWN: 5000c5007b397b66 Sequence Number: 2 Media... lagged a S.M.A.R.T alert : No Enclosure Device ID: 64 Slot Number: 1 Drive's position: DiskGroup: 0, Span: 0, Arm: 1 Enclosure position: N/A Device Id: 3 WWN: 5000c5007b39948b Sequence Number: 2 Media
- 07 qemuでserial接続 @01_linux:08_仮想化:kvm
- cirrus \ -name VM1 \ -object memory-backend-file,id=mem0,size=1G,mem-path=/dev/hugepages,share=on \ -... /libvirt/images/TESTVM.qcow2,format=qcow2,if=none,id=drive-virtio-disk0 \ -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x6,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 \ -vnc 0.0.0.0:10 \ -mac... 0fx-2.0,accel=kvm,usb=off \ -netdev bridge,br=br0,id=net0 \ -device e1000,netdev=net0,mac=52:54:00:12:
- 06 sshでパスワードなしにログインするには @01_linux:01_net
- ===== ①ログイン元で鍵作成 ===== 下記で、$HOME/.ssh/ディレクトリに秘密鍵(id_rsa)と公開鍵(id_rsa.pub)が作成される。 <color red>※ログイン元(ユーザ:hoge2)のユーザで作成</color> <code console> hoge2@ssh-ho... er file in which to save the key (/home/nori/.ssh/id_rsa): ←[Enter]キー Enter passphrase (empty for no p... identification has been saved in /home/nori/.ssh/id_rsa. Your public key has been saved in /home/nori
- 07 秘密鍵から公開鍵を確認する方法 @01_linux:01_net
- 開鍵確認 ==== <code console> $ ssh-keygen -y -f .ssh/id_rsa </code> ==== 秘密鍵と公開鍵の合致確認 ==== 下記の2つが、合致すればOKです。 <code console> $ ssh-keygen -y -f .ssh/id_rsa ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA5ezNi1Wjz... P9qshjUWqjw== </code> <code console> $ cat .ssh/id_rsa.pub ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA5ezN... e console> $ mkdir ~/.ssh $ cp private.key ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa $ cp public.key ~/
- 32 Ceph 再同期 @01_linux:13_storage
- 7b03b099-c6bb-47b7-b010-143799410dda osd id 3 type ... 7b03b099-c6bb-47b7-b010-143799410dda osd id 3 type ... 7b03b099-c6bb-47b7-b010-143799410dda osd id 3 type ... eすれば再同期されます。</color> ceph-volume lvm activate {ID} {FSID} ceph-volume lvm activate 3 7b03b099-c6
- ipmitool Server内から、IPMI IP確認 @01_linux:01_net
- Gateway MAC : 00:00:00:00:00:00 802.1q VLAN ID : Disabled 802.1q VLAN Priority : 0 R... === ユーザの一覧確認 ===== <code> # ipmitool user list 1 ID Name Callin Link Auth IPMI Msg C... ool user set name 2 admin # ipmitool user list 2 ID Name Callin Link Auth IPMI Msg Channel P... code> ===== 権限追加 ===== ipmitool user priv [user id] [priv] [channel] <code> # ipmitool user priv 2 4
- 05 KVM Multi-Queue @01_linux:10_network
- 0 zombie %Cpu0 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st %Cpu1 : 0.0 us, 1.4 sy, 0.0 ni, 82.7 id, 0.0 wa, 0.0 hi, 15.9 si, 0.0 st %Cpu2 : 3.4 us, 19.0 sy, 0.0 ni, 15.6 id, 0.0 wa, 0.0 hi, 62.0 si, 0.0 st %Cpu3 : 2.2 us, 12.9 sy, 0.0 ni, 62.9 id, 0.0 wa, 0.0 hi, 21.9 si, 0.0 st </code> ===
- 38 cephadmでcephインストール後、openstackで利用 @01_linux:13_storage
- ==== cephadmにホスト登録しラベル付け ==== <code> ssh-copy-id -f -i /etc/ceph/ceph.pub root@ceph01 ssh-copy-id -f -i /etc/ceph/ceph.pub root@ceph02 ssh-copy-id -f -i /etc/ceph/ceph.pub root@ceph03 ceph orch host... unt: 1 label: mgr --- service_type: osd service_id: osd_using_paths placement: hosts: - ceph01
- 09 Ubuntu Bcache Ceph @01_linux:30_ubuntu
- 用意 ===== OSD_UNIT=ceph-osd/0 OSD=osd.1 OSD_ID=1 OSD_DNAME=/dev/bcache0 OSD_PV=/dev/nvme1n1 ... --wait ceph-mon/leader change-osd-weight osd=$OSD_ID weight=0 juju run-action --wait $OSD_UNIT stop osds=$OSD_ID ===== 3.VG/PV削除 ===== juju ssh $OSD_UNIT s... -action --wait ceph-mon/leader purge-osd osd=$OSD_ID i-really-mean-it=yes ===== 5. Bcache作成 =====
- 15 InnoDB テーブルロック @01_linux:11_データベース:01_mysql
- select * from lock_test; +----+--------+-----+ | id | name | age | +----+--------+-----+ | 1 | tan... 2 sec) </code> <code> create table lock_test ( id int primary key auto_increment, name varchar(... sec) mysql> UPDATE lock_test SET age = 21 WHERE id=1; Query OK, 1 row affected (0.01 sec) Rows match... sec) mysql> UPDATE lock_test SET age = 31 WHERE id=2; Query OK, 1 row affected (0.00 sec) Rows match
- 05_公開鍵をリモートホストに登録(ssh-copy-id) @01_linux:01_net
- ====== 05_公開鍵をリモートホストに登録(ssh-copy-id) ====== リモートホストにログインして、ファイルに書き込んで、という作業を自動で行ってくれます。 [[01_linux:... hd鍵|]]を省略できる便利コマンドです。 公開鍵を登録 <code console> $ ssh-copy-id -i .ssh/id_rsa.pub user@remote_host </code>
- 19 Ceph OMAP META @01_linux:13_storage
- ==== 下記でMETA容量を下げる事ができる。 # ceph tell osd.<osd-id> compact ※METAが多くなりすぎるとと、IO負荷が異常に高くなるので大きくなり過ぎる前... | awk 'NR==1;NR>1{print $0|"sort -k 13 -r -n "} ' ID CLASS WEIGHT REWEIGHT SIZE RAW USE D... | awk 'NR==1;NR>1{print $0|"sort -k 13 -r -n "} ' ID CLASS WEIGHT REWEIGHT SIZE RAW USE D