阅 读 文 章

如何用ufsdump,ufsrestore去备份和恢复?

[来源:网上转载 (http://www.chinaunix.net) | 作者:网友(aswellas) | 时间:2007-05-27 | 浏览:人次 ]


[这个贴子最后由bear在 2002/03/27 10:57pm 编辑]

如何用ufsrestore去备份 根目录,var,usr目录
以及cot3d0sx 上的目录(我的系统安置自c0t0d0s1上)




 sohu3370 回复于:2002-03-22 12:26:03

aswellas
是不是搞错了,你到底是想BACKUP还是RESTORE啊?
ufsdump是 backup,有联机修改的应该unmount文件系统再做,那你应该知道怎么做了吧
#ufsdump 0uf /dev/rmt/0 /var            ----(level 0 backup)
#ufsdump 0uf /dev/rmt/0 /dev/rdsk/c0t0d0s3

ufsrestore是 restore
恢复/ ,/var,/usr当然比较复杂,比如恢复/
#boot cdrom -s
#newfs /dev/rdsk/c0t0d0s0
#mount /dev/dsk/c0t0d0s0 /abc
#ufsrestore rf /dev/rmt/0
#cd /usr/platform/'uname -m'/lib/fs/ufs
#installboot bootblk /dev/rdsk/c0t0d0s0
#cd /
#unmount /abc
#init 6

呵呵!刚看过这部分内容,练习以下!



 aswellas 回复于:2002-03-22 12:55:10

好的多谢,好详细,我去试一下。
老师的力量是伟大的!


 czc9 回复于:2002-03-27 11:37:24

To restore the / (root) file system, boot from the Solaris CD-ROM and then run ufsrestore.
Note – If / (root), /usr, or the /var file system is unusable because of some type of corruption or damage, the system will not boot.
The following procedure demonstrates how to restore the / (root) file system on the boot disk c0t0d0s0.
1. Insert the Solaris 8 Software CD 1 of 2, and boot the CD-ROM with the single-user mode option.
ok boot cdrom -s
2. Create the new file system structure.
# newfs /dev/rdsk/c0t0d0s0
3. Mount the file system to an empty mount point directory, /a and change to that directory.
# mount /dev/dsk/c0t0d0s0 /a
# cd /a
4. Restore the / (root) file system from its backup tape.
# ufsrestore rf /dev/rmt/0
Note – Remember to always restore a file system starting with the level 0 backup tape and continuing with the next lowest level tape up through the highest level tape.
5. Remove the restoresymtable file.
# rm restoresymtable
6. Install the bootblk in sectors 1–15 of the boot disk. Change to the directory containing the bootblk, and run the installboot command.
论坛热门帖子: [lch203] 写得蛮好的linux学习笔记(10-21)
[黑马制造] 学习java的30个目标(10-19)
[笑傲股林] 做测试半年了,有点迷茫,应该再学些什么提高自己的测试水平和测试能力呢?(10-19)
[udp8589] 大家用google的来吱一声? 用百度的~~也来报道下?(10-18)
[沂偌掳兆] 本人总结的一些认为C++比较经典的书籍,希望对大家有用(10-18)
TAG标签: 恢复 备份 如何 root #cd/ 回复 目录 Note /lib/fs/ufs

最新评论 共有0位网友发表了评论

发表评论

评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名:(注册)
密码:
验证码:
匿名发表

网站地图友情连接交流论坛网站投稿广告服务联系我们留言本站长统计
Some rights reserved: www.chmhome.com, 鄂ICP备07010232号 E-mail:chinakafei@live.com,QQ:552766
中国咖啡技术网(Chmhome):国外编程技术书籍,中文编程手册,经典编程文章,交流技术,技术软件下载,计算机论文,毕业论文.