时间: 2011-10-20 - 分类: 榆树网-系统 - 无评论 - 6,526 views
逻辑卷镜像功能类似Raid1,能有效提高读取效率。
接下来介绍如何为已创建的逻辑卷创建镜像
查看当前pv状态
# pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 lvm2 a- 15.51g 15.51g
/dev/sdb VolGroup lvm2 a- 16.00g 500.00m
/dev/sdc VolGroup lvm2 a- 16.00g 16.00g
从上面可以看出,物理卷sdc暂未使用,并且有足够的空间为VolGroup中的任何一个逻辑卷做镜像,下面用lvconvert创建镜像。
# lvconvert -m 1 VolGroup/lv_root
Insufficient suitable allocatable extents for logical volume : 3466 more required
Unable to allocate extents for mirror(s).
系统却提示没有足够可分配的空间用于创建逻辑卷的镜像。
经过试验发现,要创建逻辑卷镜像,得满足一定的条件,每个带镜像的逻辑卷,至少需要占用三个物理卷(如果没有3个物理卷,将无法创建逻辑卷镜像,试验出来的,欢迎拍砖),每个镜像各占一个pv,mirror log还得占用一个pv,好在mirror log占用比较小的空间,所以对sdc分区后即可实现。
# pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 lvm2 a- 15.51g 15.51g
/dev/sdb VolGroup lvm2 a- 16.00g 500.00m
/dev/sdc1 VolGroup lvm2 a- 496.00m 496.00m
/dev/sdc2 VolGroup lvm2 a- 15.51g 15.51g
这里sdc2用于做镜像,sdc1用来放mirror log,当然,这些系统会自动分配,无需人工干预。
创建逻辑卷镜像
# lvconvert -m 1 VolGroup/lv_root
VolGroup/lv_root: Converted: 0.0%
VolGroup/lv_root: Converted: 0.6%
VolGroup/lv_root: Converted: 1.2%
VolGroup/lv_root: Converted: 1.7%
VolGroup/lv_root: Converted: 2.3%
VolGroup/lv_root: Converted: 2.8%
VolGroup/lv_root: Converted: 3.4%
查看状态
# lvs -a -o +devices
LV VG Attr LSize Origin Snap% Move Log Copy% Convert Devices
lv_root VolGroup mwi-ao 13.54g lv_root_mlog 12.15 lv_root_mimage_0(0),lv_root_mimage_1(0)
[lv_root_mimage_0] VolGroup Iwi-ao 13.54g /dev/sdb(0)
[lv_root_mimage_1] VolGroup Iwi-ao 13.54g /dev/sdc2(0)
[lv_root_mlog] VolGroup lwi-ao 4.00m /dev/sdc1(0)
lv_swap VolGroup -wi-ao 1.97g /dev/sdb(3466)
注意查看上面的lv_root_mimage_0、lv_root_mimage_1和lv_root_mlog都在不同的pv上。
Tags: CentOS, Linux, LVM, 逻辑卷管理, 镜像
时间: 2010-10-29 - 分类: 榆树网-系统, 榆树网-网络 - 无评论 - 832 views
http://download.softagency.net/
从官方下载MySQL程序还要填写一堆报表,麻烦,从这个站点就可以直接下载。
Tags: Download, MySQL, 下载, 镜像
时间: 2009-11-24 - 分类: 榆树网-系统 - 无评论 - 6,054 views
This document describes how to build *BSD (FreeBSD, NetBSD and OpenBSD)
CVSup mirror site.
Comments and suggestions are always welcome. Read the rest of this entry »
Tags: cvsup, FreeBSD, mirror, 镜像
时间: 2009-10-22 - 分类: 榆树网-网络 - 无评论 - 575 views
以前在网上找到的一个升级NOD32病毒库的脚本,在使用过程中不断的对其进行修正,最终生成了这个版本,我个人认为比较满意,暂时符合我的要求。
Read the rest of this entry »
Tags: Nod32, 升级服务, 病毒库, 脚本, 镜像
时间: 2009-10-01 - 分类: 榆树网-网络 - 无评论 - 788 views
Running a public MySQL mirror currently requires about 170GB of storage. The bandwith that will be used is dependent on the number of mirrors in your area, and the number of users in your area who choose to use your mirror.
We have a few primary mirrors that are used to provide data for the other mirrors, using the rsync program. The mirrored site consists only of static HTML, images, and other files, so there are no other special server requirements.
Read the rest of this entry »
Tags: howto, mirror, MySQL, 镜像
时间: 2009-09-23 - 分类: 榆树网-杂项 - 2 评论 - 1,208 views
经过两天的等待,终于在今天晚上在CPAN的镜像网站列表上看到这个镜像站点了。
Read the rest of this entry »
Tags: CPAN, mirror, 镜像
时间: 2009-09-23 - 分类: 榆树网-杂项 - 无评论 - 668 views
经过与官方站点的几封邮件交涉,Clamav镜像站点终于开始工作了,并且可以在监控中看到服务器的状态。
站点URL: http://clamavdb.wenzk.com
状态监控URL: http://www.clamav.net/mirrors.html

Tags: clamav, mirror, 镜像
时间: 2009-09-22 - 分类: 榆树网-网络 - 无评论 - 838 views
CentOS welcomes new mirror sites.
If you are considering setting up a public mirror site for CentOS please follow these guidelines to make sure that your mirror is consistent with the other mirror sites.
As a first step if you are not already subscribed, subscribe to the CentOS-mirror mailing list: http://lists.centos.org/mailman/listinfo/CentOS-mirror . Read the rest of this entry »
Tags: CentOS, Linux, mirror, 镜像
时间: 2009-09-21 - 分类: 榆树网-网络 - 无评论 - 567 views
Mirroring the Virus Database
Luca Gibelli
Some guidelines for people interested in contributing
to the distribution of ClamAV virus database.
1 Introduction
1.1 This doc
Read the rest of this entry »
Tags: clamav, mirror, 镜像