我刚刚用vxrootmir 命令做了一个根盘映像,这个命令自动将一块新盘加入rootdg组并自动mirror我boot盘上的系统卷(usr,var,boot.......),我试了一下用这块盘能够正常启动,这里以前这里的帖子做根盘映像都是个一个卷的mirror,所以我想请问这样做根盘映像是否规范?如不规范那标准做法应该怎么做?
各位高手请尽管发言,谢谢
| jogs 回复于:2003-06-18 15:42:12 |
| 顶
召唤高手 |
| jogs 回复于:2003-06-18 16:40:54 |
再顶 高手帮忙啊 |
| johnyou 回复于:2003-06-18 17:08:04 |
| 正常的。 |
| jogs 回复于:2003-06-18 17:24:47 |
| 高手也太惜字如金了吧 |
| blazewater 回复于:2003-06-18 19:22:23 |
| vxrootmirr做的只是根文档系统的映像;
其他的文档系统的映像还得用vxassist命令做。 ;) 您能够man vxrootmirr看一下 |
| forgetit 回复于:2003-06-19 04:41:13 |
| vxrootmir doesn't join the secondary boot disk into rootdg disk group and it only mirrors rootvol. The correct procedure to mirror your boot disk is:
1. install Veritas volume manager and license 2. vxinstall 3. choose "custom install" 4. answer yes to "encapsulate your boot disk" and supply rootdisk01 as your boot disk name 5. leave all the other disks alone 6. reboot your system 7. export PATH=$PATH:/etc/vx/bin 8. select a disk on a different controler as your secondary boot disk, for instance, c1t0d0 9. vxdisksetup -i c1t0d0 10. vxdg -g rootdg adddisk rootdisk02=c1t0d0 11. vxprint -hg rootdg | grep ^v and note down the volume names other than rootvol 12. nohup vxrootmir rootdisk02 & 13. nohup vxassist -g rootdg mirror volume_name rootdisk02 & 14. vxtask list to monitor the progress 15. eeprom | grep boot-device, normally it should be vx-rootdisk01 vx-rootdisk02 16. init 0 17. boot vx-rootdisk02 to verify |
| jogs 回复于:2003-06-19 09:31:16 |
| 再请教一个问题
我想取消mirror是不是只要删除mirror卷就能够了? 谢谢 |
| forgetit 回复于:2003-06-19 12:43:07 |
| If you want to break the mirror, you'll have to detach and deassociate the mirrored plexes, and then remove them. Below is the example of how to remove the second plex for rootvol:
1> vxprint -g rootdg -ht rootvol | grep ^pl (the plex name should be rootvol-02) 2> vxplex -g rootdg det rootvol-02 3> vxplex -g rootdg dis rootvol-02 4> vxedit -g rootdg -rf rm rootvol-02 (this removes plex and the subdisk) 5> do 1-4 for other volumes in rootdg 6> vxprint -hg rootdg, you should see no subdisk nor plex should resides on rootdisk02 7> If you want to remove the second boot disk out of rootdg, do "vxdg -g rootdg rmdisk rootdisk02" 8> vxdisk list (you should see the disk is online but not belong to any disk group) |
| iricyan 回复于:2003-06-19 12:53:41 |
| 好贴,UP |
| johnyou 回复于:2003-06-19 16:16:04 |
| 不用vinstall的时候,就能够用vxrootmir来做的。 |
| teddy_74cn 回复于:2003-06-30 15:21:32 |
| 个人认为用Volume manager做根盘映像不如disksuite好 |
| cuiy 回复于:2003-06-30 15:30:01 |
| 怎样能得到Volume manager的安装包呢? |
| vctxy 回复于:2003-06-30 15:54:48 |
| 严重同意teddy_74cn的意见,强烈建议
1、系统盘用disksuite作mirror 2、干脆不作mirror,用磁带作备份,您会发现系统很好维护。 |
| vctxy 回复于:2003-06-30 15:56:26 |
| 我从来不用VxVM对系统盘作mirror,一旦有问题,维护很麻烦。 |
| caozy 回复于:2003-06-30 17:16:46 |
| [quote:5414f17ff5="jogs"]我刚刚用vxrootmir 命令做了一个根盘映像,这个命令自动将一块新盘加入rootdg组并自动mirror我boot盘上的系统卷(usr,var,boot.......),我试了一下用这块盘能够正常启动,这里以前这里的帖子做根盘映像都是个?.........[/quote:5414f17ff5]
其实您的做法也没错,通过vxrootmir只把除swap区以外的分区做了映像,swap还是需要分步做mirror的。您通过format发现,做了映像以后根盘实际变成,root区(0),swap区(1),全盘(2),private区(3),public区(4)。 |
| x3y4z5 回复于:2003-06-30 20:50:34 |
| 听听别人的意见吧,使用disksuite做了映像,性能会下降。不如使用ufsdump做备份,简单,容易维护。 |
| jogs 回复于:2003-07-01 09:41:07 |
| 多请教几个问题,上次问了没人回复,帮忙看看
假如volume包含1个或2个plex,那我对卷做mirror是包括任何的plex吗? plex之间能不能做mirror? 用vxassist直接在盘上做2G的卷和用vxmake做出来2G的subdisk有什么区别?我看一下大家都是直接做卷的 |
| solaris_engineer 回复于:2003-07-01 10:42:51 |




