wiki:TipAndDoc/service/sakura/vps

Version 4 (modified by mitty, 13 years ago) (diff)

--

Spec

Ubuntu lucid

df -h

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              20G  647M   19G   4% /
none                  243M  160K  243M   1% /dev
none                  247M     0  247M   0% /dev/shm
none                  247M   32K  247M   1% /var/run
none                  247M     0  247M   0% /var/lock
none                  247M     0  247M   0% /lib/init/rw

sudo fdisk -lu /dev/sda

Disk /dev/sda: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders, total 41943040 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000eff6a

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048    40105983    20051968   83  Linux
/dev/sda2        40105984    41940991      917504   82  Linux swap / Solaris

sudo hdparm -tT /dev/sda

/dev/sda:
 Timing cached reads:   14280 MB in  2.00 seconds = 7147.01 MB/sec
 Timing buffered disk reads:  276 MB in  3.02 seconds =  91.41 MB/sec

CentOS 5.5

  • サービスイン直後

# lspci

00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.2 USB Controller: Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II] (rev 01)
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 VGA compatible controller: Technical Corp. Unknown device 1111
00:03.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 03)

# ifconfig -a

eth0      Link encap:Ethernet  HWaddr 52:54:XX:XX:XX:XX
          inet addr:59.106.180.xyz  Bcast:59.106.181.255  Mask:255.255.254.0
          inet6 addr: fe80::5054:XX:XX:XX/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1387 errors:0 dropped:0 overruns:0 frame:0
          TX packets:103 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:88422 (86.3 KiB)  TX bytes:12096 (11.8 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

sit0      Link encap:IPv6-in-IPv4
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

# route

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
59.106.180.0    *               255.255.254.0   U     0      0        0 eth0
169.254.0.0     *               255.255.0.0     U     0      0        0 eth0
default         59.106.180.1    0.0.0.0         UG    0      0        0 eth0

# cat /etc/resolv.conf

nameserver 210.188.224.10
nameserver 210.188.224.11
search sakura.ne.jp

# hostname

www5XYZu.sakura.ne.jp

# df -h

Filesystem            Size  Used Avail Use% Mounted on
/dev/hda2              18G  1.5G   15G  10% /
/dev/hda1              99M   12M   82M  13% /boot
tmpfs                 250M     0  250M   0% /dev/shm

# fdisk -lu /dev/hda

Disk /dev/hda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders, total 41943040 sectors
Units = sectors of 1 * 512 = 512 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *          63      208844      104391   83  Linux
/dev/hda2          208845    37833074    18812115   83  Linux
/dev/hda3        37833075    41929649     2048287+  82  Linux swap / Solaris

# 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         : 2660.040
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        : 5320.08
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         : 2660.040
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        : 5280.22
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:

# hdparm -tT /dev/hda

/dev/hda:
 Timing cached reads:   20580 MB in  2.00 seconds = 10297.90 MB/sec
 Timing buffered disk reads:  266 MB in  3.02 seconds =  88.20 MB/sec

GRUB

CentOS 5.5

  • # cat /boot/grub/grub.conf
    # grub.conf generated by anaconda
    #
    # Note that you do not have to rerun grub after making changes to this file
    # NOTICE:  You have a /boot partition.  This means that
    #          all kernel and initrd paths are relative to /boot/, eg.
    #          root (hd0,0)
    #          kernel /vmlinuz-version ro root=/dev/vda2
    #          initrd /initrd-version.img
    #boot=/dev/vda
    default=0
    timeout=5
    #splashimage=(hd0,0)/grub/splash.xpm.gz
    serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
    terminal --timeout=10 serial console
    hiddenmenu
    title CentOS (2.6.18-194.8.1.el5)
            root (hd0,0)
            kernel /vmlinuz-2.6.18-194.8.1.el5 ro root=LABEL=/ console=tty0 console=ttyS0,115200n8r
            initrd /initrd-2.6.18-194.8.1.el5.img