亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 4914 | 回復(fù): 3
打印 上一主題 下一主題

如何用ufsdump,ufsrestore去備份和恢復(fù)? [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2002-03-22 12:03 |只看該作者 |倒序瀏覽
[這個貼子最后由bear在 2002/03/27 10:57pm 編輯]

如何用ufsrestore去備份 根目錄,var,usr目錄
以及cot3d0sx 上的目錄(我的系統(tǒng)安置自c0t0d0s1上)

論壇徽章:
0
2 [報告]
發(fā)表于 2002-03-22 12:26 |只看該作者

如何用ufsdump,ufsrestore去備份和恢復(fù)?

aswellas
是不是搞錯了,你到底是想BACKUP還是RESTORE啊?
ufsdump是 backup,有聯(lián)機修改的應(yīng)該unmount文件系統(tǒng)再做,那你應(yīng)該知道怎么做了吧
#ufsdump 0uf /dev/rmt/0 /var            ----(level 0 backup)
#ufsdump 0uf /dev/rmt/0 /dev/rdsk/c0t0d0s3

ufsrestore是 restore
恢復(fù)/ ,/var,/usr當然比較復(fù)雜,比如恢復(fù)/
#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

呵呵!剛看過這部分內(nèi)容,練習(xí)以下!

論壇徽章:
0
3 [報告]
發(fā)表于 2002-03-22 12:55 |只看該作者

如何用ufsdump,ufsrestore去備份和恢復(fù)?

好的多謝,好詳細,我去試一下。
老師的力量是偉大的!

論壇徽章:
0
4 [報告]
發(fā)表于 2002-03-27 11:37 |只看該作者

如何用ufsdump,ufsrestore去備份和恢復(fù)?

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.
# cd /usr/platform/`uname -m`/lib/fs/ufs
# installboot bootblk /dev/rdsk/c0t0d0s0
7. Unmount the new file system.
# cd / ; umount /a
8. Use the fsck command to check the restored file system.
# fsck /dev/rdsk/c0t0d0s0
9. Reboot the system.
# init 6
10. Perform a full backup of the file system. For example:
# ufsdump 0uf /dev/rmt/0 /dev/rdsk/c0t0d0s0
Note – Always back up the newly created file system, as ufsrestore repositions the files and changes the inode allocation. Restoring the /usr and /var File Systems To restore the /usr and /var file systems repeat the steps described above, except step 6. This step is required only when restoring the (/) root file system.
Restoring Regular File Systems
To restore a regular file system, (for example, /export/home, or /opt) back to disk, repeat the steps described above, except steps 1, 6, and 9. Example
# newfs /dev/rdsk/c#t#d#s#
# mount /dev/dsk/c#t#d#s# /mnt
# cd /mnt
# ufsrestore rf /dev/rmt/#
# rm restoresymtable
# cd /
# umount /mnt
# fsck /dev/rdsk/c#t#d#s#
# ufsdump 0uf /dev/rmt/# /dev/rdsk/c#t#d#s#
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP