• skip to content

fl8 Wiki

User Tools

  • Log In

Site Tools

  • Recent Changes
  • Media Manager
  • Sitemap
You are here: Dokuwiki.fl8.jp » code
Trace: • 02 Silex • 24 静的ルーティング • 02 Ubuntu Cockpit KVM • VPNサーバ(PacketiX) • restore • 2025.07.15 AMIバックアップ • 60 CentOS OpenVPN • Postfix DovecotでPOP before SMTP • 35 qcow2をマウント • バッチファイルでカウント

code

Search

You can find the results of your search below.

Exact match
  • Exact match
  • Starts with
  • Ends with
  • Contains
@01_linux:99_その他
  • Any namespace
Any time
  • Any time
  • Past week
  • Past month
  • Past year
Sort by hits
  • Sort by hits
  • Sort by last modified

Fulltext results:

17 LVMミラー
28 Hits, Last modified: 6 years ago
====== 17 LVMミラー ====== ===== PV作成 ===== <code console> # pvcreate --metadatasize 50M /dev/vdc /dev/vdd /dev/vde /dev/vdf </code> ===== VG作成 ===== <code console> # vgcreate VG01 /dev/vdc /dev/vdd /dev/vde /dev/vdf </code> ===== ミラーLVM作成 ===== <code console> lvcreate --
16 LVMストライプ
22 Hits, Last modified: 10 years ago
====== 16 LVMストライプ ====== ===== PV作成 ===== <code console> # pvcreate /dev/vdc /dev/vdd /dev/vde /dev/vdf </code> ===== VG作成 ===== <code console> # vgcreate VG01 /dev/vdc /dev/vdd /dev/vde /dev/vdf </code> ===== ストライプLVM作成 ===== <code console> # lvcreat
35 GPT対応大容量ディスクにパーティションを追加(parted)
20 Hits, Last modified: 5 years ago
加(parted) ====== ===== 対話式でなく、コマンドラインで実行 ===== <code> parted /dev/nvme0n1 mklabel gpt parted /dev/nvme... 1 set 1 lvm on parted /dev/nvme0n1 set 2 lvm on </code> ===== ①partedインストール ===== minimalでインストールした場合、パッケージが入ってないので、その場合yumでインストール <code console> # yum install parted </code> ===== ②パーティション作成 ===== === partedコマンド実行 === <code console> #
21 kernelによってvmstat結果が違う
18 Hits, Last modified: 12 years ago
===== ===== CentOS 6.2の場合 ===== ==== カーネル ==== <code console> # uname -r 2.6.32-358.14.1.el6.x86_64 </code> ==== 負荷をかける ==== 全CPU100%にする為、わざと無限ループさせる 今回はCPU4つなので、4回実行する。 <code console> # python -c "while True: True" & # pytho... True: True" & # python -c "while True: True" & </code> ==== vmstat結果 ==== <code console> # vmstat 1 p
diff,patchコマンド
18 Hits, Last modified: 12 years ago
patch.html]] ===== ファイル単位 ===== === パッチの作成 === <code console> $ diff -u text.orig text > text.patch </code> === パッチ適応 === <code console> $ patch < text.patch </code> === パッチ適応前に戻す === <code console> $ patch -R < text.patch </code>
ソフトウェアraid復旧手順
17 Hits, Last modified: 8 years ago
(m for help): t\\ Partition number(1-4): 1\\ Hex code (type L to list codes): fd\\ Changed System type ... セクターで指定 ==== 下記のような表示になる場合、シリンダーで指定するとぴったりにならない <code> Device Boot Start End Block... 60802 488129536 fd Linux raid autodetect </code> この場合、セクターで指定してあげる <code> # fdisk -ul /dev/sda Device Boot Start End Blocks Id
rpm
16 Hits, Last modified: 7 years ago
===== ===== インストールできない ===== こんな感じでインストールできない。 <code> package j2sdk-1.4.2_08-fcs is already installed </code> こんな感じでインストールしてあげると、インストールできる。 <code console> # rpm -Uvh --replacepkgs j2sdk-1_4_2_08-linux-i586.rpm </code> ^ Option ^ 意味 ^ |--replacepkgs|すでにインストールされているパッ
38 プロセスのPTSを別のPTSへ出力
14 Hits, Last modified: 6 years ago
== 1. 1つのコンソールでシェルを実行 ===== ただ5秒おきに時間を出力するだけのシェル <code> $ cat z.sh #!/bin/bash while true; do date; sleep 5 done </code> <code> $ bash z.sh </code> ===== 2. プロセスの状態確認 ===== これで、プロセスID(**24870**)と現在の出力先が**/dev/pts/94**であることがわかる。
50 CentOS5.7 ドライバ組み込み
14 Hits, Last modified: 13 years ago
thernetのドライバを組み込んだ時のメモ ===== CDの内容をコピーする ===== <code console> # mkdir /mnt/work/old_cdrom # mkdir /tmp... p/work/new_cdrom/ # umount /mnt/work/old_cdrom/ </code> ===== initrb.imgを展開 ===== <code console> # cp /tmp/work/new_cdrom/isolinux/ # mkdir initrd_work # cd ... mp drwxr-xr-x 6 root root 4096 May 17 13:29 var </code> ===== rpmからドライバを取り出す ===== <code console> # mkd
71 kdump
14 Hits, Last modified: 12 years ago
71 kdump ====== ===== ①kexec-toolsインストール ===== <code console> # yum install kexec-tools # chkconfig kdump on </code> ===== ②kernel 行に、crashkernel オプションを追加 ===== <code console> # vi /etc/grub.conf kernel /boot/vmlinuz-... .3.1.el5 ro root=/dev/sda1 crashkernel=128M@16M </code> ===== ③kdump.conf 修正 ===== <code console> # vi
02 Swappiness
12 Hits, Last modified: 12 years ago
が60%) 0を含め低い値に設定すると応答速度が向上する(反応までの遅延が減少する)とされる。 <code console> # sysctl vm.swappiness vm.swappiness = 60 </code> ===== 値の説明 ===== ^ 値 ^ スワップ頻度 ^ |vm.swappi... ォーマンスに影響しうるほど積極的にスワップ処理を行う| ===== 設定の反映 ===== <code console> # echo 100 > /proc/sys/vm/swappiness </code> OR <code console> # sysctl -w vm.swappiness=100
25 LVM内のLVMをマウント
12 Hits, Last modified: 8 years ago
VM内にLVMができる状態となる。 そのマウント方法 ===== 1.状態の確認 ===== <code> # lvs LV VG Attr LSize ... VmVol01 VolGroup00 -wi-a----- 100.00g </code> ^ LVM ^ 用途 ^ |LogVol00| HVのSwap| |LogVol01| HVの... VM用のディスクVmVol01を見ると、このディスクもLVMパーティションになっている状態。 <code> # fdisk -l /dev/VolGroup00/VmVol01 Disk /dev/Vo... 26 13055 104651776 8e Linux LVM </code> ===== 2.VM用LVMを見れるようにする ===== kpartxでディスクイメージの
ソフトウェアraid構築
11 Hits, Last modified: 11 years ago
RAIDパーティション作成 ===== /dev/xvdb、/dev/xvdc 両方で行う。 <code console> # fdisk /dev/xvdb Command (m for help): ... Command (m for help): t Selected partition 1 Hex code (type L to list codes): fd Changed system type of... tl() to re-read partition table. Syncing disks. </code> ===== mdadm コマンドで RAID アレイを作成 ===== <code console> # mdadm --create /dev/md0 --level=0 --raid-device
11 mountでエラー
10 Hits, Last modified: 12 years ago
トできない場合ある。 これは、ext2ならマウントできるが、ext3でマウントできないパターン <code> Running: mount -o data=writeback,errors=continue... und in syslog - try dmesg | tail or so </code> ■EXT3だとマウントできない <code console> # mount -t ext3 /dev/mapper/hogehoge mount: wrong fs type, bad option... ound in syslog - try dmesg | tail or so </code> ■EXT2だとマウントできる <code console> # mount -t ext2 /
60 adaptech_raidのledランプを付ける.
10 Hits, Last modified: 5 years ago
adaptech_raidのledランプを付ける. ====== arcconfigコマンド <code console> ARCCONF IDENTIFY <Controller#> LOGICALDR... F IDENTIFY <Controller#> DEVICE <Channel#> <ID> </code> [[http://docs.oracle.com/cd/E19045-01/blade.x62... 2/chapter2.html#0_78057]] ===== Example 1 ===== <code console> -------------------------------------... ber : 9WK2YZ770000C1244YVH </code> この9WK2YZ770000C1244YVHにランプを付けたい場合は <code consol
61 AdaptechでHotSpreを使う
10 Hits, Last modified: 5 years ago
62 Adaptechでディスク交換
10 Hits, Last modified: 5 years ago
Operation not permitted 削除できないファイル
10 Hits, Last modified: 6 years ago
リアルタイムでトラフィックを見る
10 Hits, Last modified: 6 years ago
01 ファイルを削除してもディスクの残り容量(df)が増えない!
8 Hits, Last modified: 13 years ago
28 screenの外からコマンド実行
8 Hits, Last modified: 5 years ago
63 Adaptech set priority 優先度変更
8 Hits, Last modified: 5 years ago
76 dmraid リビルド
8 Hits, Last modified: 11 years ago
77 LVMのサイズ変更
8 Hits, Last modified: 9 years ago
HDD丸ごとコピー(リモートも可)
8 Hits, Last modified: 5 years ago
03 Linux swapスペース追加
6 Hits, Last modified: 12 months ago
15 ddで進捗を確認
6 Hits, Last modified: 6 years ago
26 duplicate PVs
6 Hits, Last modified: 7 years ago
39 💻logrotateのテスト
6 Hits, Last modified: 5 years ago
64 Adaptech WriteBack設定
6 Hits, Last modified: 5 years ago
78 dmraidメタ情報削除
6 Hits, Last modified: 6 years ago
92 Gitコマンド
6 Hits, Last modified: 3 years ago
ソフトウェアRaid削除
6 Hits, Last modified: 5 years ago
SRC.RPMのインストール
6 Hits, Last modified: 13 years ago
37 MegaCliのSmart情報
5 Hits, Last modified: 7 years ago
3PAR SNMP設定
4 Hits, Last modified: 5 years ago
05 umask
4 Hits, Last modified: 7 years ago
09 Linux rescue ドライバあり
4 Hits, Last modified: 8 years ago
10 fsckでエラー
4 Hits, Last modified: 13 years ago
12 Supermicro SMCIPMITool
4 Hits, Last modified: 11 years ago
24 Memory Cache開放
4 Hits, Last modified: 9 years ago
30 PVS not found or rejected by a filter
4 Hits, Last modified: 5 years ago
Linux HDDの型番
4 Hits, Last modified: 13 years ago
CentOS タイムゾーン変更
4 Hits, Last modified: 5 years ago
13 storcli
3 Hits, Last modified: 7 years ago
LVM の dm-0 とかの表示をデバイス名に読み替える
2 Hits, Last modified: 10 years ago
18 iLO自体を再起動
2 Hits, Last modified: 10 years ago
19 vgextend
2 Hits, Last modified: 6 years ago
20 screenコマンド
2 Hits, Last modified: 6 months ago
22 ロードアベレージ調査
2 Hits, Last modified: 11 years ago
23 RamDisk
2 Hits, Last modified: 10 years ago
29 screenに外からコマンド
2 Hits, Last modified: 5 years ago
31 Cannot open your terminal '/dev/pts/X' - please check.
2 Hits, Last modified: 4 years ago
36 smartctlでディスク情報確認
2 Hits, Last modified: 9 years ago
40 CentOS6 yum使えない
2 Hits, Last modified: 5 years ago
41 DiskのMBR削除
2 Hits, Last modified: 4 years ago
65 Adaptech Create LD
2 Hits, Last modified: 8 years ago
イメージファイルをfdiskする
2 Hits, Last modified: 13 years ago
Ubuntu fsck
2 Hits, Last modified: 8 years ago
WARNING: at kernel/sched.c:5914
2 Hits, Last modified: 12 years ago

Page Tools

  • Show page
  • Old revisions
  • Backlinks
  • Back to top
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
CC Attribution-Noncommercial-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki