免费注册 查看新帖 |

Chinaunix

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

请各位指点 vxvm同步完后 vxdisk list 状态不正常(已解决) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-04-17 12:54 |只看该作者 |倒序浏览
#uname -a
SunOS xx 5.8 Generic_117000-03 sun4u sparc SUNW,Sun-Fire-480R

#scinstall -pv
Sun Cluster 3.1u1 for Solaris 8 sparc

#pkgifno -l VRTSvxvm
bash: pkgifno: command not found
{root@}/opt:pkginfo -l VRTSvxvm
   PKGINST:  VRTSvxvm
      NAME:  VERITAS Volume Manager, Binaries
  CATEGORY:  system
      ARCH:  sparc
   VERSION:  4.0,REV=12.06.2003.01.35
   BASEDIR:  /
    VENDOR:  VERITAS Software
      DESC:  Virtual Disk Subsystem
    PSTAMP:  VERITAS-4.0R_p1.4:14-January-2004
  INSTDATE:  Jan 25 2005 01:07
   HOTLINE:  800-342-0652
     EMAIL:  support@veritas.com
    STATUS:  completely installed
     FILES:      823 installed pathnames
                  24 shared pathnames
                  18 linked files
                  97 directories
                 411 executables
              257731 blocks used (approx)

#vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c1t0d0s2     auto:sliced     rootsmsc1    rootdg       online
c1t1d0s2     auto:sliced     rootdg01     rootdg       error
c1t1d0s2     auto            -            -            error
c1t1d0s2     auto            -            -            error
c1t1d0s2     auto            -            -            error
c1t1d0s2     auto            -            -            error
c5t4d0s2     auto:cdsdisk    datadg01     datadg       online
c6t4d0s2     auto:cdsdisk    datadg02     datadg       online



#vxprint -ht
Disk group: rootdg

DG NAME         NCONFIG      NLOG     MINORS   GROUP-ID
ST NAME         STATE        DM_CNT   SPARE_CNT         APPVOL_CNT
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
CO NAME         CACHEVOL     KSTATE   STATE
VT NAME         NVOLUME      KSTATE   STATE
V  NAME         RVG/VSET/CO  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
SC NAME         PLEX         CACHE    DISKOFFS LENGTH   [COL/]OFF DEVICE   MODE
DC NAME         PARENTVOL    LOGVOL
SP NAME         SNAPVOL      DCO

dg rootdg       default      default  77000    1106596681.8.nx-smsc1

dm rootdg01     c1t1d0s2     auto     10175    143339136 -
dm rootsmsc1    c1t0d0s2     auto     20351    143328960 -

v  globaldevices -           ENABLED  ACTIVE   1536576  ROUND     -        gen
pl globaldevices-01 globaldevices ENABLED ACTIVE 1536576 CONCAT   -        RW
sd rootdg01-03  globaldevices-01 rootsmsc1 141680447 1536576 0    c1t0d0   ENA
pl globaldevices-02 globaldevices ENABLED ACTIVE 1536576 CONCAT   -        RW
sd rootdg01-12  globaldevices-02 rootdg01 141680448 1536576 0     c1t1d0   ENA

v  rootvol      -            ENABLED  ACTIVE   25175424 ROUND     -        root
pl rootvol-01   rootvol      ENABLED  ACTIVE   25175424 CONCAT    -        RW
sd rootdg01-B0  rootvol-01   rootsmsc1 143328959 1      0         c1t0d0   ENA
sd rootdg01-02  rootvol-01   rootsmsc1 0       25175423 1         c1t0d0   ENA
pl rootvol-02   rootvol      ENABLED  ACTIVE   25175424 CONCAT    -        RW
sd rootdg01-09  rootvol-02   rootdg01 0        25175424 0         c1t1d0   ENA

