免费注册 查看新帖 |

Chinaunix

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

solaris10(x86)系统镜像制作实录 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-08-25 22:51 |只看该作者 |倒序浏览


Sun Fire X4500 Server
2 AMD Opteron Model 285 Processors
16 GB Memory
48 x 500 GB 7200 rpm SATA Disk Drives
OS:SunOS x4500 5.10 Generic_118855-33 i86pc i386 i86pc




infmation:
********************************
********************************
OS install on disk:c6t0d0
mirror disk       :c6t4d0


-bash-3.00$ more /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/dsk/c6t0d0s1       -       -       swap    -       no      -
/dev/dsk/c6t0d0s0       /dev/rdsk/c6t0d0s0      /       ufs     1       no   -
/dev/dsk/c6t0d0s5       /dev/rdsk/c6t0d0s5      /var    ufs     1       no   -
#/dev/dsk/c6t0d0s3      /dev/rdsk/c6t0d0s3      /metadb ufs     2       yes  -
/devices        -       /devices        devfs   -       no      -
ctfs    -       /system/contract        ctfs    -       no      -
objfs   -       /system/object  objfs   -       no      -
swap    -       /tmp    tmpfs   -       yes     -
#
#
#
-bash-3.00$ su
Password:
# bash



to start
********************************
********************************

# prtvtoc /dev/rdsk/c6t0d0s2 |fmthard -s - /dev/rdsk/c6t4d0s2
fmthard:  New volume table of contents now in place.
# metad
metadb      metadetach  metadevadm
# metadb -afc 3 c6t0d0s3 c6t4d0s3
# metainit -f d10 1 1 c6t0d0s0
d10: Concat/Stripe is setup
# metainit    d20 1 1 c6t4d0s0
d20: Concat/Stripe is setup
# metainit -f d11 1 1 c6t0d0s1
d11: Concat/Stripe is setup
# metainit    d21 1 1 c6t4d0s1
d21: Concat/Stripe is setup
# metainit -f d15 1 1 c6t0d0s5
d15: Concat/Stripe is setup
# metainit    d25 1 1 c6t4d0s5
d25: Concat/Stripe is setup
# metainit d0 -m d10
d0: Mirror is setup
# metainit d1 -m d11
d1: Mirror is setup
# metainit d5 -m d15
d5: Mirror is setup
# metaroot d0
# lockfs -fa
#



(modify vfstab to:)
#
# vi /etc/vfstab
"vfstab" 13 lines, 467 characters
#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      logging
/dev/md/dsk/d5  /dev/md/rdsk/d5 /var    ufs     1       no      -
#/dev/dsk/c6t0d0s3      /dev/rdsk/c6t0d0s3      /metadb ufs     2       yes     -
/devices        -       /devices        devfs   -       no      -
ctfs    -       /system/contract        ctfs    -       no      -
objfs   -       /system/object  objfs   -       no      -
swap    -       /tmp    tmpfs   -       yes     -
~
~
~
#
# init 6
updating /platform/i86pc/boot_archive...this may take a minute


#
# metattach d0 d20
d0: submirror d20 is attached
# metattach d1 d21
d1: submirror d21 is attached
# metattach d5 d25
d5: submirror d25 is attached
#
#
#
# /usr/sbin/installgrub -fm /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c6t4d0s0
stage1 written to partition 0 sector 0 (abs 16065)
stage2 written to partition 0, 233 sectors starting at 50 (abs 16115)
stage1 written to master boot sector
# ls -l /dev/dsk/c6t4d0s0
lrwxrwxrwx   1 root     root          62 Aug 25 03:24 /dev/dsk/c6t4d0s0 ->
[email=../../devices/pci@1,0/pci1022,7458@4/pci11ab,11ab@1/disk@4,0:a]../../devices/pci@1,0/pci1022,7458@4/pci11ab,11ab@1/disk@4,0:a[/email]
#
#
#cd /boot/solaris/
#
#more bootenv.rc
# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
#ident  "@(#)bootenv.rc 1.32    05/09/01 SMI"
#
#       bootenv.rc -- boot "environment variables"
#
setprop kbd-type US-English
setprop ata-dma-enabled 1
setprop atapi-cd-dma-enabled 0
setprop ttyb-rts-dtr-off false
setprop ttyb-ignore-cd true
setprop ttya-rts-dtr-off false
setprop ttya-ignore-cd true
setprop ttyb-mode 9600,8,n,1,-
setprop ttya-mode 9600,8,n,1,-
setprop lba-access-ok 1
setprop prealloc-chunk-size 0x2000
setprop bootpath /pci@1,0/pci1022,7458@4/pci11ab,11ab@1/disk@0,0:a
setprop console 'text'
#
#
# vi bootenv.rc
"bootenv.rc" 22 lines, 607 characters
#
# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
#ident  "@(#)bootenv.rc 1.32    05/09/01 SMI"
#
#       bootenv.rc -- boot "environment variables"
#
setprop kbd-type US-English
setprop ata-dma-enabled 1
setprop atapi-cd-dma-enabled 0
setprop ttyb-rts-dtr-off false
setprop ttyb-ignore-cd true
setprop ttya-rts-dtr-off false
setprop ttya-ignore-cd true
setprop ttyb-mode 9600,8,n,1,-
setprop ttya-mode 9600,8,n,1,-
setprop lba-access-ok 1
setprop prealloc-chunk-size 0x2000
setprop bootpath /pci@1,0/pci1022,7458@4/pci11ab,11ab@1/disk@0,0:a
setprop console 'text'
setprop altbootpath /pci@1,0/pci1022,7458@4/pci11ab,11ab@1/disk@4,0:a
#
#
# eeprom
kbd-type=US-English
ata-dma-enabled=1
atapi-cd-dma-enabled=0
ttyb-rts-dtr-off=false
ttyb-ignore-cd=true
ttya-rts-dtr-off=false
ttya-ignore-cd=true
ttyb-mode=9600,8,n,1,-
ttya-mode=9600,8,n,1,-
lba-access-ok=1
prealloc-chunk-size=0x2000
[email=bootpath=/pci@1,0/pci1022,7458@4/pci11ab,11ab@1/disk@0,0:a]bootpath=/pci@1,0/pci1022,7458@4/pci11ab,11ab@1/disk@0,0:a[/email]
console=text
[email=altbootpath=/pci@1,0/pci1022,7458@4/pci11ab,11ab@1/disk@4,0:a]altbootpath=/pci@1,0/pci1022,7458@4/pci11ab,11ab@1/disk@4,0:a[/email]




