ie10

网友找老易买了个KT美国云主机,然后跟我说,这次怎么不一样,【能帮我上去 下个浏览器和qq吗  ie那个所有网都连不上 说什么保护 不像别的 添加安全就可以上了】,老易上去看了下,用的是ie10,默认有增强的安全设置,如果嫌麻烦,可以设置取消的。找到服务器管理,找到服务器摘要,往下看,ie增强的安全设置,再往右边看,点:配置ie ESC。然后按照截图的样子,把针对管理员和用户的ie增强安全设置关闭就可以了。

前面其实也发了2个教程了。http://www.v2kt.com/archives/446.html是新建lv磁盘,然后挂载某个目录,相当于新建一个LV磁盘。http://www.v2kt.com/archives/451.html是存在多余的VG空间,直接可以扩容现有的LV磁盘。本教程是不存在多余的VG空间,要先创建PV,然后扩容VG空间后,再扩容现有的LV分区。

先查看下磁盘分区情况:

root@103 [/]# fdisk -l

Disk /dev/sda: 171.8 GB, 171798691840 bytes
255 heads, 63 sectors/track, 20886 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: 0x000049b5

Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 5222 41430016 8e Linux LVM

Disk /dev/mapper/VolGroup-lv_root: 40.3 GB, 40340815872 bytes
255 heads, 63 sectors/track, 4904 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/mapper/VolGroup-lv_swap: 2080 MB, 2080374784 bytes
255 heads, 63 sectors/track, 252 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

再df -h看看文件系统:

root@103 [~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
37G 7.2G 28G 21% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
/dev/sda1 485M 62M 398M 14% /boot
/usr/tmpDSK 1.5G 35M 1.4G 3% /tmp

实际上160G的磁盘,根目录只挂载了37G,客户是做虚拟主机业务的,当然磁盘越大越好,肿么办?只有把现有的LV磁盘VolGroup-lv_root分区搞大,才是硬道理。也就是扩容下LV磁盘。

阅读更多

这次新上架一个KT服务器,官方技术还是把根目录只分区了20G,按照普通用户的习惯,所有资料都放根目录,显然空间是不够的。利用lvresize命令,可以调整LV逻辑卷大小,调整完毕后,用resize2fs更新下文件系统大小,就可以了。具体可以参考下面的操作过程。

[root@SAT18-C53-5 /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rootvg-rootlv
20G 2.0G 17G 11% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
/dev/sda1 239M 33M 194M 15% /boot
/dev/mapper/rootvg-tmplv
2.9G 12M 2.8G 1% /tmp
/dev/mapper/rootvg-usrlv
20G 1.2G 18G 7% /usr
/dev/mapper/rootvg-varlv
4.8G 148M 4.5G 4% /var

lvresize -l +13232 /dev/rootvg/rootlv

[root@SAT18-C53-5 /]# lvresize -l +13232 /dev/rootvg/rootlv
Size of logical volume rootvg/rootlv changed from 20.00 GiB (640 extents) to 433.50 GiB (13872 extents).
Logical volume rootlv successfully resized

resize2fs /dev/rootvg/rootlv

[root@SAT18-C53-5 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rootvg-rootlv
427G 2.4G 403G 1% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
/dev/sda1 239M 33M 194M 15% /boot
/dev/mapper/rootvg-tmplv
2.9G 12M 2.8G 1% /tmp
/dev/mapper/rootvg-usrlv
20G 1.2G 18G 7% /usr
/dev/mapper/rootvg-varlv
4.8G 151M 4.4G 4% /var

附上pvdisplay,vgdisplay,lvdispaly信息:

阅读更多

买了个KT服务器,KT官方技术只给/home分了2G,也是醉了。教程参考http://jingyan.baidu.com/article/6079ad0e9d7d9e28fe86db11.html

创建PV:

扫面系统PV:pvscan

查看PV:pvdisplay

[root@DQ5620-C5-4-SAS ~]# pvscan
PV /dev/sda2 VG rootvg lvm2 [464.47 GiB / 425.47 GiB free]
Total: 1 [464.47 GiB] / in use: 1 [464.47 GiB] / in no VG: 0 [0 ]
[root@DQ5620-C5-4-SAS ~]# pvdisplay
— Physical volume —
PV Name /dev/sda2
VG Name rootvg
PV Size 464.48 GiB / not usable 16.00 MiB
Allocatable yes
PE Size 32.00 MiB
Total PE 14863
Free PE 13615
Allocated PE 1248
PV UUID pU8XYG-Au6O-vNrY-CMMa-2dzD-MuVP-ywykAh

阅读更多