新开一帖,vxvm
tomer
新开一帖,vxvm
我现在有个卷组datadg,上面有两块盘datadg01,datadg02.现在想建立一个卷newvol,要求做mirror,并且使其有快速恢复功能,需要的语句是什么?
briangao
First you need to realize that there are different types of “fast resync”
1. DRL (Dirty Region Log) is used to fast resync the mirror after a system crash or restart.
2. DCO (Disk Change Object) is used by FR (Fast Resync) feature during snapshot and mirror splitting and rejoining operations. DCO needs additional disk space for DCO volume and FR needs additional license.
To create a mirrored volume with DRL
vxassist -g datadg make newvol 100m layout=mirror logtype=drl datadg01 datadg02
To enable persistent FR with DCO on a volume:
1. vxdg list datadg|grep version and make sure the version is 90 or above. Otherwise, you need to update diskgroup
2. Turn off Non-Persistent FastResync: vxvol -g datadg set fastresync=off newvol
3. Create DCO volume: vxassist -g datadg addlog newvol logtype=dco datadg01 datadg02
4. Turn on Persistent FastResync: vxvol -g datadg set fastresync=on newvol
[[i] 本帖最后由 briangao 于 2008-5-29 14:58 编辑 [/i]]
l5205
收藏,版主可否解释一下第二种方法。什么是snapshot,mirror splitting,rejoining。
briangao
[quote]收藏,版主可否解释一下第二种方法。什么是snapshot,mirror splitting,rejoining。[/quote]
snapshot is a way to do a backup by taking an image (or "picture") of the volume at a particular time. One way of doing so is to attach another plex to your mirrored voulme so that all data can be synced (copied) to the snapshot plex. You can also do a fast sync, copying only the changes to a separate volume. You can assess the data that is not changed from its original volume.
split/rejoin is to break and re-establish the mirror for reasons such as maintenance, backup etc.
When the mirror is split, the data is no longer written to both disks in the mirrored volume. Only one disk gets the updates. When you decided that you want the second disk to rejoin the mirror, system needs to copy the updated data from the first disk to the second disk (resync). You can either copy all the data to the second disk or you can copy only the changes to the second disk (fast resync)
tomer
[quote]原帖由 [i]briangao[/i] 于 2008-5-29 23:44 发表 [url=http://bbs.chinaunix.net/redirect.php?goto=findpost&pid=8468406&ptid=1117757][img]http://bbs.chinaunix.net/images/common/back.gif[/img][/url]
First you need to realize that there are different types of “fast resync”
1. DRL (Dirty Region Log) is used to fast resync the mirror after a system crash or restart.
2. DCO (Disk Change Ob ... [/quote]
老大,我的版本是140.
dco比DRL有什么优势?
另外我想问下,是不是默认的就是DRL
而且你说的"FR needs additional license." 应该是不会另外需要key的,现在storage foundation 5使用中,好象没有需要key的
Turn off Non-Persistent FastResync: vxvol -g datadg set fastresync=off newvol?是nofastresync=off?
[[i] 本帖最后由 tomer 于 2008-5-30 09:20 编辑 [/i]]
briangao
[quote]dco比DRL有什么优势?[/quote]As I explained earlier, DRL and DCO are used for different purpose. DRL is used for resync after a system crash or restart. DCO is used for resync after you break the mirror and re-join the mirror.
[quote]另外我想问下,是不是默认的就是DRL[/quote]no
[quote]而且你说的"FR needs additional license." 应该是不会另外需要key的,现在storage foundation 5使用中,好象没有需要key的[/quote]My understanding is that you will need additional key. You may want to double check with your sales person
[quote]Turn off Non-Persistent FastResync: vxvol -g datadg set fastresync=off newvol?是nofastresync=off?[/quote]fastresync=off . If fast resync is already turned on without DCO volume, you need to turn it off, add DCO volume and then turn it on again.
tomer
那您的意思是说DCO和DRL可以同时存在同一个卷中?
风之幻想
当然,可以.我记得我在我关于veritas volume manger管理的文章中已经写过这些相关的内容了.
tomer
也就是说dco和DRL会根据各自的环境进行同步,如是重起,还是重re-join,自动判断?.
如果卷中既没有dco又没有DRL,系统如何同步?(有这种情况吗)
briangao
[quote]如果卷中既没有dco又没有DRL,系统如何同步?(有这种情况吗)[/quote]full copy. It will be slow.
briangao
[quote]当然,可以.我记得我在我关于veritas volume manger管理的文章中已经写过这些相关的内容了.[/quote]风版, Long time no talk. Hope everything is well
风之幻想
DRL是你在用vxassist建立卷是默认会添加的呀.如果没有那就需要须将卷的所有镜像都恢复成一致的状态。恢复过程通过在卷的镜像之间复制卷的全部内容来完成。此进程可能要花很长时间,并且占用大量 I/O。卷中已经一致的区域可能也需要恢复。
风之幻想
[quote]原帖由 [i]briangao[/i] 于 2008-5-30 11:14 发表 [url=http://bbs.chinaunix.net/redirect.php?goto=findpost&pid=8470248&ptid=1117757][img]http://bbs.chinaunix.net/images/common/back.gif[/img][/url]
风版, Long time no talk. Hope everything is well [/quote]
是呀.很长时间不见了.高大哥.最近过的如何.对了,把你的E-mail地址给我.给我发个站内短信.对了,还有MSN.最近估计有事情需要向您请教.
tomer
想要给已经存在的已经镜像的卷加DCO.应该是以下步骤吧
1 Turn off Non-Persistent FastResync: vxvol -g datadg set fastresync=off newvol
2. Create DCO volume: vxassist -g datadg addlog newvol logtype=dco datadg01 datadg02
3. Turn on Persistent FastResync: vxvol -g datadg set fastresync=on newvol
追加问题:em06:
我发现我的一个镜像卷中其中的一块盘有DCO,另一块没有,该怎么办?(刚刚在图形上面,我改好了,现在dco的copy数是2了)
请问在命令行下如何写:
[[i] 本帖最后由 tomer 于 2008-5-30 11:38 编辑 [/i]]
briangao
[quote]想要给已经存在的已经镜像的卷加DCO.应该是以下步骤吧
1 Turn off Non-Persistent FastResync: vxvol -g datadg set fastresync=off newvol
2. Create DCO volume: vxassist -g datadg addlog newvol logtype=dco datadg01 datadg02
3. Turn on Persistent FastResync: vxvol -g datadg set fastresync=on newvol
[/quote][img]http://www.getsmile.com/emoticons/funny-smileys-68129/yes.gif[/img][img]http://www.getsmile.com/emoticons/funny-smileys-68129/yes.gif[/img][img]http://www.getsmile.com/emoticons/funny-smileys-68129/yes.gif[/img]
[quote]我发现我的一个镜像卷中其中的一块盘有DCO,另一块没有,该怎么办?[/quote]How did you find out? Please post command and result.
风之幻想
要将 DCO 对象和 DCO 日志卷添加到现有卷(现有卷可能已经启用了脏区日志 (DRL)),
请使用下列过程:
1. 确保包含现有卷的磁盘组已经升级到至少 90 版。使用下面的命令检查磁盘组的版本:
# vxdg list diskgroup
若要将磁盘组升级为最新版本,请使用如下命令:
# vxdg upgrade diskgroup
2. 如果原始卷上当前启用了非保留式快速再同步,请使用下面的命令将其关闭:
# vxvol [-g diskgroup] set fastresync=off volume
如果不能确定是哪个卷启用了非保留式快速再同步,请使用下面的命令获得这些卷的
列表:
# vxprint [-g diskgroup] -F "%name" /-e “v_fastresync=on && !v_hasdcolog”
使用下面的命令将 DCO 和 DCO 日志卷添加到现有卷:
# vxassist [-g diskgroup[ addlog volume logtype=dco /
[ndcolog=number] [dcologlen=size]
镜像 DCO 日志卷中的默认 plex 数为 2。可以使用 ndcolog 属性指定不同的 number。
建议配置的 DCO plex 数与卷中的现有数据和快照 plex 数相同。例如,当将 DCO 添加到 3 路镜像卷时,指定 ndcolog=3。
每个 plex 的默认大小为 132 个块。可以使用 dcologlen 属性指定不同的 size。如果指定,则 plex 大小必须是 33 个块的整数倍,范围从 33 到 2112 个块,最多为 2112 个块。
例如,若要将 plex 大小为 264 个块的 DCO 对象和 DCO 日志卷添加到卷 myvol,使用此命令:
# vxassist addlog myvol logtype=dco dcologlen=264
tomer
[quote]原帖由 [i]briangao[/i] 于 2008-5-30 11:39 发表 [url=http://bbs.chinaunix.net/redirect.php?goto=findpost&pid=8470548&ptid=1117757][img]http://bbs.chinaunix.net/images/common/back.gif[/img][/url]
[img]http://www.getsmile.com/emoticons/funny-smileys-68129/yes.gif[url]http://www.getsmile.com/emoticons/funny-smileys-68129/yes.gif[img]http://www.getsmile.com/emoticons/funny-smileys-68129/yes.gif[/img][/url][/img]
How did ... [/quote]
我是用vea图型界面上看到的.然后在dco上点add mirror就完成了.呵呵
但不知道命令行如何写?
[[i] 本帖最后由 tomer 于 2008-5-30 11:55 编辑 [/i]]
风之幻想
[quote]原帖由 [i]tomer[/i] 于 2008-5-30 11:49 发表 [url=http://bbs.chinaunix.net/redirect.php?goto=findpost&pid=8470670&ptid=1117757][img]http://bbs.chinaunix.net/images/common/back.gif[/img][/url]
我是用vea图型界面上看到的.然后在dco上点add mirror就完成了.呵呵
但不知道命令行如何写? [/quote]
看来,我的回帖楼主都不看呀.超级郁闷...........算了吧. 我这个帖子已经回了你说的命令了呀.
使用下面的命令将 DCO 和 DCO 日志卷添加到现有卷:
# vxassist [-g diskgroup[ addlog volume logtype=dco /
[ndcolog=number] [dcologlen=size]
镜像 DCO 日志卷中的默认 plex 数为 2。可以使用 ndcolog 属性指定不同的 number。
建议配置的 DCO plex 数与卷中的现有数据和快照 plex 数相同。例如,当将 DCO 添加到 3 路镜像卷时,指定 ndcolog=3。
每个 plex 的默认大小为 132 个块。可以使用 dcologlen 属性指定不同的 size。如果指定,则 plex 大小必须是 33 个块的整数倍,范围从 33 到 2112 个块,最多为 2112 个块。
例如,若要将 plex 大小为 264 个块的 DCO 对象和 DCO 日志卷添加到卷 myvol,使用此命令:
# vxassist addlog myvol logtype=dco dcologlen=264
l5205
[quote]原帖由 [i]风之幻想[/i] 于 2008-5-30 11:04 发表 [url=http://bbs.chinaunix.net/redirect.php?goto=findpost&pid=8470138&ptid=1117757][img]http://bbs.chinaunix.net/images/common/back.gif[/img][/url]
当然,可以.我记得我在我关于veritas volume manger管理的文章中已经写过这些相关的内容了. [/quote]
老大,是否有这篇文章得链接,谢谢。
l5205
[quote]原帖由 [i]briangao[/i] 于 2008-5-30 04:56 发表 [url=http://bbs.chinaunix.net/redirect.php?goto=findpost&pid=8468626&ptid=1117757][img]http://bbs.chinaunix.net/images/common/back.gif[/img][/url]
snapshot is a way to do a backup by taking an image (or "picture") of the volume at a particular time. One way of doing so is to attach another plex to your mirrored voulme so that all data c ... [/quote]
It's really a perfect explainataion, thanks