view the status
********************************
********************************
#
# metastat -t
d5: Mirror
    Submirror 0: d15
      State: Okay         Sat Aug 25 10:34:01 2007
    Submirror 1: d25
      State: Resyncing    Sat Aug 25 10:50:02 2007
    Resync in progress: 4 % done
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 12289725 blocks (5.9 GB)
d15: Submirror of d5
    State: Okay         Sat Aug 25 10:34:01 2007
    Size: 12289725 blocks (5.9 GB)
    Stripe 0:
        Device     Start Dbase State       Reloc Hot Spare Time
        c6t0d0s5       0 No    Okay        Yes             Sat Aug 25 10:31:58 2007
d25: Submirror of d5
    State: Resyncing    Sat Aug 25 10:50:02 2007
    Size: 12289725 blocks (5.9 GB)
    Stripe 0:
        Device     Start Dbase State       Reloc Hot Spare Time
        c6t4d0s5       0 No    Okay        Yes             Sat Aug 25 10:32:20 2007
d1: Mirror
    Submirror 0: d11
      State: Okay         Sat Aug 25 10:33:44 2007
    Submirror 1: d21
      State: Resyncing    Sat Aug 25 10:49:35 2007
    Resync in progress: 2 % done
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 32772600 blocks (15 GB)
d11: Submirror of d1
    State: Okay         Sat Aug 25 10:33:44 2007
    Size: 32772600 blocks (15 GB)
    Stripe 0:
        Device     Start Dbase State       Reloc Hot Spare Time
        c6t0d0s1       0 No    Okay        Yes             Sat Aug 25 10:30:30 2007
d21: Submirror of d1
    State: Resyncing    Sat Aug 25 10:49:35 2007
    Size: 32772600 blocks (15 GB)
    Stripe 0:
        Device     Start Dbase State       Reloc Hot Spare Time
        c6t4d0s1       0 No    Okay        Yes             Sat Aug 25 10:31:08 2007
d0: Mirror
    Submirror 0: d10
      State: Okay         Sat Aug 25 10:33:29 2007
    Submirror 1: d20
      State: Resyncing    Sat Aug 25 10:49:20 2007
    Resync in progress: 2 % done
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 43006005 blocks (20 GB)
d10: Submirror of d0
    State: Okay         Sat Aug 25 10:33:29 2007
    Size: 43006005 blocks (20 GB)
    Stripe 0:
        Device     Start Dbase State       Reloc Hot Spare Time
        c6t0d0s0       0 No    Okay        Yes             Sat Aug 25 10:28:55 2007
d20: Submirror of d0
    State: Resyncing    Sat Aug 25 10:49:20 2007
    Size: 43006005 blocks (20 GB)
    Stripe 0:
        Device     Start Dbase State       Reloc Hot Spare Time
        c6t4d0s0       0 No    Okay        Yes             Sat Aug 25 10:29:31 2007
Device Relocation Information:
Device   Reloc  Device ID
c6t4d0   Yes    id1,sd@SATA_____HITACHI_HDS7250S______KRVN67ZBH1UZ5H
c6t0d0   Yes    id1,sd@SATA_____HITACHI_HDS7250S______KRVP67ZBH6MJTF
##
#
# date
Sat Aug 25 10:51:32 CST 2007
# metastat -c
d5               m  5.9GB d15 d25 (resync-0%)
    d15          s  5.9GB c6t0d0s5
    d25          s  5.9GB c6t4d0s5
d1               m   15GB d11 d21 (resync-0%)
    d11          s   15GB c6t0d0s1
    d21          s   15GB c6t4d0s1
d0               m   20GB d10 d20 (resync-1%)
    d10          s   20GB c6t0d0s0
    d20          s   20GB c6t4d0s0
#
#
# date
Sat Aug 25 11:00:45 CST 2007
# metastat -c
d5               m  5.9GB d15 d25 (resync-9%)
    d15          s  5.9GB c6t0d0s5
    d25          s  5.9GB c6t4d0s5
d1               m   15GB d11 d21 (resync-4%)
    d11          s   15GB c6t0d0s1
    d21          s   15GB c6t4d0s1
d0               m   20GB d10 d20 (resync-4%)
    d10          s   20GB c6t0d0s0
    d20          s   20GB c6t4d0s0
#
#
#

ref
********************************
********************************
1,《Sun Fire™ X4500 Server Administration Guide》
2,
http://blogs.sun.com/simford/entry/create_raid1_on_solaris_nevada




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

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP