さくらVPSサーバ設定メモ(1)
2011年5月14日さくらVPSサーバを設定した時のメモ。
契約プラン: メモリ1.5GBプラン
- パーティション
- sdaが20GB、sdbが30GBの構成なので、20GB分をRAID1構成とする
- 残りのHDD容量は無視
- 設定例:
- /boot — 200MB(RAID)
- /home — 10GB(RAID)
- / ——– 6GB(RAID)
- /var —– 4GB(RAID)
- swap —- 4GB
- インストールOS
- CentOS5.5(x64)
- 初期設定
- .vimrc
- .bashrc
- .bash_profile
- # cp ~/.bashrc ~/.vimrc ~/.bash_profile /etc/skel
- 以下、確認内容参考
[shell]
# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 Duo CPU T7700 @ 2.40GHz
stepping : 11
cpu MHz : 2666.926
cache size : 4096 KB
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx lm constant_tsc pni ssse3 lahf_lm
bogomips : 5333.85
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 Duo CPU T7700 @ 2.40GHz
stepping : 11
cpu MHz : 2666.926
cache size : 4096 KB
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx lm constant_tsc pni ssse3 lahf_lm
bogomips : 5204.93
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
[/shell]
[shell]
# cat /proc/meminfo
MemTotal: 1542448 kB
MemFree: 23520 kB
Buffers: 187552 kB
Cached: 645268 kB
SwapCached: 112 kB
Active: 776004 kB
Inactive: 603600 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 1542448 kB
LowFree: 23520 kB
SwapTotal: 4192924 kB
SwapFree: 4192812 kB
Dirty: 80 kB
Writeback: 0 kB
AnonPages: 546784 kB
Mapped: 26460 kB
Slab: 110388 kB
PageTables: 12920 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
CommitLimit: 4964148 kB
Committed_AS: 789880 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 2372 kB
VmallocChunk: 34359735927 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
Hugepagesize: 2048 kB
[/shell]
[shell]
# cat /proc/mdstat
Personalities : [raid1]
md2 : active raid1 hdb2[1] hda1[0]
10482304 blocks [2/2] [UU]
md0 : active raid1 hdb3[1] hda2[0]
4192896 blocks [2/2] [UU]
md1 : active raid1 hdb6[1] hda3[0]
6289344 blocks [2/2] [UU]
unused devices: <none>
– proc(partitions)
[/shell]
[shell]
# cat /proc/partitions
major minor #blocks name
3 0 20971520 hda
3 1 10482381 hda1
3 2 4192965 hda2
3 3 6289447 hda3
3 64 31457280 hdb
3 65 200781 hdb1
3 66 10482412 hdb2
3 67 4192965 hdb3
3 68 1 hdb4
3 69 4192933 hdb5
3 70 12386083 hdb6
9 1 6289344 md1
9 0 4192896 md0
9 2 10482304 md2
[/shell]