星期六, 14 2月 2015 22:33

Buyvm的问题和Linode VPS 介绍-使用记录

作者 
给本项目评分
(0 得票数)

2015-2-9

Buyvm的问题和Linode VPS 介绍

早上网站突然出现下面的错误:

Database connection error (2): Could not connect to MySQL.

我本来还以为是小问题,可以重启一下VPS就会好。

到了Buyvm的管理后台。

== Control Panel Access

https://manage.buyvm.net/

重启发现不能解决问题,7天备份循环里面也是空白的。

重启不解决问题,如果选择关机的话,就是显示“This webpage is not available". 

2-10 于是open ticket 留言。

all my websites are not working because the server has the problem, and the 7 days backup is not working either. please check.

很快答复了:

We do not have backups setup yet in NJ location, we will send out a mass email about that when we have set up backups in NJ location.

我们查了错误的log文件。是InnoDB出错, 据弟弟分析是”是由于Buyvm突然断电重启、或者磁盘损坏,造成了我们MySQL数据的损坏,所以昨天做了MySQL清空处理,因为MySQL数据损毁严重,无法恢复。“弟弟坚持认为一开始是有这个7天备份的,是后来没有的。但是Buyvm坚持说NJ服务器从来也没有过backup的功能。

We do not have backups for any vm's in the NJ location at all, I however need billing to setup the account so that we can transfer the vm to LV location with backups. In the meantime you will need to restore from a backup you have on your personal if you do have one, or fix the current sql db for the website.

最后我都打算换供应商了,然后buyvm那里给了个建议,让我们下订单买LV服务器,然后把网站从NJ服务器搬到LV下,他们不能提供这个服务。

备份是非常重要的功能。

Buyvm的网站上是这么说的。

http://wiki.buyvm.net/index.php/FAQ

Do you provide backups?

At this time we do not provide backups.

We do, however, provide 5GB of free FTP space to each account owner. You may use this space to store your own backups. To gain access to this backup space simply order BuyVM+ DNS.

但是这个5GB的FTP空间是用来保存你自己备份的东西,这个和网站的整体备份是完全不同的。系统完整备份才最有价值。

7天循环备份如果有效的话,就完全解决问题了。我现在发现服务器出现问题的概率是非常高的,从Godaddy, Arvixe, Buyvm, 就目前用过的这几个,出现问题的概率还不低。所以有系统备份就变成非常重要。Godaddy是有个30天备份的。Arvixe因为用的时间比较短,没有研究过这个功能。Buyvm根本就不提供这个功能。

不过好像现在LV(拉斯维加斯)服务器提供这个功能,所以要赶紧换过去了。

本来想换服务商的时候,研究了一下VPS的供应商。基本上业界首推一指的是LINNODE的服务器。

Linode VPS 介绍

如果我要换的话,就是选择LINODE了。

Linode 是一家来自于美国的专注于提供 Linux VPS 的虚拟服务器提供商, 全部 VPS 方案都是采用 XEN 虚拟技术架设,Linode 名字的含义也就是 Linux Node 的缩写。

Linode的最大特点是:稳定性,价格也不贵。性价比高。虽然价格绝对值比Buyvm高,但是其性能据说非常好。当然我还没有用过,只是网上搜索出来全部都是好评一片。

VPS = Virtual Private Server,意为虚拟专用服务器,原理是将物理意义上的一台服务器,划分为多台虚拟服务器。每一台虚拟服务器都有独立的内存、CPU、硬盘,可以看作是一个逻辑意义上的独立服务器。

和BUYVM的plan比较一下。

显然是Buyvm的价格更优惠。但是Linode的口碑非常好,尤其是以其稳定性。

买Iinode的话,如果选择最便宜那个计划是1G的内存,还要买backup功能,每月2.5刀,所以一共是12.5. 

Linode有下面几个机房。

距离多伦多最近的是US East了,所以如果要选的话,就选择US East, 如果是国内用的话,就选择东京那个机房。

软矿里介绍了5个VPS。

1、Linode

2、Media Temple

3、hostigation

4、HostGator

5、Dream Host

还有一篇是介绍三个VPS的。Linode,Hostigation和Frantech(Buyvm)

几乎任何一篇介绍VPS的文章里LInode都绝对是名列前茅的。而其实Buyvm也就是以价格取胜。假如Buyvm这次无法提供这个7天备份的问题,再便宜也是不能用的。

接下来等看这个LV主机的性能评测。

 

2015-3-10

退出BUYVM

自从上次buyvm的NJ服务器文件出错后,就被告知了NJ服务器是没有自动备份功能的,只有LV的服务器有这个备份功能。于是在3月2号的时候就买了LV并且是1024的服务器,比原来NJ的服务器更高了一级的计划。这个新的LV的服务器因为计划升了一级,所以速度还是很满意的。但是问题出在表文件不停的发现有损坏。一开始的时候还以为是系统版本的问题,结果这几天在不停的换系统。

下面是一些我和弟弟的对话记录。

我觉得这个不稳定似乎不是系统的缘故,是这个新buyvm机房的问题。

没有很明确的证据。这几天看下来,不稳定只表现在一个地方,就是经常有表文件损坏。简单说法就是表文件不停损坏。

以前那个没有?

以前那个buyvm就出现过一次文件丢失,就是最近那次

最近那次就损失惨重

说明了备份很重要

阿里云一次都没出现过,说明文件丢失是很难得的事情,但是这个新buyvm运行几个小时就出现一次。(弟弟还有个在阿里云的服务器来测试用的)

log不能作为证据

只是提示错误发生了

没办法直接证明是新buyvm的问题。

 

系统换过4个版本: debian7 32bit、debian7 64bit、debian6 32bit、CentOS 7.0 64bit 

MySQL换过的3个版本: 5.5.37、5.5.38、5.5.36

 

系统换过4个版本: debian7 32bit、debian7 64bit、debian6 32bit、CentOS 7.0 64bit 

MySQL换过的3个版本: 5.5.37、5.5.38、5.5.36

在这个新buyvm上还试过最新版的mysql,好像是 5.5.40

 

table damage让人感觉是软件问题,可事实这不是软件问题

我开始一直怀疑是软件版本问题,所以尝试多个版本

 

我们Buyvm老服务器用的什么版本?

mysql  Ver 14.14 Distrib 5.5.37, for debian-linux-gnu (i686) using readline 6.2

Debian 7.0 32bit + MySQL 5.5.37

老服务器就发生过一次问题,就是上次我们没有找到备份的那次?

 

我提交了Ticket(如下)给了Buyvm,答复果然和我们预料的一样,

We ordered the LV 1024 on Mar 2nd last week. then we setup the new server.

Because of the table damage problem happens time to time, we tried below system.

System version total four: debian7 32bit、debian7 64bit、debian6 32bit、CentOS 7.0 64bit 

MySQL version total three: 5.5.37、5.5.38、5.5.36

 

But none of the system and Mysql versions works, the problem happens sometimes, such as :"mysqldump: Error 1034: Incorrect key file for table 'accesslog'; try to repair it when dumping table `accesslog` at row: 7634" etc. just happen in different tables randomly. 

 

You may think table damage is the system problem. But we try several version of system and Mysql, none of them are stable in new LV location. so we have to give up the LV 1024 new server. Unfortunately, I order the 6 months services, so please cancel it (LV 1024) and refund the full amount.

 

Current NJ 512MB server doesn't have the backup service, and not enough for us, we used NJ512 for almost one year, and it only happen the table damaging one time in Feb 2015, and because of no backup service, we lost one week data. that is why you recommend we move to LV location. 

 

Do you have any solution?

 

Buyvm的答复是:

If you're seeing this error over multiple installs, it's more likely that the code/queries in question are the problem than the VM itself (I haven't seen any other reported issues similar to this, and none of the LV nodes are showing any signs of disk degradation). Trying different versions of mySQL and different OSes won't really be a fix for this - you need to actually clean/repair the database itself, as the information it contains is what is corrupted.

 

I can offer you a pro-rated refund on the service if you wish, but this error isn't due to anything on the VPS or node itself.

 

最后我们甚至还怀疑是否LV的这个100G的硬盘是假的,实际可能还是只有50G?因为买计划的时候写的是50G,于是我们把系统重新清空,只用了25G不到,结果问题还是一样发生了。说明也不是硬盘占用的问题。

于是今天早上第一件事就是申请退款了。

NJ的是月付的,说不能退了。LV1024的因为付了半年,所以说会退款,不过估计也不一定能全退,因为用了8天了。

退款了,金额是Amount Refunded: $-61.60 USD。 

 

转用Linode

既然要退出Buyvm了,于是首选的就是Linode了。

我选的是第二级别的plan. 

Linode 2GB

($20/mo)

2 GB RAM

2 CPU Cores

48 GB SSD Storage

3 TB Transfer

40 Gbit Network In

250 Mbit Network Out

然后再加上backup备份服务是每月5刀,所以每个月一共是25刀。

一份价钱一分货啊。服务器是用的Newark NJ的,是离开多伦多最近的服务器了。

从昨天装上到今天,总体的感觉是稳定,速度快。当然还要再多考验一段时间才能做出评价。所以这下又可以继续发布文章了。上个礼拜一直在折腾服务器的事情,所以也不敢加文章,因为每个服务器都有网站,不停的在Godaddy里换IP指向,这下总算是定了是指向Linode的了。希望它不会让我们失望。

 

目前的www.licagroup.ca 的网站因为把Ashley的加进来了,所以将近有20G的大小。对于这么大的一个网站来说,Buyvm已经不能胜任了。如果只是torontomeet.com的话,是属于小网站,图片比较少的,很多服务器都可以支持。

目前的Torontomeet网站大概是500M的空间,每天的访问量是600用户(不是按人次也不是访问页面,而是访问用户)。2015年的目标是每天1000用户。

 

阅读 6200 次数 最后修改于 星期二, 10 3月 2015 09:54
语嫣

冬天来了,春天还会远么?

QQ: 12585787

网站: www.torontomeet.com

You have no rights to post comments, pls login to post.

相约多伦多-TorontoMeet.com © Copyright 2012

网站记录了语嫣同学移民加拿大后在多伦多的生活的点点滴滴和经验分享。

“文章内容是否已经过时需要更新?你有补充的内容么?一定不要吝啬你的评论,和大家分享点什么吧。对于后来者,那都是宝贵的信息,也是一种对我的鼓励。我希望听见大家的声音,让我们共同来培育这片树林。”--语嫣

评论排名

  • 语嫣
    38 ( +8 )
  • 量体温的猫
    10 ( +3 )
  • juliajulia
    7 ( 0 )
  • 轻轻木子
    7 ( +1 )
  • yuga
    5 ( +1 )

友情链接