Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1173122
  • 博文数量: 128
  • 博客积分: 10010
  • 博客等级: 上将
  • 技术积分: 4870
  • 用 户 组: 普通用户
  • 注册时间: 2007-04-19 14:28
文章分类

全部博文(128)

文章存档

2010年(2)

2009年(22)

2008年(104)

我的朋友

分类:

2008-11-12 15:28:03

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.
阅读(1366) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~