免费注册 查看新帖 |

Chinaunix

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

create solaris flash archive [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-11-12 15:28 |只看该作者 |倒序浏览
create solaris flash archive

首先创建一个文件系统用于存放flash文件:
[root@node01 /]mkdir /u01
[root@node01 /]newfs /dev/dsk/c0t1d0s0
newfs: construct a new file system /dev/rdsk/c0t1d0s0: (y/n)? y
Warning: 5810 sector(s) in last cylinder unallocated
/dev/rdsk/c0t1d0s0:     143358286 sectors in 23334 cylinders of 48 tracks, 128 sectors
        69999.2MB in 1459 cyl groups (16 c/g, 48.00MB/g, 5824 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 787488, 885920,
Initializing cylinder groups:
............................
super-block backups for last 10 cylinder groups at:
142447776, 142546208, 142644640, 142743072, 142841504, 142939936, 143038368,
143136800, 143235232, 143333664
[root@node01 /]mount /dev/dsk/c0t1d0s0 /u01
[root@node01 /]#df
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c0t0d0s0       15G   9.8G   4.6G    69%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                   1.1G   1.5M   1.1G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
fd                       0K     0K     0K     0%    /dev/fd
swap                   1.1G    64K   1.1G     1%    /tmp
swap                   1.1G    64K   1.1G     1%    /var/run
/dev/dsk/c0t0d0s7       94M   1.0M    84M     2%    /globaldevices
/dev/dsk/c0t0d0s3      995M   1.0M   934M     1%    /export/home
/dev/dsk/c0t1d0s0       67G    64M    67G     1%    /u01
创建flash文档:
-x指排除/u01目录
-c指压缩
[root@node01 /]#flarcreate -n system-backup -x /u01 -c /u01/system-backup
Full Flash
Checking integrity...
Integrity OK.
Running precreation scripts...
Precreation scripts done.
Determining the size of the archive...
cpio: Error with fstatat() of "dev/md/dsk", errno 2, No such file or directory
cpio: Cannot open directory dev/md/dsk, errno 2, No such file or directory
cpio: Error with fstatat() of "dev/md/rdsk", errno 2, No such file or directory
cpio: Cannot open directory dev/md/rdsk, errno 2, No such file or directory
20194768 blocks
4 error(s)
The archive will be approximately 8.64GB.
Creating the archive...
20194789 blocks
Archive creation complete.
Running postcreation scripts...
Postcreation scripts done.
Running pre-exit scripts...
Pre-exit scripts done.

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/36549/showart_1409163.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP