存档

‘VPS’ 分类的存档

SS-NODE3节点:ORA-28001 the password has expired

2012年1月5日 admin 没有评论

今天登录数据库提示“ORA-28001  the password has expired”, 这个是由oracle 11 增加的安全设定,一个用户密码超过180天没有修改,就不允许登录了。

解决方法很简单,执行SQL语句修改密码就可以登录了

ALTER USER cntob IDENTIFIED BY xianzhong123pp ;

其中 cntob 是用户名 xianzhong123pp  是数据库密码

 

查询系统密码过期策略

SELECT * FROM dba_profiles WHERE profile=’DEFAULT’ AND resource_name=’PASSWORD_LIFE_TIME’

如果不想使用系统默认180天,可以通过一下语句修改成不限制,为了安全,不建议将PASSWORD_LIFE_TIME值设置成UNLIMITED,建议定期修改密码,防止被爆库减少损失。

ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED

SS-NODE3 这台服务器已经运行了180天了, uptime 时间是88天。系统8G 内存, CPU 是 x3430 的4核心.硬盘是3 x 1T  组成Raid 5 阵列。系统负载很低, 基本不超过1。

 

数据库服务器

 

oracle服务器

分类: VPS 标签: ,

N17服务器HE线路

2011年12月16日 admin 没有评论

  12月16号订购N17母鸡16G内存,测试。

image  

 

image

 

 

image

 

image

分类: VPS 标签: , ,

Linux 使用LVM扩充硬盘空间

2011年6月10日 admin 没有评论

通过df -h 命令可以查看系统现有的磁盘空间的使用情况。

现有的磁盘空间的使用情况

如果我们有为使用的磁盘空间我们可以通过 fdisk -l 命令查看

 

查看未使用的磁盘空间

 

在这里我们可以查看到有 /dev/xvdc  磁盘没有分配, 大小是43G 的空间。

我们现在启用这个磁盘空间, 首先格式化

输入命令  fdisk /dev/xvdc

Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won’t be recoverable.
The number of cylinders for this disk is set to 2871.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0×0000 of partition table 4 will be corrected by w(rite)

Command (m for help): n   #输入n,新建分区

Command action
   e   extended
   p   primary partition (1-4)
   p  #输入P,主分区


Partition number (1-4): 1   #目前是xvdc第一个分区输入1

First cylinder (1-2871, default 1):  #敲回车,默认就行了
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-2871, default 2871):
Using default value 2871

Command (m for help): t   #这里输入t,指定分区的格式为8e (LVM)
Selected partition 1
Hex code (type L to list codes): 8e
Changed system type of partition 1 to 8e (Linux LVM)

Command (m for help): #这里输入w,保存退出
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.

磁盘分区

 

我们通过 fdisk -l 可以看到  /dev/xvdc1  这个分区 ,分配类型是 8e  LVM 系统。

 

再次查看磁盘空间

 

下一步,我们对磁盘进行扩容

输入 vgs

查看卷组名称,这里是 VolGroup00

查看卷组名称

 

创建物理卷,并将物理卷加入到组VolGroup00

 

[root@MyVPS ~]# vgs
  VG         #PV #LV #SN Attr   VSize VFree
  VolGroup00   2   2   0 wz–n- 9.84G    0
[root@MyVPS ~]# pvcreate /dev/xvdc1
  Physical volume "/dev/xvdc1" successfully created
[root@MyVPS ~]# vgextend VolGroup00 /dev/xvdc1
  Volume group "VolGroup00" successfully extended
[root@MyVPS ~]#

 

通过执行vgdisplay查看卷组可用空间

[root@MyVPS ~]# vgdisplay
  — Volume group —
  VG Name               VolGroup00
  System ID
  Format                lvm2
  Metadata Areas        3
  Metadata Sequence No  6
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                3
  Act PV                3
  VG Size               49.81 GB
  PE Size               32.00 MB
  Total PE              1594
  Alloc PE / Size       315 / 9.84 GB
  Free  PE / Size       1279 / 39.97 GB
  VG UUID               ONGPxy-HBvY-xrrQ-IjEW-PIiO-2cX7-tg6tuI

