阿里云(aliyun)青岛节点挂载硬盘io测试

杭州节点已经停售了,在青岛订购了一台,贴上测试结果。 fdisk -l Disk /dev/xvda: 21.5 GB, 21474754560 bytes 255 heads, 63 sectors/track, 2610 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00090497 Device Boot Start End Blocks Id System /dev/xvda1 * 1 2611 20969472 83 Linux Disk /dev/xvdb: 53.7 GB, 53687091200 bytes 255 heads, 63 sectors/track, 6527 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/xvdb doesn't contain a valid partition table 分区...

2013-12-06 · 3 分钟 · admin

debian 下安装 lxc

本文安装环境 debian 6.0 安装 lxc debootstrap 工具 aptitude install lxc bridge-utils debootstrap 设置网络 auto eth1 iface eth1 inet manual auto br0 iface br0 inet static bridge_ports eth1 #根据自己实际网卡设置 bridge_fd 0 address 10.0.0.100 netmask 255.255.255.0 gateway 10.100.0.1 dns-nameservers 10.20.0.2 加载 cgroup 编辑 /etc/fstab cgroup /sys/fs/cgroup cgroup defaults 0 0 立即加载 mount /sys/fs/cgroup 接下来创建一下虚拟机 #下载 squeeze 64位 debootstrap --verbose --variant=minbase --arch=amd64 --include ifupdown,locales,libui-dialog-perl,\ dialog,netbase,net-tools,iproute,openssh-server,vim,apt-utils,proxychains \ squeeze /var/cache/lxc/debian/rootfs-amd64 http://mirrors.163.com/debian/ mkdir -p /lxc/vm0 #存放目录 /usr/lib/lxc/templates/lxc-debian -p /lxc/vm0/ # 创建虚拟机 配置虚拟机网络,在 /lxc/vm0/config 文件填加些文本...

2013-11-23 · 1 分钟 · admin

debian 下 lxc 限制内存出错

起动 vm 的时候出现 lxc-start: open /cgroup/vm0/memory.limit_in_bytes : No such file or directory lxc-start: failed to setup the cgroups for ‘vm0’ lxc-start: failed to setup the container lxc-start: invalid sequence number 1. expected 2 lxc-start: failed to spawn ‘vm0’ 在 /etc/default/grub 文件填加 GRUB_CMDLINE_LINUX="cgroup_enable=memory" 0# lxc-checkconfig Kernel config /proc/config.gz not found, looking in other places... Found kernel config file /boot/config-2.6.32-5-amd64 --- Namespaces --- Namespaces: enabled Utsname namespace: enabled Ipc namespace: enabled Pid namespace: enabled User namespace: enabled Network namespace: enabled Multiple /dev/pts instances: enabled --- Control groups --- Cgroup: enabled Cgroup namespace: enabled Cgroup device: enabled Cgroup sched: enabled Cgroup cpu account: enabled Cgroup memory controller: missing Cgroup cpuset: enabled --- Misc --- Veth pair device: enabled Macvlan: enabled Vlan: enabled File capabilities: enabled

2013-11-23 · 1 分钟 · admin

debian bridge 网卡参数说明

bridge_fd is the bridge forward delay time, in seconds, default 15. bridge_hello is the bridge hello time, in seconds, default 2. bridge_maxage is the bridge’s maximum message time, in seconds, default is 20. bridge_stp controls the spanning tree protocol, on or off. Default is off, and is recommended to stay that way.

2013-11-23 · 1 分钟 · admin

lxc guest 报错 respawning too disabled minutes

INIT: Id "c1" respawning too fast: disabled for 5 minutes INIT: Id "c4" respawning too fast: disabled for 5 minutes INIT: Id "c1" respawning too fast: disabled for 5 minutes INIT: Id "c2" respawning too fast: disabled for 5 minutes INIT: Id "c3" respawning too fast: disabled for 5 minutes INIT: Id "c4" respawning too fast: disabled for 5 minutes INIT: Id "c1" respawning too fast: disabled for 5 minutes INIT: Id "c2" respawning too fast: disabled for 5 minutes INIT: Id "c3" respawning too fast: disabled for 5 minutes INIT: Id "c4" respawning too fast: disabled for 5 minutes 解决方法 编辑 /etc/inittab...

2013-11-23 · 1 分钟 · admin

mysql 5.5 半同步停止工作

两台 mysql 5.5 服务器互为主从,使且半同步模式,网络终断后,但是 同步未能恢复 mysql> show status like 'Rpl_%'; +--------------------------------------------+-------------+ | Variable_name | Value | +--------------------------------------------+-------------+ | Rpl_semi_sync_master_clients | 0 | | Rpl_semi_sync_master_net_avg_wait_time | 213 | | Rpl_semi_sync_master_net_wait_time | 51387187879 | | Rpl_semi_sync_master_net_waits | 240543674 | | Rpl_semi_sync_master_no_times | 2 | | Rpl_semi_sync_master_no_tx | 6402 | | Rpl_semi_sync_master_status | OFF | | Rpl_semi_sync_master_timefunc_failures | 0 | | Rpl_semi_sync_master_tx_avg_wait_time | 276 | | Rpl_semi_sync_master_tx_wait_time | 68522585281 | | Rpl_semi_sync_master_tx_waits | 248230976 | | Rpl_semi_sync_master_wait_pos_backtraverse | 1101735 | | Rpl_semi_sync_master_wait_sessions | 0 | | Rpl_semi_sync_master_yes_tx | 240799932 | | Rpl_semi_sync_slave_status | ON | | Rpl_status | AUTH_MASTER | +--------------------------------------------+-------------+ 恢复操作...

2013-11-22 · 1 分钟 · admin

cocos2d-x 2.1.5 jsb 读取 plist

static JSBool js_cocos2dx_CCFileUtils_createDictionaryWithContentsOfFile(JSContext *cx, uint32_t argc, jsval *vp) { jsval *argv = JS_ARGV(cx, vp); JSBool ok = JS_TRUE; JSObject *obj = JS_THIS_OBJECT(cx, vp); js_proxy_t *proxy = jsb_get_js_proxy(obj); cocos2d::CCFileUtils* cobj = (cocos2d::CCFileUtils *)(proxy ? proxy->ptr : NULL); JSB_PRECONDITION2( cobj, cx, JS_FALSE, "Invalid Native Object"); if (argc == 1) { std::string arg0; ok &= jsval_to_std_string(cx, argv[0], &arg0;); JSB_PRECONDITION2(ok, cx, JS_FALSE, "Error processing arguments"); cocos2d::CCDictionary* ret = CCDictionary::createWithContentsOfFile(arg0.c_str()); jsval jsret; jsret = ccdictionary_to_jsval(cx, ret); JS_SET_RVAL(cx, vp, jsret); return JS_TRUE; } JS_ReportError(cx, "wrong number of arguments: %d, was expecting %d", argc, 1); return JS_FALSE; }

2013-10-17 · 1 分钟 · admin

cocos2d-x 2.1.5 clippingNode在 jsb 下无效的修改

**http://cocos2d-x.org/boards/6/topics/20141?r=20567#message-20567 ** for iOS: in AppController replace the gl-view creation with: EAGLView *__glView = [EAGLView viewWithFrame: [window bounds] pixelFormat: kEAGLColorFormatRGBA8 depthFormat: GL_DEPTH24_STENCIL8_OES preserveBackbuffer: NO sharegroup: nil multiSampling: NO numberOfSamples: 0]; for Android: in game activity: public Cocos2dxGLSurfaceView onCreateView() { Cocos2dxGLSurfaceView glSurfaceView = new Cocos2dxGLSurfaceView(this); glSurfaceView.setEGLConfigChooser(5, 6, 5, 0, 16, 8); return glSurfaceView; }

2013-09-23 · 1 分钟 · admin

bae联通节点更新ip,广州长宽终于正常了

bae 联通节点之前一直用的是 63开头的ip,长城宽带一直打不开。。有时 hao123 都打不开。。 ,今天打开 blog 一下就开了。。发现联通节点变成了 202.108.23.200 速度还真不错,不知道是不是前几天我在群里反应长城宽带打不开网站就调整了哈。

2013-09-16 · 1 分钟 · admin

jsonp 后 ie 下 cookie 还是不能跨域问题

在非 ie 都 直用 jsonp cookie 是没问题,但是在 ie 下不能生效,还是得靠 p3p 解决 header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');

2013-04-16 · 1 分钟 · admin

今天把blog迁到了 phpcloud 试用中

之前已经介绍过 phpcloud 空间了,也试用过一个站,不过好像被封了,可能是太占资源了哈哈,把 blog 移过过看看会不会被封掉,转移 blog 还是有点麻类的, phpcloud 的 git 权限和apache 权限不致, wordpress 在线更新是比烦的事,改成 777 可以解决,费力呀。。

2013-02-21 · 1 分钟 · admin

freebsd6升级到freebsd7

Author: Ralf S. Engelschall Created: 2007-05-24 Modified: 2009-08-01 Version: 1.3 ATTENTION: THIS UPGRADE PROCEDURE MIGHT NOT WORK FOR YOU AS YOUR ENVIRONMENT IS DIFFERENT. ALSO, THIS UPGRADE PROCEDURES MIGHT DESTROY YOUR SYSTEM AND YOU POTENTIALLY MIGHT LOOSE DATA. NO WARRANTY AT ALL. USE IT AT YOUR OWN RISK! This upgrades from FreeBSD 6.4-STABLE to 7.2-STABLE. ---- PROLOG ----------------------------------------------------------------- o # reboot once to make sure OLD system is at least # able to still successfully reboot autonomous at all # SORRY, THIS IS _NOT_ A JOKE -- THIS IS A VERY SERIOUS ISSUE!...

2012-10-22 · 3 分钟 · admin

freebsd7升级到freebsd8

Upgrading from FreeBSD 7.X to FreeBSD 8.X ========================================= Author: Ralf S. Engelschall Created: 2009-01-01 Modified: 2011-01-29 Version: 1.4 ATTENTION: THIS UPGRADE PROCEDURE MIGHT NOT WORK FOR YOU AS YOUR ENVIRONMENT IS DIFFERENT. ALSO, THIS UPGRADE PROCEDURES MIGHT DESTROY YOUR SYSTEM AND YOU POTENTIALLY MIGHT LOOSE DATA. NO WARRANTY AT ALL. USE IT AT YOUR OWN RISK! This upgrades from FreeBSD 7.3-STABLE to 8.2-STABLE. ---- PREPARE ---------------------------------------------------------------- o # reboot once to make sure OLD system is at least # able to still successfully reboot autonomous at all # SORRY, THIS IS _NOT_ A JOKE -- THIS IS A VERY SERIOUS ISSUE!...

2012-10-22 · 3 分钟 · admin

freebsd8升级到freebsd9

Upgrading from FreeBSD 8.X to FreeBSD 9.X ========================================= Author: Ralf S. Engelschall Created: 2011-09-30 Modified: 2011-09-30 Version: 1.0 ATTENTION: THIS UPGRADE PROCEDURE MIGHT NOT WORK FOR YOU AS YOUR ENVIRONMENT IS DIFFERENT. ALSO, THIS UPGRADE PROCEDURES MIGHT DESTROY YOUR SYSTEM AND YOU POTENTIALLY MIGHT LOOSE DATA. NO WARRANTY AT ALL. USE IT AT YOUR OWN RISK! This upgrades from FreeBSD 8.2-STABLE to 9.0-BETA3. ---- PREPARE ---------------------------------------------------------------- o # reboot once to make sure OLD system is at least # able to still successfully reboot autonomous at all # SORRY, THIS IS _NOT_ A JOKE -- THIS IS A VERY SERIOUS ISSUE!...

2012-10-22 · 3 分钟 · admin

GoDaddy .COM域名10月优惠码:2.95美元注册/转入.COM!

GoDaddy 2012年10月份GoDaddy优惠码:2.95美元超低价注册或转入.COM域名!而且不只适用于注册,还适用于从其它注册商将你的域名转入到GoDaddy!无论新老用户均可享受优惠! [drpcoupon name=“godaddy cjc295v” exclude=“name,expiration,description,rss”] (注:此优惠链接已集成GoDaddy 10月优惠码,无需再输入优惠码。有效期未知。)

2012-10-12 · 1 分钟 · admin