v  swapvol      -            ENABLED  ACTIVE   33560448 ROUND     -        swap
pl swapvol-01   swapvol      ENABLED  ACTIVE   33560448 CONCAT    -        RW
sd rootdg01-01  swapvol-01   rootsmsc1 25175423 33560448 0        c1t0d0   ENA
pl swapvol-02   swapvol      ENABLED  ACTIVE   33560448 CONCAT    -        RW
sd rootdg01-10  swapvol-02   rootdg01 25175424 33560448 0         c1t1d0   ENA

v  users        -            ENABLED  ACTIVE   82944576 ROUND     -        gen
pl users-01     users        ENABLED  ACTIVE   82944576 CONCAT    -        RW
sd rootdg01-04  users-01     rootsmsc1 58735871 82944576 0        c1t0d0   ENA
pl users-02     users        ENABLED  ACTIVE   82944576 CONCAT    -        RW
sd rootdg01-11  users-02     rootdg01 58735872 82944576 0         c1t1d0   ENA

Disk group: datadg

DG NAME         NCONFIG      NLOG     MINORS   GROUP-ID
ST NAME         STATE        DM_CNT   SPARE_CNT         APPVOL_CNT
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
CO NAME         CACHEVOL     KSTATE   STATE
VT NAME         NVOLUME      KSTATE   STATE
V  NAME         RVG/VSET/CO  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
SC NAME         PLEX         CACHE    DISKOFFS LENGTH   [COL/]OFF DEVICE   MODE
DC NAME         PARENTVOL    LOGVOL
SP NAME         SNAPVOL      DCO

dg datadg       default      default  27000    1106621046.16.xx

dm datadg01     c5t4d0s2     auto     2048     353012992 -
dm datadg02     c6t4d0s2     auto     2048     353012992 -

v  datavol      -            ENABLED  ACTIVE   353011712 SELECT   -        fsgen
pl datavol-03   datavol      ENABLED  ACTIVE   353011712 CONCAT   -        RW
sv datavol-S01  datavol-03   datavol-L01 1     353011712 0        2/2      ENA

v  datavol-L01  -            ENABLED  ACTIVE   353011712 SELECT   -        fsgen
pl datavol-P01  datavol-L01  ENABLED  ACTIVE   353011712 CONCAT   -        RW
sd datadg01-02  datavol-P01  datadg01 0        353011712 0        c5t4d0   ENA
pl datavol-P02  datavol-L01  ENABLED  ACTIVE   353011712 CONCAT   -        RW
sd datadg02-02  datavol-P02  datadg02 0        353011712 0        c6t4d0   ENA
在线的业务,不能重启。请各位有碰到过这类的指点一下谢谢。

[ 本帖最后由 随风漂浮 于 2007-4-18 20:59 编辑 ]

论坛徽章:
2
双鱼座
日期:2014-02-23 12:10:03操作系统版块每日发帖之星
日期:2015-12-17 06:20:00
2 [报告]
发表于 2007-04-17 14:06 |只看该作者
既然硬盘已经换好,还是出现error的状态,建议将镜像卷删除重新镜像一下看看!
1.# vxedit -rf rm users-02
   # vxedit -rf rm swapvol-02
   # vxedit -rf rm rootvol-02
   # vxedit -rf rm globaldevices-02
2.# vxdg -g rootdg rmdisk rootdg01     
3.# vxdiskunsetup -C c1t1d0
4.# vxdisksetup -i c1t1d0
5.# vxdg -g rootdg adddisk rootdg01=c1t1d0
6.# vxmirror rootsmsc1  rootdg01 &

good luck!

论坛徽章:
0
3 [报告]
发表于 2007-04-17 20:10 |只看该作者
谢谢蜘蛛,实不得已情况下再按你的方法做。

论坛徽章:
0
4 [报告]
发表于 2007-04-17 20:17 |只看该作者
下午运行了vxdisk offline c1t1d0 然后再运行vxdisk online c1t1d0 后出现如下:

vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c1t0d0s2     auto:sliced     rootsmsc1    rootdg       online
c1t1d0s2     auto:sliced     rootdg01     rootdg       online
c1t1d0s2     auto            -            -            offline
c1t1d0s2     auto            -            -            error
c1t1d0s2     auto            -            -            error
c1t1d0s2     auto            -            -            error
c5t4d0s2     auto:cdsdisk    datadg01     datadg       online
c6t4d0s2     auto:cdsdisk    datadg02     datadg       online


进入图行界面后看到的c1t1d0s0 状态是imported

论坛徽章:
2
双鱼座
日期:2014-02-23 12:10:03操作系统版块每日发帖之星
日期:2015-12-17 06:20:00
5 [报告]
发表于 2007-04-17 20:32 |只看该作者
vol都正常吗?

论坛徽章:
0
6 [报告]
发表于 2007-04-17 20:37 |只看该作者
你指的是#vxprint -ht
Disk group: rootdg

DG NAME         NCONFIG      NLOG     MINORS   GROUP-ID
ST NAME         STATE        DM_CNT   SPARE_CNT         APPVOL_CNT
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
CO NAME         CACHEVOL     KSTATE   STATE
VT NAME         NVOLUME      KSTATE   STATE
V  NAME         RVG/VSET/CO  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
SC NAME         PLEX         CACHE    DISKOFFS LENGTH   [COL/]OFF DEVICE   MODE
DC NAME         PARENTVOL    LOGVOL
SP NAME         SNAPVOL      DCO

dg rootdg       default      default  77000    1106596681.8.xx
dm rootdg01     c1t1d0s2     auto     10175    143339136 -
dm rootsmsc1    c1t0d0s2     auto     20351    143328960 -

v  globaldevices -           ENABLED  ACTIVE   1536576  ROUND     -        gen
pl globaldevices-01 globaldevices ENABLED ACTIVE 1536576 CONCAT   -        RW
sd rootdg01-03  globaldevices-01 rootsmsc1 141680447 1536576 0    c1t0d0   ENA
pl globaldevices-02 globaldevices ENABLED ACTIVE 1536576 CONCAT   -        RW
sd rootdg01-12  globaldevices-02 rootdg01 141680448 1536576 0     c1t1d0   ENA

v  rootvol      -            ENABLED  ACTIVE   25175424 ROUND     -        root
pl rootvol-01   rootvol      ENABLED  ACTIVE   25175424 CONCAT    -        RW
sd rootdg01-B0  rootvol-01   rootsmsc1 143328959 1      0         c1t0d0   ENA
sd rootdg01-02  rootvol-01   rootsmsc1 0       25175423 1         c1t0d0   ENA
pl rootvol-02   rootvol      ENABLED  ACTIVE   25175424 CONCAT    -        RW
sd rootdg01-09  rootvol-02   rootdg01 0        25175424 0         c1t1d0   ENA

v  swapvol      -            ENABLED  ACTIVE   33560448 ROUND     -        swap
pl swapvol-01   swapvol      ENABLED  ACTIVE   33560448 CONCAT    -        RW
sd rootdg01-01  swapvol-01   rootsmsc1 25175423 33560448 0        c1t0d0   ENA
pl swapvol-02   swapvol      ENABLED  ACTIVE   33560448 CONCAT    -        RW
sd rootdg01-10  swapvol-02   rootdg01 25175424 33560448 0         c1t1d0   ENA

v  users        -            ENABLED  ACTIVE   82944576 ROUND     -        gen
pl users-01     users        ENABLED  ACTIVE   82944576 CONCAT    -        RW
sd rootdg01-04  users-01     rootsmsc1 58735871 82944576 0        c1t0d0   ENA
pl users-02     users        ENABLED  ACTIVE   82944576 CONCAT    -        RW
sd rootdg01-11  users-02     rootdg01 58735872 82944576 0         c1t1d0   ENA

Disk group: datadg

DG NAME         NCONFIG      NLOG     MINORS   GROUP-ID
ST NAME         STATE        DM_CNT   SPARE_CNT         APPVOL_CNT
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
CO NAME         CACHEVOL     KSTATE   STATE
VT NAME         NVOLUME      KSTATE   STATE
V  NAME         RVG/VSET/CO  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
SC NAME         PLEX         CACHE    DISKOFFS LENGTH   [COL/]OFF DEVICE   MODE
DC NAME         PARENTVOL    LOGVOL
SP NAME         SNAPVOL      DCO

dg datadg       default      default  27000    1106621046.16.nx-smsc1

dm datadg01     c5t4d0s2     auto     2048     353012992 -
dm datadg02     c6t4d0s2     auto     2048     353012992 -

v  datavol      -            ENABLED  ACTIVE   353011712 SELECT   -        fsgen
pl datavol-03   datavol      ENABLED  ACTIVE   353011712 CONCAT   -        RW
sv datavol-S01  datavol-03   datavol-L01 1     353011712 0        2/2      ENA

v  datavol-L01  -            ENABLED  ACTIVE   353011712 SELECT   -        fsgen
pl datavol-P01  datavol-L01  ENABLED  ACTIVE   353011712 CONCAT   -        RW
sd datadg01-02  datavol-P01  datadg01 0        353011712 0        c5t4d0   ENA
pl datavol-P02  datavol-L01  ENABLED  ACTIVE   353011712 CONCAT   -        RW
sd datadg02-02  datavol-P02  datadg02 0        353011712 0        c6t4d0   ENA
现在好像都正常了。就是不明白多了个c1t1d0s2     auto            -            -            offline

[ 本帖最后由 随风漂浮 于 2007-4-18 10:42 编辑 ]

论坛徽章:
0
7 [报告]
发表于 2007-04-17 22:01 |只看该作者
原帖由 随风漂浮 于 2007-4-17 20:37 发表
你指的是#vxprint -ht
Disk group: rootdg

DG NAME         NCONFIG      NLOG     MINORS   GROUP-ID
ST NAME         STATE        DM_CNT   SPARE_CNT         APPVOL_CNT
DM NAME         DEVICE       ...


以上情况应该是你没有严格按照vxvm下FC DISK的换盘步骤来做.

论坛徽章:
0
8 [报告]
发表于 2007-04-18 10:47 |只看该作者

问题解决,重启机器。

以前有碰到过类似情况也是重启,想找个不用重启的方法。

论坛徽章:
0
9 [报告]
发表于 2007-04-18 21:01 |只看该作者
当天就是按以下一同事给的文档,本来应该说不用重启的,可能哪步出错了。


Document Marking:
[Mark this Document for download]  |   [View/Edit Marked Documents]  
Document Notifications:
[Subscribe to this Document (alerted of changes)]  |   [Subscribe to the INFODOC Collection (alerted of additions)]  |   [View/Edit Subscriptions]  

--------------------------------------------------------------------------------



Document Audience: SPECTRUM
Document ID: 40842
Title: Veritas Volume Manager - Procedure to Replace Internal FibreChannel (FC) Disks controlled by VxVM
Copyright Notice: Copyright 漏 2006 Sun Microsystems, Inc. All Rights Reserved
Update Date: Fri Jun 16 00:00:00 MDT 2006
Products:  VERITAS Volume Manager 3.0.2 Software,  Sun Fire 280R Server,  Sun Fire V880 Server,  Sun Fire V480 Server,  VERITAS Volume Manager 4.0 Software,  VERITAS Volume Manager 3.5 Software,  VERITAS Volume Manager 3.2 Software,  VERITAS Volume Manager 3.1 Software,  VERITAS Volume Manager 3.0.4 Software,  VERITAS Volume Manager 3.2 for Solaris 9,  Sun Cluster Manager 3.2,  Sun Cluster 3.1,  Sun Cluster 3.0,  Sun Fire V880z Visualization Server,  Sun Fire V890 Server,  Sun Fire V490 Server
Technical Areas:  Disk,  LVM (Logical Volume Management),  High Availability,  Fibre Channel

--------------------------------------------------------------------------------


--------------------------------------------------------------------------------

Keyword(s):VxVM, Volume Manager, suncluster, cluster, upgrade, upgrading, configure, configured, configuration, disk, failed, replace, replace disk, 480, 490, 280, 880, 890, V880, V890, V480, V490, 280R

Description: Top

A specific procedure must be used when replacing one of the internal disks in a system with internal fibre drives (Sun Fire[TM] 280R, Sun Fire[TM] V480, Sun Fire[TM] V490, Sun Fire[TM] V880, Sun Fire[TM] V890), especially if the disk is under Veritas Volume Manager (VxVM) control. Although these disks are hot-swappable, the procedure below should be used to alert VxVM to the fact that the drive is being replaced. This document applies to Veritas Volume Manager (VxVM) 3.x. This document also assumes that you are running either:

   Solaris[TM] 8, 9 or 10 Operating System(OS),
   Solaris[TM] 7 OS, with kernel patch 106541-08 or higher.  

This is required to get the functionality of the devfsadm command.

Failure to follow this procedure could result in a duplicate entry for the replaced disk in VxVM. This is most notable when running a 'vxdisk list' command.

For example:

  # vxdisk list
  DEVICE       TYPE      DISK         GROUP        STATUS
  c1t0d0s2     sliced    rootdisk     rootdg       online
  c1t1d0s2     sliced    -            -            error
  c1t1d0s2     sliced    -            -            error

The extra device will disappear after the next reboot, which seems to be the only way to remove it. Therefore, it is best to prevent the duplicate device from being created in the first place. This is accomplished by the following procedure. Steps 9a - 9c pertain only to Sun[TM] Cluster 3.x installations.

If the disk is not under VxVM control, you can skip steps 2,4,9-11

Document Body: Top

NOTE: All data on these devices should have been backed up.

Before replacing any disk under VxVM control, it should be in either a 'failed' or 'removed' state:

  # vxdisk list
  DEVICE       TYPE      DISK         GROUP        STATUS
  c1t0d0s2     sliced    rootdisk     rootdg       online
  c1t1d0s2     sliced    -            -            online
  -            -         disk01       rootdg       failed was:c1t1d0s2

If the disk does not show up as "failed was", as shown above, then you should run 'vxdiskadm' and choose option #4 to remove the disk for replacement. After running 'vxdiskadm', the output should look like this:

  # vxdisk list
  DEVICE       TYPE      DISK         GROUP        STATUS
  c1t0d0s2     sliced    rootdisk     rootdg       online
  c1t1d0s2     sliced    -            -            online
  -            -         disk01       rootdg       removed was:c1t1d0s2

NOTE:
If this is a root-disk or root-mirror, check the following removed disk
information, before this operation. This information is needed to change nvramrc.

WWN

     For example,

     # ls -al /dev/rdsk/c1t0d0s0
     lrwxrwxrwx   1 root     root          74 Mar  6  2003 c1t0d0s0 -> ../../  
     devices/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000004cfa19920,0:a,raw

devalias and boot-device in nvramrc

     For example,

     # eeprom nvramrc

     devalias rootdisk /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100004cfa19920,0:a
     devalias mirrdisk /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100004cfa19838,0:a

     boot-device=rootdisk mirrdisk

1. If this is a root-disk or root-mirror, use the dumpadm command to ensure
   that the dump-device is not on the failed disk. If it is, move it to the  
   good side of the mirror, for example:

     dumpadm -d /dev/dsk/c1t0d0s1

2. If vxdiskadm option 4 is used to remove the disk for replacement, instruct
   VxVM to re-read the device tree by running the command

     # vxdctl enable

3. Put the disk into the "offline" state with the following command:

     # vxdisk offline c1t1d0s2

4. Verify the disk has been marked "offline" with "vxdisk list":

     # vxdisk list
     DEVICE       TYPE      DISK         GROUP        STATUS
     c1t0d0s2     sliced    rootdisk     rootdg       online
     c1t1d0s2     sliced    -            -            offline
     -            -         disk01       rootdg       removed was:c1t1d0s2

