免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4261 | 回复: 0
打印 上一主题 下一主题

[ClearCase] How to change UNIX UID and GID for all objects within one VOB? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-02-15 15:54 |只看该作者 |倒序浏览
Subject:

How to change UNIX UID and GID for all objects within one VOB?

Senario:

User wants to change UNIX group from GRP01 to GRP02 for all ClearCase objects in one VOB.

It often happens in design team organization changes.


Solution:

Most CM admin may want to use cleartool project to change UNIX Group, but it is not recommended by IBM Rational ClearCase.

Actually, IBM provided special tools vob_sidwork and vob_siddump to implement UNIX UID and GID changes during VOB data migration from one organization to another one.

Following is a example from my common works recently.  I use the tool vob_sidwalk changed UNIX group from GRP01 to GRP02.

This is a simple example for your referrence. For detail usage, please check the manual of vob_sidwalk.

# the first command is used to change all objects which owner is unknow to default vob administrator.
/opt/rational/clearcase/sun5/etc/utils/vob_sidwalk -unknown -execute /vobs/testvob  /tmp/vob_sidwalk_unknown_testvob

# the file /tmp/groups.txt is used to map old GID 233 to new GID 232
# cat /tmp/groups.txt
domain/GRP01,GROUP,UNIX:GID-233,domain/GRP02,GROUP,UNIX:GID-232
#

# the 3rd command is used to change GID on all objects within the vob /vobs/testvob according the map file /tmp/groups.txt
/opt/rational/clearcase/sun5/etc/utils/vob_sidwalk -map /tmp/groups.txt -execute /vobs/testvob /tmp/vob_sidwalk_map_testvob

# the 4th command is used to change VOB container's GID
/usr/atria/bin/cleartool protectvob -chgrp GRP02 /vobs/testvob

[ 本帖最后由 wangcf 于 2008-2-15 16:19 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP