Linux jbod by path,Vxvm3.5单机下对根盘的反封装和重新封装及镜像

本文详细记录了SunOS系统中进行磁盘配置和管理的过程,包括对根磁盘进行反封装、重新封装以及设置镜像。通过具体操作步骤展示了如何使用VxVM进行磁盘管理。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

,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[/code]

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[/code]

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[/code]

如有类同,纯属巧合

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值