[root@MyVPS ~]#

 

再倒数第二行我们看到   Free  PE / Size       1279 / 39.97 GB , 有39.97的空间可以用。

我们通过    lvresize -L +39.96G /dev/VolGroup00/LogVol00 命令, 最卷进行扩容。

注意这里是 39.96 比 上面看到的 39.97要稍为小一点。

 

  [root@MyVPS ~]# lvresize -L +39.96G /dev/VolGroup00/LogVol00
  Rounding up size to full physical extent 39.97 GB
  Extending logical volume LogVol00 to 49.56 GB
  Logical volume LogVol00 successfully resized

 

最后使用 resize2fs /dev/VolGroup00/LogVol00  更新分区大小, 这一步时间有点长。

[root@MyVPS ~]# resize2fs /dev/VolGroup00/LogVol00
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/VolGroup00/LogVol00 is mounted on /; on-line resizing required
Performing an on-line resize of /dev/VolGroup00/LogVol00 to 12992512 (4k) blocks.
The filesystem on /dev/VolGroup00/LogVol00 is now 12992512 blocks long.

[root@MyVPS ~]#

操作到这一步就结束了 。

我们通过 df -h 查看磁盘空间

重新查看磁盘空间

分类: Linux技术, VPS 标签: , ,

DA安装过程

2011年5月13日 admin 没有评论

在我们这里购买VPS的1G以上型号的都送DA面板使用,在这里把安装过程记录下载。

首先登陆SSH,首先安装编译组件,命令:

 

yum -y install gcc gcc-c++ flex make perl

 

 

然后更新系统 ,命令:

 

yum update

 

更新系统

更新系统

查看硬盘和内存

查看硬盘和内存

查看CPU型号

 查看CPU型号

 

开始执行DA安装脚本

 

wget http://www.directadmin.com/setup.sh

chmod 755 setup.sh

./setup.sh

 

开始安装DA脚本

 

此时系统会提示你输入DirectAdmin的Client ID和License ID,这2个ID我们提供。
然后输入Hostname了,注意这里不要输入主域名,不然以后绑定会照成麻烦:例如da.cntob.com

输入DA授权

然后他会提示Is this correct? 请输入y

Xen的DA会自动识别VPS主IP,让你确认IP和授权类型
输入后会再次提醒Is this correct? 请输入y

选择主IP

 

 

如果您的VPS是OpenVZ虚拟化的系统会无法读出eth0的IP 所以您需要手工输入您的VPS主IP

 

 

DA安装模式

DA安装模式

这里选择DA的安装模式, 1是采用软件包的安装模式  2是采用编译安装的模式。  在这里我们推荐系统编译安装, 因为可以使用最新的源码,处理已经存在的BUG。

 

Would you like the default settings of apache 2.2 and php 5 cli?

 

如果选择Y,系统会默认安装cli模式,并且安装常用组件, 如果想自定义安装组件请输入n

 

 

这个选项很重要, DA有2种运行模式, 1是 cli 模式 2是CGI模式。

cli模式是共享进程,所有用户的PHP文件都是一个账户执行,很难找到那个占用资源高,如果自己用建议使用cli模式, 性能最大化

CGI独立模式,一般一个CGI程序只能处理一个用户请求。这样,当用户请求数量非常多时,会大量占用系统的资源,如内存、CPU时间等,造成效能低下。每个用户有自己的进程,所以提供虚拟主机可以使用 CGI模式, 查到那个用户占用的资源多。

 

然后就是系统编译程序

系统编译程序

安装成功通过端口2222登录系统

通过端口2222登录系统

 

对于openvz要修改虚拟网卡名称,

 

/usr/local/directadmin/conf/directadmin.conf

ethernet_dev=eth0 修改成 虚拟网卡名称 venet0:0

service directadmin restart

yum clean all

分类: Linux技术, VPS 标签: , , ,

15刀一年的VPS出问题了

2011年4月23日 admin 没有评论

The server has crashed and does not seem recoverable.
We will need to order new parts to replace  the defect hardware and get it installed ot the server.
Once the hardware has been upgraded we will create a new VPS, you may be assigned you a new IP.
Best regards
Sean C

分类: VPS 标签:

thrustvps 7.95刀 1G的VPS 非常优惠

2011年4月14日 admin 没有评论

thrustvps 7.95刀 1G的VPS 非常优惠,可以安装Windows 和Linux ,机房在达拉斯.

 

KVM Released!

We are pleased to announce the immediate availability of our new KVM platform. We are offering to our existing (and new) clients

1Gb RAM

30GB HDD

1TB Transfer

UK Based (Dallas will be launched in the next few days)

Windows or Linux

£3.95 / $7.95/mo

Order From:  https://clients.thrustvps.com/cart.php?a=add&pid=215

We have 100 of these in stock

Please reply to this email if you have any questions or feel free to forward it to friends/collegues

分类: VPS 标签:

HR发来的消息

2011年4月14日 admin 没有评论

     HR发消息说,服务器IO负载比较高,今后准备换更快的硬盘,把IO降低下来。 估计会采用R0或者R10,或者采用阵列。

This is a very quick update that i am aware of the high loads on several servers, i am working to locate the root as we speak. I will be using our Facebook Page at  http://www.facebook.com/hostrail to update if we require to take any servers offline.

My promise at this stage is that i will fix the high loads on all Servers by the end of this week. I want quick servers and fast Disk I/O. I will use all means to achieve this, whatever is necessary i will do.

My target is: Fast Servers and Fast Disk I/O – most Servers are too slow currently and i cannot accept this any further.

Thats all for now, tickets are being delayed to be replied to due to these issues – I will personally fix all servers to be fast, once this is done tickets reply times will return to normal – more than 60% of our tickets are regarding slow servers so this is a big issue both for myself and youselves.

Thats all for now.

Best Regards,

Constantinos Coudounaris

Chief Executive Officer

HostRail.com

分类: VPS 标签:

关注波特兰机房

2011年4月4日 admin 没有评论

最近几天关注DirectSpace 比较多,这家公司经营 Portland 机房。波特兰属于俄勒冈地区,在美国西海岸只有加州、华盛顿州及俄勒冈州三个州,选择机房肯定从这3个地方选择,波特兰为俄勒冈州最大城市,比西雅图更接近中美枢纽节点。

现在叫波兰特的地名的有好几个:

下面我们上地图:

中国到波兰特的地理情况

波兰特靠近西雅图

波兰特周边

波兰特机房到电信的下载速度,我这边是电信ADSL,速度还可以。

波兰特机房PING值稳定,235 这个值可以说速度是不错的。

分类: VPS 标签:

DS服务商26号母鸡给力了

2011年4月4日 admin 没有评论

这2天代购DS的非常多,系统分配 主要集中在   15号母鸡,和 26号母鸡,前段时间26号母鸡性能比较悲剧,退了一批,从最近的表现26号母鸡的性能恢复了。

DS26号母鸡跑分

DS26号母鸡分配的VPS

15号节点的VPS

分类: VPS 标签:

DS服务器6号节点问题

2011年4月3日 admin 没有评论
最近DS的6号服务器硬盘损坏,数据肯定是拿不回来了,因为是非托管的服务,DS不负责备份数据的,要备份数据还是靠自己。一下是DS发的通知:
Hello
At this time we have recreated your VPS because of the recent node6 hard drive failure. It is now available for you in your account.
Please note that all customer data backups are the responsibility of the customer since we provide for an unmanaged service.
We cannot provide you with a data backup at this time.
Regards
Edward Evi
DirectSpace Team
DirectSpace Networks, LLC.

Hello
At this time we have recreated your VPS because of the recent node6 hard drive failure. It is now available for you in your account.
Please note that all customer data backups are the responsibility of the customer since we provide for an unmanaged service.
We cannot provide you with a data backup at this time.
RegardsEdward EviDirectSpace TeamDirectSpace Networks, LLC.

分类: VPS 标签: