Archive

标签为 ‘UBUNTU’的文章

How to resize LVM on Centos7/Ubuntu14.04 ?

After install Centos7, found disk size less, so I need resize the disk, you can use some tools to achieve the function, e.g: GParted or disk-genius. But if your Server disk format is LVM, you can easy to manual adjust that. I don’t know how to resize LVM by Gparted or disk-genius. For this article, will discuss how to adjust Centos7/Ubuntu14.04 by LVM. That should same action/command in Centos and Ubuntu.

If you want to check steps in Ubuntu, can check this attachment: lvm-resize-ubuntu14.04

1. Follow disk info

Check system contents by “sudo df -H”, check all disk status by “sudo fdisk -l”.

[root@frank ~]# df -H
Filesystem             Size  Used Avail Use% Mounted on
/dev/mapper/myvg-root  7.4G  7.4G  4.0M 100% /
devtmpfs               2.1G     0  2.1G   0% /dev
tmpfs                  2.1G  250k  2.1G   1% /dev/shm
tmpfs                  2.1G  9.5M  2.1G   1% /run
tmpfs                  2.1G     0  2.1G   0% /sys/fs/cgroup
/dev/mapper/myvg-home  731M  140M  591M  20% /home
/dev/sda1              521M  126M  396M  25% /boot
/dev/sr0               4.2G  4.2G     0 100% /run/media/root/CentOS 7 x86_64

2. Relationship for VG, PV and LV

完整阅读

0

Ubuntu 14.04 General config

Not use ubuntu for long time… some useful commands had forgot, summary again:

1. Permit root login
gedit /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf –> “greeter-show-manual-login=true”
sudo passwd root
reboot

2. Change language
gedit /etc/default/locale –> change what do you want
reboot

3. Script couldn’t run on linux “bad interpreter: No such file or directory”
that should dos format, need change to unix format
vi xxx
check format by “:set ff” or “:set fileformat”
change format by “:set ff=unix” or “:set fileformat=unix”
:wq

4. Enable ssh service
sudo apt-get install openssh-server
gedit /etc/ssh/sshd_config –> “PermitRootLogin yes”
restart by “/etc/init.d/ssh restart”
check by “ps -ef|grep ssh”
reboot

5. Disable firewall
check whether enable by “ufw status”
disable by “ufw disable”

6. Change update source
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo vim /etc/apt/sources.list
sudo apt-get update

Refer to default source, can reference this article.

7. Change ip address, add/del GW route, add text to file
sudo ifconfig eth1 up
sudo ifconfig eth0 down
sudo ifconfig eth1 up 10.0.0.30 netmask 255.255.255.128
sudo route add -net 0.0.0.0/0 gw 10.0.0.126 dev eth1
sudo echo ‘nameserver x.x.x.x’ >> /etc/resolv.conf

8. Install DHCP Server

sudo apt-get install isc-dhcp-server
vim /etc/default/isc-dhcp-server

0

Ubuntu 64bit 桌面版 4G内存只支持3.5G [已解决]

刚刚注意到,我的系统是64bit的桌面版,发现4G的内存只支持了3.5G。
不明白是怎么回事。。。
在网上有人说只要是64bit的系统,就可以支持4G及更大的内存。
另外还有人说只有ubuntu 64bit server版的才支持,不解中,说法真多呀。。。
根据资料,我的主板最多能支持16G的内存。
我的主板是华硕的:P5N7A-VM
完整阅读

0

Ubuntu AR5001X+ 无线网卡性能 续

已经对AR5001X+在linux下的性能彻底失望了,我又测试了下,发现问题很严重,但又不清楚具体是什么问题,难道无线网卡性能差,可以影响整个网络的性能?!

以下是Topology:

                                          +------+
                                          |Remote|
                                          |  PC  |
                                          +--+---+
                                             |
                                             |
                                             |
                                             |
                                            -+--
+------------+                          ///-    -\\\
| ubuntu9.10 |        +---------+      /            \
| Wifi:54/70 |  WLAN  |         |     |              |
| +--------+ + - - - -+ TPLink  +-----|  Internet    |
| | Vmware | |        +         |     |              |
+-+--------+-+        +---------+      \            /
  | Olive  |                            \\\-    -///
  +--------+                                ----

完整阅读

0

Ubuntu AR5001X+ 无线网卡性能

由于自己在家里装了台服务器,需要远程访问,但发现telnet访问会有hang的现象。
删除字符,或是输入字符都会有停顿的现象。
局域网也有通向的问题,只要用无线就有问题,如果换有线就没问题。

经测试,怀疑路由器性能问题(TL-WR641G/642G),毕竟用了2年多了,再加上TP link工程师也测试过,发现确实有这种问题,但不是明显。所以就买了个linksys WRH54G来做测试。
不巧的是,问题可能出在网卡驱动上(TL-WN650G),而不是Router本身的问题(暂时是这样)
下面是故障的详细troubleshooting过程:

注:我的服务器是ubuntu 9.04 64bit,linux效率高!
打个比方,在T60的windows上dynamips可以模拟6台,linux环境,可以模拟到13台

完整阅读

0