5. Once Veritas has recognized the disk as offline and ready for replacement,
   you need to tell the operating system. This is done as follows:

     # /usr/sbin/luxadm remove_device /dev/rdsk/c1t1d0s2

   This will produce output similar to the following:

     WARNING!!! Please ensure that no file systems are mounted on these device(s).

     All data on these devices should have been backed up.

   The list of devices which will be removed is:

   1: Device name: /dev/rdsk/c1t1d0s2 Node WWN: 20000020371b1f31
   Device Type: Disk device
   Device Paths: /dev/rdsk/c1t1d0s2
   Please verify the above list of devices and then enter c or <CR> to
   Continue or q to Quit. [Default: c]:c
   stopping: /dev/rdsk/c1t1d0s2.... Done
   offlining: /dev/rdsk/c1t1d0s2.... Done
   The drives are now off-line and spun down.
   Physically remove the disk and press the Return key.

   Hit <Return> after removing the device(s).

   <date> <systemname> picld[87]: Device DISK1 removed
   Device: /dev/rdsk/c1t1d0s2
   No FC devices found. - /dev/rdsk/c1t1d0s2

NOTE: The picld daemon notifies the system that the disk has been removed.

If no errors are printed, continue to step 6.

Otherwise, if you receive any errors during this step:

physically pull the bad disk from the host

run the commands:

     # vxdisk rm c1t1d0s2
     # luxadm -e offline /dev/rdsk/c1t1d0s2

if the disk is multipathed, run the 'luxadm -e offline' on the second path as well.

6. Initiate devfsadm cleanup subroutines by entering the following command:

     # /usr/sbin/devfsadm -C -c disk

   The default devfsadm operation, is to attempt to load every driver in the
   system, and attach these drivers to all possible device instances.
   The devfsadm command then creates device special files in the /devices
   directory, and logical links in /dev.

   With the "-c disk" option, devfsadm will only update disk device files. This
   saves time and is important on systems that have tape devices attached.
   Rebuilding these tape devices could cause undesirable results on non-Sun
   hardware.

   The -C option cleans up the /dev directory, and removes any lingering
   logical links to the device link names.

   This should remove all the device paths for this particular disk. This can
   be verified with:

     # ls -ld /dev/dsk/c1t1d*

     This should return no devices.

7. Verify that the reference to this disk is gone by running the commands

     # vxdisk list (if the disk is under vxvm control)
     # format

   It is now safe to physically replace the disk.

8. After replacing the disk, create the necessary entries in the Solaris OS
   device tree with one of the following commands:

   # devfsadm

   or

   # /usr/sbin/luxadm insert_device <enclosure_name,sx>

     where sx is the slot number.

   NOTE: In many cases, luxadm insert_device does not require the enclosure
         name and slot number.

   Use the following to find the slot number:

   # luxadm display <enclosure_name>

   To find the <enclosure_name> use:

   # luxadm probe

   Run "ls -ld /dev/dsk/c1t1d*" to verify that the new device paths have been
   created.

   NOTE: After inserting disk and running devfsadm(or luxadm), the old ssd id
         was changed to a new one. So, just ignore this change.

   For example:
   When an error occurs on the following disks(ssd3).

    WARNING: /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000004cfa19920,0 (ssd3):
    Error for Command: read(10)                Error Level: Retryable
    Requested Block: 15392944                  Error Block: 15392958

    (After inserting disk)

    picld[287]: [ID 727222 daemon.error] Device DISK0 inserted
    qlc: [ID 686697 kern.info] NOTICE: Qlogic qlc(2): Loop ONLINE
    scsi: [ID 799468 kern.info] ssd10 at fp2: name w21000011c63f0c94,0, bus
    address ef
    genunix: [ID 936769 kern.info] ssd10 is  /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@
    w21000011c63f0c94,0
    scsi: [ID 365881 kern.info]    <SUN72G cyl 14087 alt 2 hd 24 sec 424>
    genunix: [ID 408114 kern.info] /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000011c
    63f0c94,0 (ssd10) online

9. Label the disk using the format command.

   If the disk is under VxVM control, be sure to write an SMI label(Solaris 9
   4/03 OS or later):

     # format -e /dev/rdsk/c1t1d0s2
       ...
     format> l
     [0] SMI Label
     [1] EFI Label
     Specify Label type[1]: 0
     Auto configuration via format.dat[no]? no
     Auto configuration via generic SCSI-2[no]? yes
     Ready to label disk, continue? yes

   If the disk is not under VxVM control, label the disk to local requirements,
   otherwise, it could be labeled with a standard vtoc.

Steps 9a - 9c are only required if this is a system running SunCluster 3.x

9a. /usr/cluster/bin/scdidadm -C

9b. /usr/cluster/bin/scdidadm -r

9c. /usr/cluster/bin/scgdevs

Note: It's possible to get errors from c0t0d0 which is the cdrom/dvd drive on Sun fire v480,v880 etc..

10. Instruct VxVM to re-read the device tree by running the command

    # vxdctl enable

11. The disk will remain in the "offline" state until the new disk is
    initialized.

    To initialize it, use the command line first:

    # vxdisksetup -i c1t1d0

    Then, use 'vxdiskadm' and choose option #5 to replace the failed or removed disk.

    - OR -

    Run 'vxdiskadm' and choose option #5 to initialize it and replace the
    failed or removed disk. If the 'vxdiskadm' command is run, and option #5
    is chosen, it will show that "Access is disabled" for this new disk
    (because it is still "offline"), and will be asked whether or not you wish
    to "enable access" to it.  Answer 'yes' to this question.

12. The disk should now be online and functional, within the operating system
    and VxVM. Confirm this with "vxdisk list".

    NOTE: Do not re-boot the system and Setp-13(modify nvramrc) until a
          synchronization is completed. If it is re-booted, it cannot boot from
          a new disk or modify devalias. Confirm this with "vxtask list":

          # vxtask list

13. If a swap partition had to be moved, move it back, for example:

          dumpadm -d /dev/dsk/c1t1d0s1

14. If this was a root-disk or a root-mirror, then you need to make sure and                   run  /etc/vx/bin/vxbootsetup command. The vxbootsetup utility configures a disk by writing a boot track at the beginning of the disk and by  creating physical disk partitions in the UNIX VTOC that match the mirrors of the root, swap, /usr and /var.

    /etc/vx/bin/vxbootsetup -g rootdg rootdisk  

15. If this was a root-disk or root-mirror, then ensure the nvram aliases are
    updated so you can boot.

               ls -al /dev/rdsk/<new disk>s0
      example: ls -al /dev/rdsk/c1t1d0s0

    Check the WWN from the ls output with the appropriate root alias entries in
    the NVRAM. (eeprom nvramrc) and look at rootmirror or rootdisk entries.

    NOTE: The change method of devalias in nvramrc.
          From removed disk information to new disk information.

          For example,

          - List before modifying nvramrc.
            (removed disk information)

            # eeprom nvramrc

            devalias rootdisk
              /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100004cfa19920,0:a
            devalias mirrdisk
              /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100004cfa19838,0:a

          - List the new disk information

            # ls -al /dev/rdsk/c1t0d0s0
            lrwxrwxrwx   1 root     root          74 Mar  6  2003 c1t0d0s0 -> ../../  
            devices/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000011c63f0c94,0:a,raw

          - Modify nvramrc

            (This example is written in the bourne shell)   

            # eeprom nvramrc='devalias root-disk
              /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@
            w21000011c63f0c94,0:a[enter]
            devalias rootmirror
              /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000004cfa19838,0:a'[enter]

          - List after modifying nvramrc.

            # eeprom nvramrc
            devalias rootdisk /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000011c63f0c94,0:a
            devalias mirrdisk /pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w2100004cfa19838,0:a

论坛徽章:
0
10 [报告]
发表于 2007-04-19 08:59 |只看该作者
A5XXX的阵列???
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP