Solved

Rebuilding VxFx Volume Manager partitions after ufsrestore

Posted on 2008-10-06
6
1,341 Views
Last Modified: 2013-12-27
Due to earlier blunder of "rm -r *",  I've now ufsrestored slice 0 (root) :

# fsck -y /dev/rdsk/c0t0d0s2
# mount /dev/dsk/c0t0d0s0 /mnt
# cd /mnt
# ufsrestore -rvf /dev/rmt/0n  (this restores the root)
 
Then during the bootup, it failed to load drv/vxio & a few other
items (guess it has to do with the following) :
 # eeprom | grep -i devalias
 nvramrc=devalias vx-disk01 /pci@1f,4000/scsi@3/disk@8,0:a
 
How do I go about fixing the above?  Never tried using Veritas
vx... commands really.
 
 
Then entered Ctrl-D to let bootup continue.
 
After bootup,  'df -k' showed :
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/vx/dsk/rootvol  5043518 4852076  141007    98%    /
/proc                      0       0       0     0%    /proc
fd                         0       0       0     0%    /dev/fd
mnttab                     0       0       0     0%    /etc/mnttab
swap                 1355712      16 1355696     1%    /var/run
swap                 1355840     144 1355696     1%    /tmp
/dev/dsk/c0t8d0s4    5043518 4847919  145164    98%    /mnt

while "vxprint rootvol" gives :
Disk group: rootdg
TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
v  rootvol      root         ENABLED  10243888 -        ACTIVE   -       -
pl rootvol-01   rootvol      DISABLED 10243888 -        NODEVICE -       -
sd rootdisk-B0  rootvol-01   DISABLED 1        0        NODEVICE -       Block0
sd rootdisk-02  rootvol-01   DISABLED 10243887 1        NODEVICE -       -
pl rootvol-02   rootvol      ENABLED  10243888 -        ACTIVE   -       -
sd disk01-01    rootvol-02   ENABLED  10243888 0        -        -       -


Lines in /etc/vfstab :
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr          ufs     1       yes     -
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/vx/dsk/swapvol     -       -       swap    -       no      -
/dev/vx/dsk/rootvol /dev/vx/rdsk/rootvol / ufs 1 no logging
/dev/vx/dsk/la /dev/vx/rdsk/la        /la    ufs     2       yes     -
swap    -       /tmp    tmpfs   -       yes     -
#NOTE: volume rootvol (/) encapsulated partition c0t0d0s0
#NOTE: volume swapvol (swap) encapsulated partition c0t0d0s1
#NOTE: volume la (/la) encapsulated partition c0t0d0s6

 
There's no "vxmirror"  command, only vx* tools available are :
# ls -d vx*
vxassist    vxdiskadd   vxfddstat   vxmend      vxquota     vxrestore   vxtask
vxclust     vxdiskadm   vxinfo      vxmkcdev    vxquotaoff  vxrlink     vxtrace
vxconfigd   vxdmpadm    vxinstall   vxnetd      vxquotaon   vxrvg       vxtunefs
vxdctl      vxdump      vxiod       vxnotify    vxrecover   vxsd        vxupgrade
vxdg        vxedit      vxlicense   vxplex      vxrelayout  vxserial    vxvol
vxdisk      vxedquota   vxmake      vxprint     vxrepquota  vxstat

 
What do I do next to rebuild back the encapsulated partitions/mirror?

The full "vxprint -hm..."  output capture before the disaster occurred
are appended below the = = = lines :
 
= = = = = = = = = = = = = = = == = = = = = = = = = = = = = = =
 
sd   rootdiskPriv
        tutil0="
        tutil1="
        tutil2="
        dev=201/3
        busy=off
        devopen=off
        enabled=on
        detach=off
        writeonly=off
        nodevice=off
        removed=off
        is_log=off
        da_name=c0t0d0s2
        device_tag=c0t0d0
        dm_name=rootdisk
        path="/dev/vx/dmp/c0t0d0s3
        pl_name=
        comment="Private region area
        putil0="PRIVATE
        putil1="
        putil2="
        volatile=off
        dm_offset=10243888
        dev_offset=10243889
        len=4711
        update_tid=0.1064
        rid=0.1053
        dm_rid=0.1031
        lasterr_tid=0.0
        node_bdev=VOLNODEV
        node_cdev=VOLNODEV
        minor=-1
        detach_tid=0.0
        column=0
        devopen=off
        mkdevice=off
        subvolume=off
        stale=off
        kdetach=off
        relocate=off
        orig_dmname=
        orig_dmoffset=0
vol  rootvol
        tutil0="
        tutil1="
        tutil2="
        kstate=ENABLED
        r_all=GEN_DET_SPARSE
        r_some=GEN_DET_SPARSE
        w_all=GEN_DET_SPARSE
        w_some=GEN_DET_SPARSE
       lasterr=0
        use_type=root
        fstype="
        comment="
        putil0="
        putil1="
        putil2="
        state="ACTIVE
        writeback=on
        writecopy=off
        specify_writecopy=off
        logging=off
        has_logs=off
        devopen=on
        log_serial_lo=0
        log_serial_hi=0
        node_bdev=202/0
        node_cdev=202/0
        iosize=512
        pl_num=2
        pref_name=
        start_opts="
        read_pol=ROUND
        current_read_pol=ROUND
        minor=0
        user=root
        group=root
        mode=0600
        log_type=NONE
        len=10243888
        log_len=0
        update_tid=0.1738
        rid=0.1060
        detach_tid=0.0
        active=off
        forceminor=on
        badlog=off
        recover=off
       krecover=off
        invalid=off
        recover_checkpoint=1
        cdsrecover_seqno=0
        cdsrecover_active=0
        lasterr_tid=0.0
        sd_num=0
        sdnum=0
        nvollayer=1
        dirty=on
        busy=off
        degraded=off
        unusable=off
        kdetach=off
        storage=off
        layered=off
        apprecover=off
        recover_seqno=0
        recov_id=0
        app_dirty=off
        timeout=0
        primary_datavol=
        rvg_name=
        exclusive=off
        fastresync=off
        plex=rootvol-01,rootvol-02
plex rootvol-01
        tutil0="
        tutil1="
        tutil2="
        compact=on
        iomode=RW
        volatile=off
        kstate=ENABLED
        lasterr=0
        len=10243888
        contig_len=10243888
        minor=-1
        comment="
        putil0="
        putil1="
        putil2="
        v_name=rootvol
        layout=CONCAT
        sd_num=2
        state="ACTIVE
        log_sd=
        update_tid=0.1738
        rid=0.1059
        vol_rid=0.1060
        snap_rid=0.0
        detach_tid=0.0
        devopen=off
        log=off
        complete=on
        noerror=off
        kdetach=off
        removed=off
        nodarec=off
        stale=off
        lasterr_tid=0.0
        ncolumn=0
        dirty=off
        busy=on
        raidlog=off
        sd=rootdisk-B0:0,rootdisk-02:1
sd   rootdisk-B0
        tutil0="
        tutil1="
        tutil2="
        dev=201/3
        busy=on
        devopen=off
        enabled=on
        detach=off
        writeonly=off
        nodevice=off
        removed=off
        is_log=off
        da_name=c0t0d0s2
        device_tag=c0t0d0
        dm_name=rootdisk
        path="/dev/vx/dmp/c0t0d0s3
        pl_name=rootvol-01
        comment="Remap of block 0
        putil0="Block0
        putil1="
        putil2="
        volatile=off
        dm_offset=10243887
        pl_offset=0
        dev_offset=10243888
        len=1
        update_tid=0.1064
        rid=0.1057
        plex_rid=0.1059
        dm_rid=0.1031
        lasterr_tid=0.0
        node_bdev=VOLNODEV
        node_cdev=VOLNODEV
        minor=-1
        detach_tid=0.0
        column=0
        devopen=off
        mkdevice=off
        subvolume=off
        stale=off
        kdetach=off
        relocate=off
        orig_dmname=
        orig_dmoffset=0
