创建和管理LVM
要创建一个LVM系统,一般需要经过以下步骤:
1、 创建分区
使用分区工具(如:fdisk等)创建LVM分区,方法和创建其他一般分区的方式是一样的,区别仅仅是LVM的分区类型为8e。
2、 创建物理卷
创建物理卷的命令为pvcreate,利用该命令将希望添加到卷组的所有分区或者磁盘创建为物理卷。将整个磁盘创建为物理卷的命令为:
1 | # pvcreate /dev/hdb |
将单个分区创建为物理卷的命令为:
1 | # pvcreate /dev/hda5 |
Fred Chu's Weblog on another way
创建和管理LVM
要创建一个LVM系统,一般需要经过以下步骤:
1、 创建分区
使用分区工具(如:fdisk等)创建LVM分区,方法和创建其他一般分区的方式是一样的,区别仅仅是LVM的分区类型为8e。
2、 创建物理卷
创建物理卷的命令为pvcreate,利用该命令将希望添加到卷组的所有分区或者磁盘创建为物理卷。将整个磁盘创建为物理卷的命令为:
1 | # pvcreate /dev/hdb |
将单个分区创建为物理卷的命令为:
1 | # pvcreate /dev/hda5 |
> I have enabled skeleton-pair funcionality with what I have found in here:
> http://littlechina.org/~cmarcelo/paren-experiment.el
> It works in most modes, but in C++ mode it only works for [ and not for (,{
> or “.
Try:
1 2 | (define-key c-mode-base-map (kbd "(") #'skeleton-pair-insert-maybe) ;; same for the other keys here... |
or
1 2 3 4 5 | (add-hook 'c-mode-common-hook #'(lambda () (local-set-key (kbd "(") #'skeleton-pair-insert-maybe) ;; same for the other keys here... )) |
If you don’t like the way skeleton decides whether to insert a pair or
not but to insert a pair always use `insert-pair‘ instead of
`skeleton-pair-insert-maybe‘.
Some thing others.
Use python to do tiny proxy server by example.
Continue reading ‘Proxy and Port Mapping With Python’
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | +-----------+------------------------------------+ | Year | Hosting / Server | +===========+====================================+ | 2005.10 | Paangood Cpanel Hosting | +-----------+------------------------------------+ | 2006.11 | Dreamhost | | 2007.11 | Shareing Server | +-----------+------------------------------------+ | 2007.12 | Paangood | | 2008.5 | Cpanel Hosting | +-----------+------------------------------------+ | 2008.7 | Hostmonster | | 2009.6 | Cpanel Hosting | +-----------+------------------------------------+ | 2009.6 | Sourceforge Developer Hosting | +-----------+------------------------------------+ |
不知道是pyCURL还是Curl本身的原因,用pycurl下载 WMA(只测试了wma文件)就是不对,不能播放,好像是wma文件格式被改动了?怎么回事?换成Cygwin一切正常,在Linux下也正常。
结束了三年在成都的生活回到重庆已经有一个月了,还算习惯,成都的确是一座很休闲的城市,至少对于几乎每天都要6:40起床去做交通车上班的人来说是这样,在成都却是每天9点起床,9:30上班。不知道重庆人与成都人之间的差异就是从这些微妙之处开始的。
重庆的IT业非常落后,可能比贵州和云南好一点吧,不过象云南这样边境省份可能也不比重庆差。正大软件还算是重庆IT行业中的佼佼者,但是待遇却还是不怎么好。可能这和重庆的生活水平相关。这也说明IT产业在重庆还是有潜力的。 Continue reading ‘总结’
Recent Comments