创建和管理LVM
要创建一个LVM系统,一般需要经过以下步骤:
1、 创建分区
使用分区工具(如:fdisk等)创建LVM分区,方法和创建其他一般分区的方式是一样的,区别仅仅是LVM的分区类型为8e。
2、 创建物理卷
创建物理卷的命令为pvcreate,利用该命令将希望添加到卷组的所有分区或者磁盘创建为物理卷。将整个磁盘创建为物理卷的命令为:
1 | # pvcreate /dev/hdb |
将单个分区创建为物理卷的命令为:
1 | # pvcreate /dev/hda5 |
一个Web开发者的博客
创建和管理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’
Recent Comments