- 论坛徽章:
- 0
|
本帖最后由 xgene 于 2010-06-03 20:58 编辑
有一台4800,没有磁带,但是想把系统做个全备份。
4800下面挂有一台6140阵列,分了三个LUN(c1t1d0、c1t1d1、c1t1d2),分别挂载了三个文件系统/sybase、/data、/back
Sun Microsystems Inc. SunOS 5.9 Generic May 2002
Sourcing //.profile-EIS.....
root@SUN4800 # cat /etc/vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/md/dsk/d1 - - swap - no -
/dev/md/dsk/d0 /dev/md/rdsk/d0 / ufs 1 no -
/dev/md/dsk/d6 /dev/md/rdsk/d6 /usr ufs 1 no -
/dev/md/dsk/d3 /dev/md/rdsk/d3 /var ufs 1 no -
/dev/md/dsk/d7 /dev/md/rdsk/d7 /export/home ufs 2 yes -
/dev/md/dsk/d4 /dev/md/rdsk/d4 /opt ufs 2 yes -
swap - /tmp tmpfs - yes -
/dev/dsk/c1t1d0s2 /dev/rdsk/c1t1d0s2 /sybase ufs 2 yes -
/dev/dsk/c1t1d1s2 /dev/rdsk/c1t1d1s2 /data ufs 2 yes -
/dev/dsk/c1t1d2s2 /dev/rdsk/c1t1d2s2 /back ufs 2 yes -
root@SUN4800 # df -h
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d0 3.9G 77M 3.8G 2% /
/dev/md/dsk/d6 3.9G 901M 3.0G 23% /usr
/proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
fd 0K 0K 0K 0% /dev/fd
/dev/md/dsk/d3 3.0G 235M 2.7G 8% /var
swap 8.5G 104K 8.5G 1% /var/run
swap 8.5G 24K 8.5G 1% /tmp
/dev/dsk/c1t1d0s2 49G 44G 4.9G 90% /sybase
/dev/dsk/c1t1d1s2 98G 90G 8.0G 92% /data
/dev/dsk/c1t1d2s2 322G 169G 150G 52% /back
/dev/md/dsk/d4 3.9G 859M 3.1G 22% /opt
/dev/md/dsk/d7 11G 1.7G 8.9G 17% /export/home
root@SUN4800 #
我能不能通过下面的ufsdump命令将操作系统备份到/back/osbf/下面呢?然后再拷贝到本地移动硬盘上,不知可行吗,请赐教,谢谢!
ufsdump 0f /back/osbf/root_d0.dup. /dev/md/dsk/d0
ufsdump 0f /back/osbf/usr_d6.dup/dev/md/dsk/d6
ufsdump 0f /back/osbf/var_d3.dup /dev/md/dsk/d3
ufsdump 0f /back/osbf/exporthome_d7.dup /dev/md/dsk/d7
ufsdump 0f /back/osbf/opt_d4.dup /dev/md/dsk/d4 |
|