Many companies, now a days are very busy and have many orders and with this increase in business, we are seeing increases in servers with the wrong hardware. This guide is just a little how-to to fix all of those problems

or at least check, to make sure you have the right information
So first step is log into SSH
1. Check CPU brand and speed
less /proc/cpuinfo
You should get something like below, well if you have a Dual Xeon 2.8 like me. As we can see we get the CPU model and vendor and a lot of other useful information
Quote:
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 2
model name : Intel(R) Xeon(TM) CPU 2.80GHz
stepping : 9
cpu MHz : 2799.258
cache size : 512 KB
physical id : 0
siblings : 2
runqueue : 0
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips : 5583.66
|
2. Find out the amount of RAM
free
You should get something like this. As you can see my server has exactly 1GB or RAM.
Quote:
total used free shared buffers cached
Mem: 1024888 995700 29188 0 117220 421644
-/+ buffers/cache: 456836 568052
Swap: 2040212 270616 1769596
|
3. Find mounted partitions
df -h
as you can see this shows % use and oher useful information
Quote:
Filesystem Size Used Avail Use% Mounted on
/dev/hda6 1012M 309M 652M 33% /
/dev/hdb1 111G 334M 105G 1% /backup
/dev/hda1 99M 35M 59M 38% /boot
/dev/hda5 90G 13G 73G 15% /home
none 501M 0 501M 0% /dev/shm
/dev/hda7 1012M 33M 928M 4% /tmp
/dev/hda2 9.9G 4.5G 5.0G 48% /usr
/dev/hda3 6.9G 2.4G 4.2G 37% /var
|
4. Find out how many HardDrives you have
fdish -l
As you can see I have 2 Hardrives hda and hdb, both are 120GB
Quote:
Disk /dev/hda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 1318 10482412+ 83 Linux
/dev/hda3 1319 2232 7341705 83 Linux
/dev/hda4 2233 14593 99289732+ f Win95 Ext'd (LBA)
/dev/hda5 2233 14077 95144931 83 Linux
/dev/hda6 14078 14208 1052226 83 Linux
/dev/hda7 14209 14339 1052226 83 Linux
/dev/hda8 14340 14593 2040223+ 82 Linux swap
Disk /dev/hdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 14593 117218241 83 Linux
|
5. Find more detail about your HardDrive (for you hardnuts)
hdparm -i /dev/hda
This give you a lot more information. A lot of which is not needed IMO, if you have two Hardrvies replace hda with hdb etc.
Quote:
Model=WDC WD1200JB-00GVA0, FwRev=08.02D08, SerialNo=WD-WCALA1358993
Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
RawCHS=16383/16/63, TrkSize=57600, SectSize=600, ECCbytes=74
BuffType=DualPortCache, BuffSize=8192kB, MaxMultSect=16, MultSect=16
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=234441648
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
AdvancedPM=no WriteCache=enabled
Drive conforms to: device does not report version:
* signifies the current active mode
|
6. Test speed of your hardrive
hdparm -tT /dev/hda
Now this is interesting, most of you will beat me I should imagine as my server has 300 sites on and is a production server so of course will be slightly slower than usual

, brand new it was much quicker though
Quote:
/dev/hda:
Timing buffer-cache reads: 1548 MB in 2.00 seconds = 774.00 MB/sec
Timing buffered disk reads: 24 MB in 3.34 seconds = 7.19 MB/sec
|
That is it. hope I helped some of you