sd   rootdisk-02
        tutil0="
        tutil1="
        tutil2="
        dev=201/3
        busy=on
        devopen=off
        enabled=on
        detach=off
        writeonly=off
        nodevice=off
        removed=off
        is_log=off
        da_name=c0t0d0s2
        device_tag=c0t0d0
        dm_name=rootdisk
        path="/dev/vx/dmp/c0t0d0s3
        pl_name=rootvol-01
        comment="
        putil0="
        putil1="
        putil2="
        volatile=off
        dm_offset=0
        pl_offset=1
        dev_offset=1
        len=10243887
        update_tid=0.1064
        rid=0.1058
        plex_rid=0.1059
        dm_rid=0.1031
        lasterr_tid=0.0
        node_bdev=VOLNODEV
        node_cdev=VOLNODEV
        minor=-1
        detach_tid=0.0
        column=0
        devopen=off
        mkdevice=off
        subvolume=off
        stale=off
        kdetach=off
        relocate=off
        orig_dmname=
        orig_dmoffset=0
plex rootvol-02
        tutil0="
        tutil1="
        tutil2="
        compact=on
        iomode=RW
        volatile=off
        kstate=ENABLED
        lasterr=0
        len=10243888
        contig_len=10243888
        minor=-1
        comment="
        putil0="
        putil1="
        putil2="
        v_name=rootvol
        layout=CONCAT
        sd_num=1
        state="ACTIVE
        log_sd=
        update_tid=0.1738
        rid=0.1077
        vol_rid=0.1060
        snap_rid=0.0
        detach_tid=0.0
        devopen=off
        log=off
        complete=on
        noerror=off
        kdetach=off
        removed=off
        nodarec=off
        stale=off
        lasterr_tid=0.0
        ncolumn=0
        dirty=off
        busy=on
        raidlog=off
        sd=disk01-01:0
sd   disk01-01
        tutil0="
        tutil1="
        tutil2="
        dev=201/12
        busy=on
        devopen=off
        enabled=on
        detach=off
       writeonly=off
        nodevice=off
        removed=off
        is_log=off
        da_name=c0t8d0s2
        device_tag=c0t8d0
        dm_name=disk01
        path="/dev/vx/dmp/c0t8d0s4
        pl_name=rootvol-02
        comment="
        putil0="
        putil1="
        putil2="
        volatile=off
        dm_offset=0
        pl_offset=0
        dev_offset=0
        len=10243888
        update_tid=0.1080
        rid=0.1079
        plex_rid=0.1077
        dm_rid=0.1074
        lasterr_tid=0.0
        node_bdev=VOLNODEV
        node_cdev=VOLNODEV
        minor=-1
        detach_tid=0.0
        column=0
        devopen=off
        mkdevice=off
        subvolume=off
        stale=off
        kdetach=off
        relocate=off
        orig_dmname=
        orig_dmoffset=0
vol  la
        tutil0="
        tutil1="
        tutil2="
        kstate=ENABLED
        r_all=GEN_DET_SPARSE
        r_some=GEN_DET_SPARSE
        w_all=GEN_DET_SPARSE
        w_some=GEN_DET_SPARSE
        lasterr=0
        use_type=fsgen
        fstype="
        comment="
        putil0="
        putil1="
        putil2="
        state="ACTIVE
        writeback=on
        writecopy=off
        specify_writecopy=off
        logging=off
        has_logs=off
        devopen=on
        log_serial_lo=0
        log_serial_hi=0
        node_bdev=202/5
        node_cdev=202/5
        iosize=512
        pl_num=1
        pref_name=
        start_opts="
        read_pol=ROUND
        current_read_pol=ROUND
        minor=5
        user=root
        group=root
        mode=0600
        log_type=REGION
        len=23022832
        log_len=0
        update_tid=0.1740
        rid=0.1056
        detach_tid=0.0
        active=off
        forceminor=off
        badlog=off
        recover=off
        krecover=off
        invalid=off
        recover_checkpoint=0
        cdsrecover_seqno=0
        cdsrecover_active=0
        lasterr_tid=0.0
        sd_num=0
        sdnum=0
        nvollayer=1
        dirty=off
        busy=off
        degraded=off
        unusable=off
       kdetach=off
        storage=off
        layered=off
        apprecover=off
        recover_seqno=0
        recov_id=0
        app_dirty=off
        timeout=0
        primary_datavol=
        rvg_name=
        exclusive=off
        fastresync=off
        plex=la-01
plex la-01
        tutil0="
        tutil1="
        tutil2="
        compact=on
        iomode=RW
        volatile=off
        kstate=ENABLED
        lasterr=0
        len=23022832
        contig_len=23022832
        minor=-1
        comment="
        putil0="
        putil1="
        putil2="
        v_name=la
        layout=CONCAT
        sd_num=1
        state="ACTIVE
        log_sd=
        update_tid=0.1740
        rid=0.1055
        vol_rid=0.1056
        snap_rid=0.0
        detach_tid=0.0
        devopen=off
        log=off
        complete=on
        noerror=off
        kdetach=off
        removed=off
        nodarec=off
        stale=off
        lasterr_tid=0.0
        ncolumn=0
        dirty=off
        busy=on
        raidlog=off
        sd=rootdisk-03:0
sd   rootdisk-03
        tutil0="
        tutil1="
        tutil2="
        dev=201/3
        busy=on
        devopen=off
        enabled=on
        detach=off
        writeonly=off
        nodevice=off
        removed=off
        is_log=off
        da_name=c0t0d0s2
        device_tag=c0t0d0
        dm_name=rootdisk
        path="/dev/vx/dmp/c0t0d0s3
        pl_name=la-01
        comment="
        putil0="
        putil1="
        putil2="
        volatile=off
        dm_offset=12345439
        pl_offset=0
        dev_offset=12345440
        len=23022832
        update_tid=0.1064
        rid=0.1054
        plex_rid=0.1055
        dm_rid=0.1031
        lasterr_tid=0.0
        node_bdev=VOLNODEV
        node_cdev=VOLNODEV
        minor=-1
        detach_tid=0.0
        column=0
        devopen=off
        mkdevice=off
        subvolume=off
        stale=off
        kdetach=off
        relocate=off
        orig_dmname=
        orig_dmoffset=0
vol  swapvol
        tutil0="
        tutil1="
        tutil2="
        r_all=GEN_DET_SPARSE
        r_some=GEN_DET_SPARSE
        w_all=GEN_DET_SPARSE
        w_some=GEN_DET_SPARSE
        lasterr=0
        use_type=swap
        fstype="
        comment="
        putil0="
        putil1="
        putil2="
        state="ACTIVE
        writeback=on
        writecopy=off
        specify_writecopy=off
        logging=off
        has_logs=off
        devopen=on
        log_serial_lo=0
        log_serial_hi=0
        node_bdev=202/6
        node_cdev=202/6
        iosize=512
        pl_num=2
        pref_name=
        start_opts="
        read_pol=ROUND
        current_read_pol=ROUND
        minor=6
        user=root
        group=root
        mode=0600
        log_type=REGION
        len=2096840
        log_len=0
        update_tid=0.1739
        rid=0.1063
        detach_tid=0.0
      active=off
        badlog=off
        recover=off
        krecover=off
        invalid=off
        recover_checkpoint=1
        cdsrecover_seqno=0
        cdsrecover_active=0
        lasterr_tid=0.0
        sd_num=0
        sdnum=0
        nvollayer=1
        dirty=on
        busy=off
        degraded=off
        unusable=off
        kdetach=off
        storage=off
        layered=off
        apprecover=off
        recover_seqno=0
        recov_id=0
        app_dirty=off
        timeout=0
        primary_datavol=
        rvg_name=
        exclusive=off
        fastresync=off
        plex=swapvol-01,swapvol-02
plex swapvol-01
        tutil0="
        tutil1="
        tutil2="
        compact=on
        iomode=RW
        volatile=off
        kstate=ENABLED
        lasterr=0
       len=2096840
        contig_len=2096840
        minor=-1
        comment="
        putil0="
        putil1="
        putil2="
        v_name=swapvol
        layout=CONCAT
        sd_num=1
        state="ACTIVE
        log_sd=
        update_tid=0.1739
        rid=0.1062
        vol_rid=0.1063
        snap_rid=0.0
        detach_tid=0.0
        devopen=off
        log=off
        complete=on
        noerror=off
        kdetach=off
        removed=off
        nodarec=off
        stale=off
        lasterr_tid=0.0
        ncolumn=0
        dirty=off
        busy=on
        raidlog=off
        sd=rootdisk-01:0
sd   rootdisk-01
        tutil0="
        tutil1="
        tutil2="
        dev=201/3
        busy=on
        devopen=off
        enabled=on
        detach=off
        writeonly=off
        nodevice=off
        removed=off
        is_log=off
        da_name=c0t0d0s2
        device_tag=c0t0d0
        dm_name=rootdisk
        path="/dev/vx/dmp/c0t0d0s3
        pl_name=swapvol-01
        comment="
        putil0="
        putil1="
        putil2="
        volatile=off
        dm_offset=10248599
        pl_offset=0
        dev_offset=10248600
        len=2096840
        update_tid=0.1064
        rid=0.1061
        plex_rid=0.1062
        dm_rid=0.1031
        lasterr_tid=0.0
        node_bdev=VOLNODEV
        node_cdev=VOLNODEV
        minor=-1
       detach_tid=0.0
        column=0
        devopen=off
        mkdevice=off
        subvolume=off
        stale=off
        kdetach=off
        relocate=off
        orig_dmname=
        orig_dmoffset=0
plex swapvol-02
        tutil0="
        tutil1="
        tutil2="
        compact=on
        iomode=RW
        volatile=off
        kstate=ENABLED
        lasterr=0
        len=2096840
        contig_len=2096840
        minor=-1
        comment="
        putil0="
        putil1="
        putil2="
        v_name=swapvol
        layout=CONCAT
        sd_num=1
        state="ACTIVE
        log_sd=
        update_tid=0.1739
        rid=0.1083
        vol_rid=0.1063
        snap_rid=0.0
        detach_tid=0.0
        devopen=off
        log=off
        complete=on
        noerror=off
        kdetach=off
        removed=off
        nodarec=off
        stale=off
        lasterr_tid=0.0
        ncolumn=0
        dirty=off
        busy=on
        raidlog=off
        sd=disk01-02:0
sd   disk01-02
        tutil0="
        tutil1="
        tutil2="
        dev=201/12
        busy=on
        devopen=off
        enabled=on
        detach=off
        writeonly=off
        nodevice=off
       removed=off
        is_log=off
        da_name=c0t8d0s2
        device_tag=c0t8d0
        dm_name=disk01
        path="/dev/vx/dmp/c0t8d0s4
        pl_name=swapvol-02
        comment="
        putil0="
        putil1="
        putil2="
        volatile=off
        dm_offset=10243888
        pl_offset=0
        dev_offset=10243888
        len=2096840
        update_tid=0.1086
        rid=0.1085
        plex_rid=0.1083
        dm_rid=0.1074
        lasterr_tid=0.0
        node_bdev=VOLNODEV
        node_cdev=VOLNODEV
        minor=-1
        detach_tid=0.0
        column=0
        devopen=off
        mkdevice=off
        subvolume=off
        stale=off
        kdetach=off
        relocate=off
        orig_dmname=
        orig_dmoffset=0

0
Comment
Question by:sunhux
  • 4
  • 2
6 Comments
 

Author Comment

by:sunhux
ID: 22656896
content of /etc/system:

* vxfs_START -- do not remove the following lines:
*
* VxFS requires a stack size greater than the default 8K.
* The following values allow the kernel stack size
* for all threads to be increased to 16K.
*
set lwp_default_stksize=0x4000
* vxfs_END
* vxvm_START (do not remove)
forceload: drv/vxdmp
forceload: drv/vxio
forceload: drv/vxspec
forceload: drv/sd
forceload: drv/scsi
forceload: drv/pci
forceload: drv/ssd
rootdev:/pseudo/vxio@0:0
set vxio:vol_rootdev_is_volume=1
* vxvm_END (do not remove)
set c2audit:audit_load = 1
set abort_enable = 0
* Attempt to prevent and log stack-smashing attacks
set noexec_user_stack = 1
set noexec_user_stack_log = 1
* Require NFS clients to use privileged ports
set nfssrv:nfs_portmon = 1
0
 

Author Comment

by:sunhux
ID: 22657315
The whole idea is to fix those plexes with "Nodevice" & "Disabled"
states

vxprint -th | more
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   USETYPE   PREFPLEX RDPOL
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

dg rootdg       default      default  0        986979247.1025.SUN01

dm disk01       c0t0d0s2     sliced   4711     35363560 -
dm rootdisk     -            -        -        -        NODEVICE

sd rootdiskPriv -            rootdisk 10243888 4711     PRIVATE   -        NDEV

v  rootvol      -            ENABLED  ACTIVE   10243888 root      -        ROUND
pl rootvol-01   rootvol      DISABLED NODEVICE 10243888 CONCAT    -        RW
sd rootdisk-B0  rootvol-01   rootdisk 10243887 1        0         -        NDEV
sd rootdisk-02  rootvol-01   rootdisk 0        10243887 1         -        RLOC
pl rootvol-02   rootvol      ENABLED  ACTIVE   10243888 CONCAT    -        RW
sd disk01-01    rootvol-02   disk01   0        10243888 0         c0t0d0   ENA

v  la          -            DISABLED ACTIVE   23022832 fsgen     -        ROUND
pl la-01       sla          DISABLED NODEVICE 23022832 CONCAT    -        RW
sd rootdisk-03  sla-01       rootdisk 12345439 23022832 0         -        NDEV

v  swapvol      -            ENABLED  ACTIVE   2096840  swap      -        ROUND
pl swapvol-01   swapvol      DISABLED NODEVICE 2096840  CONCAT    -        WO
sd rootdisk-01  swapvol-01   rootdisk 10248599 2096840  0         -        NDEV
pl swapvol-02   swapvol      ENABLED  ACTIVE   2096840  CONCAT    -        RW
sd disk01-02    swapvol-02   disk01   10243888 2096840  0         c0t0d0   ENA
0
 
LVL 40

Accepted Solution

by:
omarfarid earned 500 total points
ID: 22662850
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

Author Comment

by:sunhux
ID: 22665791
I've decided last evening to just rebuild the system by doing
a)newfs /dev/dsk/c0t0d0sx

boot from cdrom & 'mount /dev/dsk/c0t0d0s0 /mnt'
b)'ufsrestore -rvf /dev/rmt/0' the partitions
c)installboot /usr/platform/`uname -i`\/lib/fs/ufs/bootblk /dev/rdsk/c0t0d0s0
following steps are needed, else the system would crash/can't boot :
d)edit /mnt/etc/system to comment out
    * rootdev:/pseudo/vxio@0:0
    * set vxio:vol_rootdev_is_volume:1
e)touch /mnt/etc/vx/reconfig.d/state.d/install_db
f)edit /mnt/etc/vfstab  to change vx partitions to simple disk partitions
   & add "nologging" to mount line for root

Also ensure nvramrc (at eeprom) points correctly to correct SCSI disk
(obtained by probe-scsi-all) :
eeprom nvramrc devalias vx-disk01 /.../scsi@3/0:0:a  
        (was previously 8:0:a - the main member of the Vx mirror set)
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 22665875
I would recommend to do a fresh installation (if not too complicated) without veritas volume manager for root disk. Once done, do a selective restore of certain files or directories of users or applications (if can be done without reinstalling the application - ufsrestore -i ).

While restoring do not use the -v option since logging will make it very slow to restore.

For mirroring the root disk, you may use SDS.
0
 

Author Closing Comment

by:sunhux
ID: 31504113
I've decided last evening to just rebuild the system by doing
a)newfs /dev/dsk/c0t0d0sx

boot from cdrom & 'mount /dev/dsk/c0t0d0s0 /mnt'
b)'ufsrestore -rvf /dev/rmt/0' the partitions
c)installboot /usr/platform/`uname -i`\/lib/fs/ufs/bootblk /dev/rdsk/c0t0d0s0
following steps are needed, else the system would crash/can't boot :
d)edit /mnt/etc/system to comment out
    * rootdev:/pseudo/vxio@0:0
    * set vxio:vol_rootdev_is_volume:1
e)touch /mnt/etc/vx/reconfig.d/state.d/install_db
f)edit /mnt/etc/vfstab  to change vx partitions to simple disk partitions
   & add "nologging" to mount line for root

Also ensure nvramrc (at eeprom) points correctly to correct SCSI disk
(obtained by probe-scsi-all) :
eeprom nvramrc devalias vx-disk01 /.../scsi@3/0:0:a  
        (was previously 8:0:a - the main member of the Vx mirror set)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now