Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3194266
  • 博文数量: 443
  • 博客积分: 11301
  • 博客等级: 上将
  • 技术积分: 5679
  • 用 户 组: 普通用户
  • 注册时间: 2004-10-08 12:30
个人简介

欢迎加入IT云增值在线QQ交流群:342584734

文章分类

全部博文(443)

文章存档

2022年(1)

2021年(1)

2015年(2)

2014年(1)

2013年(1)

2012年(4)

2011年(19)

2010年(32)

2009年(2)

2008年(4)

2007年(31)

2006年(301)

2005年(42)

2004年(2)

分类:

2007-03-11 15:59:39

转贴请注明出处,谢谢!

1.备份vxvm的license,或备份/etc/vx/licenses/lic/*.vxlic

CODE:
root@sun # vxlicrep

VERITAS License Manager vxlicrep utility version 3.00.007i
Copyright (C) VERITAS Software Corp 2002. All Rights reserved.

Creating a report on all VERITAS products installed on this system

-----------------***********************-----------------

   License Key                         = XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XX
   Product Name                        = VERITAS Volume Manager
   License Type                        = DEMO
   OEM ID                              = 4095
   Demo End Date                       = 2007年02月01日 星期四 00时00分00秒
                                         (59.2 days from now).

Features :=

   VxVM                                = Enabled
   CPU Count                           = Not Restricted                 
2.

CODE:
root@sun # touch /etc/vx/reconfig.d/state.d/install-db
3.

CODE:
root@sun # rm /etc/vx/reconfig.d/state.d/root-done
4.

CODE:
root@sun # vi /etc/system (备份一下)
注释掉或删除掉:
* vxvm_START (do not remove)
forceload: drv/vxdmp
forceload: drv/vxio
forceload: drv/vxspec
forceload: drv/sd
forceload: drv/pcipsy
forceload: drv/ssd
rootdev:/pseudo/vxio@0:0
set vxio:vol_rootdev_is_volume=1
* vxvm_END (do not remove)
5.

CODE:
root@sun # vi /etc/name_to_major
修改/etc/name_to_major文件,删除下面几行:
vxdmp 291
vxio 292
vxspec 293
6.拆掉mirror

CODE:
root@sun # vxplex -o rm dis rootvol-02 swapvol-02


CODE:
root@sun # vxprint -ht
Disk group: rootdg

DG NAME         NCONFIG      NLOG     MINORS   GROUP-ID
DM NAME         DEVICE       TYPE     PRIVLEN  PUBLEN   STATE
RV NAME         RLINK_CNT    KSTATE   STATE    PRIMARY  DATAVOLS  SRL
RL NAME         RVG          KSTATE   STATE    REM_HOST REM_DG    REM_RLNK
V  NAME         RVG          KSTATE   STATE    LENGTH   READPOL   PREFPLEX UTYPE
PL NAME         VOLUME       KSTATE   STATE    LENGTH   LAYOUT    NCOL/WID MODE
SD NAME         PLEX         DISK     DISKOFFS LENGTH   [COL/]OFF DEVICE   MODE
SV NAME         PLEX         VOLNAME  NVOLLAYR LENGTH   [COL/]OFF AM/NM    MODE
DC NAME         PARENTVOL    LOGVOL
SP NAME         SNAPVOL      DCO

dg rootdg       default      default  0        1164968519.1025.sun

dm rootdisk     c0t0d0s2     sliced   2888     71124291 -
dm rootmirr     c0t1d0s2     sliced   2888     71124291 -

v  rootvol      -            ENABLED  ACTIVE   20480121 ROUND     -        root
pl rootvol-01   rootvol      ENABLED  ACTIVE   20480121 CONCAT    -        RW
sd rootdisk-02  rootvol-01   rootdisk 50644170 20480121 0         c0t0d0s2 ENA

v  swapvol      -            ENABLED  ACTIVE   4191939  ROUND     -        swap
pl swapvol-01   swapvol      ENABLED  ACTIVE   4191939  CONCAT    -        RW
sd rootdisk-01  swapvol-01   rootdisk 0        4191939  0         c0t0d0s2 ENA
7.

CODE:
root@sun # /etc/vx/bin/vxunroot

  This operation will convert the following file systems from
  volumes to regular partitions:

        rootvol swapvol

  Replace volumes in root disk to partitions.

  This operation will require a system reboot.  If you choose to
  continue with this operation, system configuration will be updated
  to discontinue use of the volume manager for your root and swap
  devices.

Do you wish to do this now [y,n,q,?] (default: y) y

  Restoring kernel configuration...

  A shutdown is now required to install the new kernel.
  You can choose to shutdown now, or you can shutdown later, at your
  convenience.

Do you wish to shutdown now [y,n,q,?] (default: n) y

  shutdown -g0 -y -i6

Shutdown started.    2006年12月03日 星期日 18时06分57秒 CST

Changing to init state 6 - please wait
Broadcast Message from root (console) on sun 日 12月  3 18:06:58...
THE SYSTEM sun IS BEING SHUT DOWN NOW ! ! !
Log off now or risk your files being damaged


showmount: sun: RPC: 程序未注册
Hangup
root@sun #
INIT: New run level: 6
The system is coming down.  Please wait.
System services are now being stopped.
打印服务已经停止。
SUNW,hme0 : No response from Ethernet network : Link down -- cable problem?
VEA server is shutting down .
...The system is down.
syncing file systems... done
rebooting...
Resetting ...


Can't open input device.
Keyboard not present.  Using ttya for input and output.


Sun Enterprise 450 (2 X UltraSPARC-II 480MHz), No Keyboard
OpenBoot 3.18, 2048 MB memory installed, Serial #11947916.
Ethernet address 8:0:20:b6:4f:8c, Host ID: 80b64f8c.



Rebooting with command: boot                                          
Boot device: /pci@1f,4000/scsi@3/disk@0,0:a  File and args:
SunOS Release 5.9 Version Generic_118558-35 64-bit
Copyright 1983-2003 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
Configuring ATM interfaces:
NOTICE: VxVM not started
configuring IPv4 interfaces: hme0.
Hostname: sun
NOTICE: VxVM not started
NOTICE: VxVM not started
vxvm:vxedit: ERROR: IPC failure: Configuration daemon is not accessible
vxvm:vxedit: ERROR: IPC failure: Configuration daemon is not accessible

  Volume Manager: Removing rootdisk from Volume Manager control.
vxvm:vxdisk: ERROR: IPC failure: Configuration daemon is not accessible
vxvm:vxprint: ERROR: IPC failure: Configuration daemon is not accessible
vxvm:vxdisk: ERROR: IPC failure: Configuration daemon is not accessible
vxvm:vxdg: ERROR: IPC failure: Configuration daemon is not accessible

  The removal of  from rootdg failed. It will be marked as
   reserved so no space from it is accidentally allocated
vxvm:vxedit: ERROR: IPC failure: Configuration daemon is not accessible
The system is coming up.  Please wait.
SUNW,hme0 : No response from Ethernet network : Link down -- cable problem?
starting rpc services: rpcbind done.
Setting netmask of hme0 to 255.255.255.0
Setting default IPv4 interface for multicast: add net 224.0/4: gateway sun
syslog service starting.
volume management starting.
The system is ready.
Dec  3 18:10:25 sun hme: SUNW,hme0 : No response from Ethernet network : Link down -- cable problem?

sun console login: root
Password:
Dec  3 18:10:30 sun login: ROOT LOGIN /dev/console
Last login: Sun Dec  3 17:34:31 from 192.168.1.101
Sun Microsystems Inc.   SunOS 5.9       Generic May 2002
You have new mail.
Sourcing //.profile-EIS.....
root@sun #
8.使用format命令将c0t0d0的3,4分区清空,一般vxvm会默认用这两个分区,清空之前请看清楚:

CODE:
root@sun # format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0t0d0
          /pci@1f,4000/scsi@3/sd@0,0
       1. c0t1d0
          /pci@1f,4000/scsi@3/sd@1,0
Specify disk (enter its number): 0
selecting c0t0d0
[disk formatted]
Warning: Current Disk has mounted partitions.


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !     - execute , then return
        quit
format> p


PARTITION MENU:
        0      - change `0' partition
        1      - change `1' partition
        2      - change `2' partition
        3      - change `3' partition
        4      - change `4' partition
        5      - change `5' partition
        6      - change `6' partition
        7      - change `7' partition
        select - select a predefined table
        modify - modify a predefined partition table
        name   - name the current table
        print  - display the current table
        label  - write partition map and label to the disk
        ! - execute , then return
        quit
partition> p
Current partition table (original):
Total disk cylinders available: 24620 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm   17531 - 24619        9.77GB    (7089/0/0)  20480121
  1       swap    wu       1 -  1451        2.00GB    (1451/0/0)   4191939
  2     backup    wm       0 - 24619       33.92GB    (24620/0/0) 71127180
  3          -    wu       0 -     0        1.41MB    (1/0/0)         2889
  4          -    wu       1 - 24619       33.91GB    (24619/0/0) 71124291
  5 unassigned    wm       0                0         (0/0/0)            0
  6 unassigned    wm       0                0         (0/0/0)            0
  7 unassigned    wm       0                0         (0/0/0)            0

partition> 3
Part      Tag    Flag     Cylinders         Size            Blocks
  3          -    wu       0 -     0        1.41MB    (1/0/0)         2889

Enter partition id tag[unassigned]:
Enter partition permission flags[wu]:
Enter new starting cyl[0]:
Enter partition size[2889b, 1c, 0e, 1.41mb, 0.00gb]: 0
partition> p
Current partition table (unnamed):
Total disk cylinders available: 24620 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm   17531 - 24619        9.77GB    (7089/0/0)  20480121
  1       swap    wu       1 -  1451        2.00GB    (1451/0/0)   4191939
  2     backup    wm       0 - 24619       33.92GB    (24620/0/0) 71127180
  3 unassigned    wu       0                0         (0/0/0)            0
  4          -    wu       1 - 24619       33.91GB    (24619/0/0) 71124291
  5 unassigned    wm       0                0         (0/0/0)            0
  6 unassigned    wm       0                0         (0/0/0)            0
  7 unassigned    wm       0                0         (0/0/0)            0

partition> 4
Part      Tag    Flag     Cylinders         Size            Blocks
  4          -    wu       1 - 24619       33.91GB    (24619/0/0) 71124291

Enter partition id tag[unassigned]:
Enter partition permission flags[wu]:
Enter new starting cyl[1]:
Enter partition size[71124291b, 24619c, 24619e, 34728.66mb, 33.91gb]: 0
partition> p
Current partition table (unnamed):
Total disk cylinders available: 24620 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm   17531 - 24619        9.77GB    (7089/0/0)  20480121
  1       swap    wu       1 -  1451        2.00GB    (1451/0/0)   4191939
  2     backup    wm       0 - 24619       33.92GB    (24620/0/0) 71127180
  3 unassigned    wu       0                0         (0/0/0)            0
  4 unassigned    wu       0                0         (0/0/0)            0
  5 unassigned    wm       0                0         (0/0/0)            0
  6 unassigned    wm       0                0         (0/0/0)            0
  7 unassigned    wm       0                0         (0/0/0)            0

partition> la
Ready to label disk, continue? y

partition> q


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !     - execute , then return
        quit
format> q
9.删除vxvm软加包

CODE:
root@sun # pkginfo |grep VRTS
application VRTSmulic                        VERITAS License Utilities
application VRTSmuvmp                        Multi Language VERITAS Volume Manager Management Services Provider
application VRTSob                           VERITAS Enterprise Administrator Service
application VRTSobgui                        VERITAS Enterprise Administrator
application VRTSvlic                         VERITAS License Utilities
system      VRTSvmdoc                        VERITAS Volume Manager (user documentation)
system      VRTSvmman                        VERITAS Volume Manager, Manual Pages
application VRTSvmpro                        VERITAS Volume Manager Management Services Provider
system      VRTSvmzhc                        VERITAS Volume Manager - Message Catalogs - Chinese
system      VRTSvmzhd                        VERITAS Volume Manager, Chinese Documentation
system      VRTSvmzhm                        VERITAS Volume Manager, Manual Pages - Chinese
system      VRTSvxvm                         VERITAS Volume Manager, Binaries


CODE:
root@sun # pkgrm VRTSmulic VRTSmuvmp VRTSob VRTSobgui VRTSvlic VRTSvmdoc VRTSvmman VRTSvmpro VRTSvmzhc VRTSvmzhd VRTSvmzhm VRTSvxvm


CODE:
## 删除已安装的包

在这个软件包中包含了正文程序,只有具有超级-用户的权限才能在这个软件包
的安装过程中执行它们.

你想继续删除这个软件包吗 [y,n,?,q] y
## 检查软件包的从属性
## 正在处理软件包信息.
## 正在执行预删除正文
前面的删除都很顺利,在删除VRTSvxvm这个快结束的时候发生panic了,估计是前面忘了修改/etc/system的原因吧

CODE:
        Checking for system volumes:
        swap    ...

Unloading vxspec driver...
Removing /kernel/drv/vxspec
Removing /kernel/drv/sparcv9/vxspec
Unloading vxio driver...
NOTICE: attempt to unbind major 292 when driver is loaded

panic[cpu1]/thread=30001fe5520: BAD TRAP: type=31 rp=2a1005f7510 addr=28 mmu_fsr=0 occurred in module "vxio" due to a NULL pointer dereference

devfsadm: trap type = 0x31
addr=0x28
pid=893, pc=0x1264a2c, sp=0x2a1005f6db1, tstate=0x1607, context=0x1197
g1-g7: 13368f8, 2005, 30000073508, 28, 78023a7c, 0, 30001fe5520

000002a1005f7230 unix:die+80 (31, 2a1005f7510, 28, 0, 14a2290, fec7a7b0)
  %l0-3: 0000000000000000 0000000001413850 000002a1005f7510 000002a1005f7400
  %l4-7: 0000000000000031 000003000039ce58 000003000039ce80 0000030001e152a0
000002a1005f7310 unix:trap+8e4 (2a1005f7510, 0, 10000, 10200, 0, fec7a7b0)
  %l0-3: 0000000000000001 0000000000000000 00000300026b54b8 0000000000000031
  %l4-7: 0000000000000005 0000000000000001 0000000000000000 0000000000000000
000002a1005f7460 unix:ktl0+48 (124, ffffffff, 2a1005f77dc, 2a1005f77ee, 2a1005f7820, 3000041bd40)
  %l0-3: 0000000000000000 0000000000001400 0000000000001607 000000000102db68
  %l4-7: 0000030002904ac0 0000000000000000 0000000000000000 000002a1005f7510
000002a1005f75b0 vxio:vol_find_device+c (12400000005, 12400000005, 0, 920, 0, 1494400)
  %l0-3: 0000000000000000 0000030002904b60 000002a1005f7820 000003000041bd40
  %l4-7: 0000000000000000 0000030001fe0248 000000000149a800 000000000009d888
000002a1005f7660 vxio:vxioopen+7c (2a1005f7838, 2005, 78030040, 78023b70, 780301c8, 30000599f28)
  %l0-3: 0000000000000000 000002a1005f7838 0000012400000005 0000000001492400
  %l4-7: 0000000078023df0 0000000000000000 00000000fe9909fc 00000300026b54b8
000002a1005f7710 specfs:spec_open+114 (12400000005, 124, 30000599f28, 2a1005f7950, 30001e153a0, 30001e152a8)
  %l0-3: 0000030001e152a0 0000030001e152a0 0000000000000006 0000030001e153a0
  %l4-7: 0000000000002005 0000030000599f28 0000030001fe0248 00000000ffffffff
000002a1005f7840 genunix:vn_openat+414 (0, 0, 2005, 0, 2005, 2000)
  %l0-3: 00000000011810e8 0000000000000000 0000000000000000 0000000000000100
  %l4-7: 0000000000002005 0000000000000000 00000000fec7a8e0 0000000000000000
000002a1005f79e0 genunix:copen+2e0 (ffffffffffd19553, fec7a8e0, 2005, 0, fec7a85c, fec7a7b0)
  %l0-3: 0000000001494400 0000000000000000 0000000000002005 00000000fec7ace8
  %l4-7: 0000000000000000 0000000000000000 0000000000000000 0000000000000000

syncing file systems... 1 done
dumping to /dev/dsk/c0t1d0s1, offset 65536, content: kernel
100% done: 18031 pages dumped, compression ratio 5.39, dump succeeded
rebooting...
Resetting ...


Can't open input device.
Keyboard not present.  Using ttya for input and output.


Sun Enterprise 450 (2 X UltraSPARC-II 480MHz), No Keyboard
OpenBoot 3.18, 2048 MB memory installed, Serial #11947916.
Ethernet address 8:0:20:b6:4f:8c, Host ID: 80b64f8c.



Rebooting with command: boot                                          
Boot device: /pci@1f,4000/scsi@3/disk@0,0:a  File and args:
SunOS Release 5.9 Version Generic_118558-35 64-bit
Copyright 1983-2003 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
WARNING: forceload of drv/vxspec failed
WARNING: mod_installdrv: no major number for vxspec
WARNING: vxspec: _init exit1 code 6
WARNING: forceload of drv/vxspec failed
Configuring ATM interfaces:
NOTICE: VxVM not started
configuring IPv4 interfaces: hme0.
Hostname: sun
NOTICE: VxVM not started
NOTICE: VxVM not started
The system is coming up.  Please wait.
SUNW,hme0 : No response from Ethernet network : Link down -- cable problem?
starting rpc services: rpcbind done.
Setting netmask of hme0 to 255.255.255.0
Setting default IPv4 interface for multicast: add net 224.0/4: gateway sun
syslog service starting.
Dec  3 18:18:52 sun savecore: saving system crash dump in /var/crash/sun/*.0
Dec  3 18:18:56 sun hme: SUNW,hme0 : No response from Ethernet network : Link down -- cable problem?
Running ACT on Crash dump 0
volume management starting.
The system is ready.

sun console login: root
Password:
Dec  3 18:19:21 sun login: ROOT LOGIN /dev/console
Last login: Sun Dec  3 18:10:30 on console
Sun Microsystems Inc.   SunOS 5.9       Generic May 2002
You have new mail.
Sourcing //.profile-EIS.....


CODE:
root@sun # vi /etc/system
注释掉或删除掉:
* vxvm_START (do not remove)
forceload: drv/vxdmp
forceload: drv/vxio
forceload: drv/vxspec
forceload: drv/sd
forceload: drv/pcipsy
forceload: drv/ssd
rootdev:/pseudo/vxio@0:0
set vxio:vol_rootdev_is_volume=1
* vxvm_END (do not remove)


CODE:
root@sun # reboot


CODE:
root@sun # pkginfo |grep VRTS
application VRTSob                           VERITAS Enterprise Administrator Service
system      VRTSvxvm                         VERITAS Volume Manager, Binaries
root@sun # pkgrm VRTSob VRTSvxvm
这次成功删除

10.

CODE:
root@sun # rm -r /etc/vx


CODE:
root@sun # sync
root@sun # sync
root@sun # sync
root@sun # reboot
Dec  3 18:26:42 sun reboot: rebooted by root
SUNW,hme0 : No response from Ethernet network : Link down -- cable problem?
Dec  3 18:26:42 rpcbind: rpcbind terminating on signal.
Dec  3 18:26:42 sun syslogd: going down on signal 15
syncing file systems... done
rebooting...
Resetting ...


Can't open input device.
Keyboard not present.  Using ttya for input and output.


Sun Enterprise 450 (2 X UltraSPARC-II 480MHz), No Keyboard
OpenBoot 3.18, 2048 MB memory installed, Serial #11947916.
Ethernet address 8:0:20:b6:4f:8c, Host ID: 80b64f8c.



Rebooting with command: boot                                          
Boot device: /pci@1f,4000/scsi@3/disk@0,0:a  File and args:
SunOS Release 5.9 Version Generic_118558-35 64-bit
Copyright 1983-2003 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
Configuring ATM interfaces:
configuring IPv4 interfaces: hme0.
Hostname: sun
Configuring /dev and /devices
TSI: gfxp0 is GFX8P @ 1152x900
SUNW,hme0 : No response from Ethernet network : Link down -- cable problem?
/kernel/drv/sparcv9/fcsm: undefined symbol 'fc_ulp_get_port_login_params'
WARNING: mod_load: cannot load module 'fcsm'
Configuring the /dev directory (compatibility devices)
The system is coming up.  Please wait.
SUNW,hme0 : No response from Ethernet network : Link down -- cable problem?
starting rpc services: rpcbind done.
Setting netmask of hme0 to 255.255.255.0
Setting default IPv4 interface for multicast: add net 224.0/4: gateway sun
syslog service starting.
volume management starting.
The system is ready.

sun console login: root
Password:
Dec  3 18:30:33 sun login: ROOT LOGIN /dev/console
Last login: Sun Dec  3 18:19:21 on console
Sun Microsystems Inc.   SunOS 5.9       Generic May 2002
You have new mail.
Sourcing //.profile-EIS.....
root@sun # bash
11.安装Vxvm软件:

CODE:
root@sun # df -k
文件系统              千字节    用了    可用 容量      挂接在
/dev/dsk/c0t0d0s0    10080200 2610469 7368929    27%    /
/proc                      0       0       0     0%    /proc
mnttab                     0       0       0     0%    /etc/mnttab
fd                         0       0       0     0%    /dev/fd
swap                 3779576      32 3779544     1%    /var/run
swap                 3779552       8 3779544     1%    /tmp
/vol/dev/dsk/c1t6d0/sunw-vm3.5mp1zh
                      382832  382832       0   100%    /cdrom/sunw-vm3.5mp1zh
root@sun # cd /cdrom/cdrom0
root@sun # ls
copyright        pkgs             support
docs             release_notes    veritas_enabled
patches          scripts          win32
root@sun # cd pkgs/
root@sun # ls
VRTSfspro  VRTSmuob   VRTSob     VRTSvmdoc  VRTSvmzhc  VRTSvxvm
VRTSmufsp  VRTSmuobg  VRTSobgui  VRTSvmman  VRTSvmzhd
VRTSmulic  VRTSmuvmp  VRTSvlic   VRTSvmpro  VRTSvmzhm
root@sun # pkgadd -d .

下列软件包是可以使用的:
  1  VRTSfspro     VERITAS File System Management Services Provider
                   (sparc) 3.5,REV=GA06d
  2  VRTSmufsp     Multi Language VERITAS File System Management Services Provider
                   (sparc) 3.5MP1J,REV=GA04
  3  VRTSmulic     VERITAS License Utilities
                   (sparc) 3.00.007i
  4  VRTSmuob      MultiLanguage VERITAS Enterprise Administrator Service - Message Catalogs
                   (sparc) 3.0.2.261
  5  VRTSmuobg     Multi Language VERITAS Enterprise Administrator Gui Message - Catalogs
                   (sparc) 3.0.2.261
  6  VRTSmuvmp     Multi Language VERITAS Volume Manager Management Services Provider
                   (sparc) 3.5-MP1,REV=11.20.2002.08.15
  7  VRTSob        VERITAS Enterprise Administrator Service
                   (sparc) 3.0.2.261
  8  VRTSobgui     VERITAS Enterprise Administrator
                   (sparc) 3.0.2.261
  9  VRTSvlic      VERITAS License Utilities
                   (sparc) 3.00.007d
10  VRTSvmdoc     VERITAS Volume Manager (user documentation)
                   (sparc) 3.5,REV=06.24.2002.11.52

... 6 more menu choices to follow;
for more choices, to stop display:

11  VRTSvmman     VERITAS Volume Manager, Manual Pages
                   (sparc) 3.5,REV=06.21.2002.23.14
12  VRTSvmpro     VERITAS Volume Manager Management Services Provider
                   (sparc) 3.5s,REV=06.26.2002.13.38
13  VRTSvmzhc     VERITAS Volume Manager - Message Catalogs - Chinese
                   (sparc) 3.5,REV=11.27.2002.12.35
14  VRTSvmzhd     VERITAS Volume Manager, Chinese Documentation
                   (sparc) 3.5,REV=12.06.2002.15.45
15  VRTSvmzhm     VERITAS Volume Manager, Manual Pages - Chinese
                   (sparc) 3.5,REV=11.27.2002.12.35
16  VRTSvxvm      VERITAS Volume Manager, Binaries
                   (sparc) 3.5,REV=06.21.2002.23.14

选择你要执行的软件包(或选择'全部'执行所有的软件包). (default: all) [?,??,q]: 7 8 9 10 11 12 16
安装到VRTSvxvm这个包的时候要选择Solaris的系统版本,大家注意一下哈

CODE:
处理软件包范例来自

VERITAS Volume Manager, Binaries
(sparc) 3.5,REV=06.21.2002.23.14
Copyright 1996-2002 VERITAS Software Corporation. All rights reserved.
VERITAS, VERITAS SOFTWARE, the VERITAS logo and all other VERITAS
product names and slogans are trademarks or registered
trademarks of VERITAS Software Corporation in the USA and/or other
countries. Other product names and/or slogans mentioned herein may
be trademarks or registered trademarks of their respective companies.

        This package, VxVM 3.5, is supported on Solaris 2.6, 7, 8, and 9.
        You  appear  to be running Solaris 9. Press ENTER to install VxVM
        3.5 for Solaris 9, or enter another Solaris version number if you
        are  certain that you want to install the drivers for a different
        release of Solaris.


        Install for which version of Solaris?
        [9, 8, 7, 2.6] (default: 9):
Installing VxVM for Solaris 9
。。。。。
12.重新封装根盘:

CODE:
root@sun # vxinstall

  VxVM uses license keys to control access.  If you have a SPARCstorage
  Array (SSA) controller or a Sun Enterprise Network Array (SENA) controller
  attached to your system, then VxVM will grant you a limited use license
  automatically.  The SSA and/or SENA license grants you unrestricted use
  of disks attached to an SSA or SENA controller, but disallows striping,
  RAID-5, and DMP on non-SSA and non-SENA disks.  If you are not running an
  SSA or SENA controller, then you must obtain a license key to operate.

  Licensing information:
    System host ID: 80b64f8c
    Host type: SUNW,Ultra-4
    SPARCstorage Array or Sun Enterprise Network Array: No arrays found

  No valid licenses found.

  VM lite/full license(s) is needed to proceed with vxinstall.

Are you prepared to enter a license key [y,n,q,?] (default: y) y

VERITAS License Manager vxlicinst utility version 3.00.007d
Copyright (C) VERITAS Software Corp 2002. All Rights reserved.

Enter your license key : XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XX
Number of days left for Demo = 59

License key successfully installed for VERITAS Volume Manager

Do you wish to enter another license key [y,n,q,?] (default: n)



Volume Manager Installation
Menu: VolumeManager/Install

  VxVM will use the following format to name disks on the host:

        _

  In the above format, is the logical name of the enclosure
  to which the disk belongs. VxVM assigns default enclosure names which can
  be changed according to the user requirements.

  Some examples would be:

        hitachi0_2      - second disk detected in enclosure 'hitachi0'
        enggdept_2      - second disk detected in enclosure 'enggdept'
        dgc1_1          - first disk detected in enclosure 'dgc1'
        jbod_1          - first disk detected in the jbod category

  For non-public loop disks (Ex. FC disks directly connected to the host
  or through hubs), you could choose to use the c#t#d#s# naming format.

Do you want to use enclosure based names for all disks ?
[y,n,q,?] (default: n)

Generating list of attached disk arrays....


Volume Manager Installation
Menu: VolumeManager/Install

  The Volume Manager has detected the following categories of storage
  connected to your system:

  Enclosures:     OTHER_DISKS

Hit RETURN to continue.


Volume Manager Installation
Menu: VolumeManager/Install

  You will now be asked if you wish to use Quick Installation or
  Custom Installation.  Custom Installation allows you to select how
  the Volume Manager will handle the installation of each disk
  attached to your system.

  Quick Installation examines each disk attached to your system and
  attempts to create volumes to cover all disk partitions that might
  be used for file systems or for other similar purposes.

  If you want to exclude any devices from being seen by VxVM or not
  be multipathed by vxdmp then use the Prevent multipathing/Suppress
  devices from VxVM's view option, before you choose Custom Installation
  or Quick Installation.

  If you do not wish to use some disks with the Volume Manager, or if
  you wish to reinitialize some disks, use the Custom Installation
  option Otherwise, we suggest that you use the Quick Installation
  option.
Hit RETURN to continue.


Volume Manager Installation Options
Menu: VolumeManager/Install

1      Quick Installation
2      Custom Installation
3      Prevent multipathing/Suppress devices from VxVM's view

?      Display help about menu
??     Display help about the menuing system
q      Exit from menus

Select an operation to perform: 2



Volume Manager Custom Installation
Menu: VolumeManager/Install/Custom

  The c0t0d0 disk is your Boot Disk.  You can not add it as a new
  disk.  If you encapsulate it, you will make your root file system
  and other system areas on the Boot Disk into volumes.  This is
  required if you wish to mirror your root file system or system
  swap area.

Encapsulate Boot Disk [y,n,q,?] (default: n) y

Enter disk name for  [,q,?] (default: rootdisk)

  The c0t0d0 disk has been configured for encapsulation.

Hit RETURN to continue.


Volume Manager Custom Installation
Menu: VolumeManager/Install/Custom/OTHER_DISKS

Disk array serial number : OTHER_DISKS

Generating list of disks in disk array OTHER_DISKS....



  The Volume Manager has detected the following disks in enclosure OTHER_DISKS:

  c0t1d0

Hit RETURN to continue.


Installation options for controller OTHER_DISKS
Menu: VolumeManager/Install/Custom/OTHER_DISKS

1      Install all disks as pre-existing disks. (encapsulate)
2      Install all disks as new disks. (discards data on disks!)
3      Install one disk at a time.
4      Leave these disks alone.

?      Display help about menu
??     Display help about the menuing system
q      Exit from menus

Select an operation to perform: 4



Volume Manager Custom Installation
Menu: VolumeManager/Install/Custom/OTHER_DISKS

  The following is a summary of your choices.

        c0t0d0                          Encapsulate


Is this correct [y,n,q,?] (default: y) y

  The system now must be shut down and rebooted in order to continue
the reconfiguration.

Shutdown and reboot now [y,n,q,?] (default: n) y

Shutdown started.    2006年12月03日 星期日 18时41分17秒 CST

Changing to init state 6 - please wait
Broadcast Message from root (console) on sun 日 12月  3 18:41:17...
THE SYSTEM sun IS BEING SHUT DOWN NOW ! ! !
Log off now or risk your files being damaged


showmount: sun: RPC: 程序未注册
root@sun #
INIT: New run level: 6
The system is coming down.  Please wait.
System services are now being stopped.
打印服务已经停止。
SUNW,hme0 : No response from Ethernet network : Link down -- cable problem?
Request is in process..
Server was not running
The system is down.
syncing file systems... done
rebooting...
Resetting ...


Can't open input device.
Keyboard not present.  Using ttya for input and output.


Sun Enterprise 450 (2 X UltraSPARC-II 480MHz), No Keyboard
OpenBoot 3.18, 2048 MB memory installed, Serial #11947916.
Ethernet address 8:0:20:b6:4f:8c, Host ID: 80b64f8c.



Rebooting with command: boot                                          
Boot device: /pci@1f,4000/scsi@3/disk@0,0:a  File and args:
SunOS Release 5.9 Version Generic_118558-35 64-bit
Copyright 1983-2003 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
Configuring ATM interfaces:
NOTICE: VxVM not started
configuring IPv4 interfaces: hme0.
Hostname: sun
NOTICE: VxVM not started
Configuring /dev and /devices
SUNW,hme0 : No response from Ethernet network : Link down -- cable problem?
TSI: gfxp0 is GFX8P @ 1152x900
/kernel/drv/sparcv9/fcsm: undefined symbol 'fc_ulp_get_port_login_params'
WARNING: mod_load: cannot load module 'fcsm'
Configuring the /dev directory (compatibility devices)
NOTICE: VxVM not started

  The Volume Manager is now reconfiguring (partition phase)...

  Volume Manager: Partitioning c0t0d0 as an encapsulated disk.
/dev/dsk/c0t0d0s1 was dump device --
invoking dumpadm(1M) -d swap to select new dump device

  The Volume Manager is now reconfiguring (initialization phase)...

  Volume Manager: Adding rootdisk (c0t0d0) as an encapsulated disk.
vxvm:vxconfigd: WARNING: Disk c0t1d0s2 names group rootdg, but group ID differs

  The Volume Daemon has been enabled for transactions.
Adding volumes for c0t0d0...
Starting new volumes...
Updating /etc/vfstab...
Remove encapsulated partitions...

The Volume Manager will now set up your Boot Disk as a managed disk.

Saving original configuration...
16 blocks

  The system will now be rebooted.
syncing file systems... done
rebooting...
Resetting ...


Can't open input device.
Keyboard not present.  Using ttya for input and output.


Sun Enterprise 450 (2 X UltraSPARC-II 480MHz), No Keyboard
OpenBoot 3.18, 2048 MB memory installed, Serial #11947916.
Ethernet address 8:0:20:b6:4f:8c, Host ID: 80b64f8c.



Rebooting with command: boot                                          
Boot device: /pci@1f,4000/scsi@3/disk@0,0:a  File and args:
SunOS Release 5.9 Version Generic_118558-35 64-bit
Copyright 1983-2003 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
WARNING: Error writing ufs log state
WARNING: ufs log for / changed state to Error
WARNING: Please umount(1M) / and run fsck(1M)
Configuring ATM interfaces:
Starting VxVM restore daemon...
VxVM starting in boot mode...
/usr/sbin/prtconf: getexecname() failed
vxvm:vxconfigd: WARNING: Disk c0t1d0s2 names group rootdg, but group ID differs
configuring IPv4 interfaces: hme0.
Hostname: sun
VxVM starting special volumes ( swapvol rootvol )...
Configuring /dev and /devices
SUNW,hme0 : No response from Ethernet network : Link down -- cable problem?
TSI: gfxp0 is GFX8P @ 1152x900
/kernel/drv/sparcv9/fcsm: undefined symbol 'fc_ulp_get_port_login_params'
WARNING: mod_load: cannot load module 'fcsm'
Configuring the /dev directory (compatibility devices)
VxVM general startup...
vxvm: NOTE: Setting partition /dev/dsk/c0t0d0s1 as the dump device
The system is coming up.  Please wait.
SUNW,hme0 : No response from Ethernet network : Link down -- cable problem?
starting rpc services: rpcbind done.
Setting netmask of hme0 to 255.255.255.0
Setting default IPv4 interface for multicast: add net 224.0/4: gateway sun
syslog service starting.

  No VVR license installed on the system; vradmind not started.

  No VVR license installed on the system; in.vxrsyncd not started.
volume management starting.
The system is ready.

sun console login: root
Password:
Last login: Sun Dec  3 18:30:33 on console
Dec  3 18:48:14 sun login: ROOT LOGIN /dev/console
Sun Microsystems Inc.   SunOS 5.9       Generic May 2002
You have new mail.
Sourcing //.profile-EIS.....
root@sun # eject
root@sun # vxdisk list
DEVICE       TYPE      DISK         GROUP        STATUS
c0t0d0s2     sliced    rootdisk     rootdg       online
c0t1d0s2     sliced    -            -            online
13.重新对根盘做镜像:

CODE:
root@sun # vxdiskunsetup -C c0t1d0
root@sun # vxdisksetup -i c0t1d0
root@sun # vxdg adddisk mirrdisk=c0t1d0
root@sun # vxdisk list
DEVICE       TYPE      DISK         GROUP        STATUS
c0t0d0s2     sliced    rootdisk     rootdg       online
c0t1d0s2     sliced    mirrdisk     rootdg       online
root@sun # vxmirror  rootdisk mirrdisk &
[1] 919
root@sun # vxtask list
TASKID  PTID TYPE/STATE    PCT   PROGRESS
   161           ATCOPY/R 00.76% 0/20480121/155000 PLXATT rootvol rootvol-02
root@sun # vxtask list
TASKID  PTID TYPE/STATE    PCT   PROGRESS
   161           ATCOPY/R 01.78% 0/20480121/363816 PLXATT rootvol rootvol-02
root@sun # vxdisk list
DEVICE       TYPE      DISK         GROUP        STATUS
c0t0d0s2     sliced    rootdisk     rootdg       online
c0t1d0s2     sliced    mirrdisk     rootdg       online
14.最终完成对根盘的反封装和重新封装及镜像:

CODE:
root@sun # vxprint -ht
Disk group: rootdg

DG NAME         NCONFIG      NLOG     MINORS   GROUP-ID
DM NAME         DEVICE       TYPE     PRIVLEN  PUBLEN   STATE
RV NAME         RLINK_CNT    KSTATE   STATE    PRIMARY  DATAVOLS  SRL
RL NAME         RVG          KSTATE   STATE    REM_HOST REM_DG    REM_RLNK
V  NAME         RVG          KSTATE   STATE    LENGTH   READPOL   PREFPLEX UTYPE
PL NAME         VOLUME       KSTATE   STATE    LENGTH   LAYOUT    NCOL/WID MODE
SD NAME         PLEX         DISK     DISKOFFS LENGTH   [COL/]OFF DEVICE   MODE
SV NAME         PLEX         VOLNAME  NVOLLAYR LENGTH   [COL/]OFF AM/NM    MODE
DC NAME         PARENTVOL    LOGVOL
SP NAME         SNAPVOL      DCO

dg rootdg       default      default  0        1165142675.1025.sun

dm mirrdisk     c0t1d0s2     sliced   2888     71124291 -
dm rootdisk     c0t0d0s2     sliced   2888     71124291 -

v  rootvol      -            ENABLED  ACTIVE   20480121 ROUND     -        root
pl rootvol-01   rootvol      ENABLED  ACTIVE   20480121 CONCAT    -        RW
sd rootdisk-02  rootvol-01   rootdisk 50644170 20480121 0         c0t0d0   ENA
pl rootvol-02   rootvol      ENABLED  ACTIVE   20480121 CONCAT    -        RW
sd mirrdisk-01  rootvol-02   mirrdisk 0        20480121 0         c0t1d0   ENA

v  swapvol      -            ENABLED  ACTIVE   4191939  ROUND     -        swap
pl swapvol-01   swapvol      ENABLED  ACTIVE   4191939  CONCAT    -        RW
sd rootdisk-01  swapvol-01   rootdisk 0        4191939  0         c0t0d0   ENA
pl swapvol-02   swapvol      ENABLED  ACTIVE   4191939  CONCAT    -        RW
sd mirrdisk-02  swapvol-02   mirrdisk 20480121 4191939  0         c0t1d0   ENA
如有类同,纯属巧合
阅读(6268) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

lxh36032010-08-15 14:35:05

现在VERITAS的主流版本已经是5.0,5.1了,变化很大。