I got only 2 answers and many thanks.
I did the following and it worked:
--------------------------------------
First saved the disklabel of rz0 since rz0 and rz1 are identical(disklabel
-r rz0>/tmp/Q)
voldg -g rootdg -k rmdisk rz1 (disk rz1 is defect)
voldisk rm rz1
Shutdown the system, power off, replaced the disk in the same slot.
Power on the system in multiuser mode.
disklabel -r -R /dev/rrz1c /tmp/Q <diskname>
voldisksetup -i rz1 privlen=1024 nconfig=1 nlogs=1
voldg -g rootdg -k adddisk rz1=rz1
volrecover -sb rz1
----------------------------------------------------------------------------
-------------
The following people send replies and thanks:
Kevin McDonnell
John Tan
Kevin gave me the following reply:
=========================
The following is a list of the commands required.
voldg -g <diskgroup> -k rmdisk <media name>
voldisk rm <disk>
Then replace the disk.
disklabel -wr <disk> (use -z if nessesary to clear any old label)
voldisksetup -i access_name_nconfig=2 nlog=2 privlen=1024
voldg -g <diskgroup> -k adddisk <media name> = <disk>
volrecover -g <diskgroup> -sb
Hope this helps
Cheers,
Kev
The question was:
================
>
> Hi,
> I have a defect disk in an LSM mirrored configuration. rz0 and rz1
> are
> mirrored.
> What are the commands required to replace the disk rz1 and add to the
> mirroring.
> The OS is V4.0F. The output from the commands
>
> root_at_psw318:/>volprint -Aht
>
> Disk group: rootdg
>
> DG NAME GROUP-ID
> DM NAME DEVICE TYPE PRIVLEN PUBLEN PUBPATH
> V NAME USETYPE KSTATE STATE LENGTH READPOL
> PREFPLEX
> PL NAME VOLUME KSTATE STATE LENGTH LAYOUT
> ST-WIDTH
> MODE
> SD NAME PLEX PLOFFS DISKOFFS LENGTH DISK-NAME
> DEVICE
>
> dg rootdg 937488988.1025.psw318.psi.ch
>
> dm rz0 rz0 sliced 1024 35564040 /dev/rrz0g
> dm rz1 - - - - -
> <------------
> dm rz16 rz16 sliced 1024 35564040 /dev/rrz16g
> dm rz17 rz17 sliced 1024 35564040 /dev/rrz17g
>
> v vol01 fsgen DISABLED ACTIVE 71120000 SELECT -
> pl pl-01 vol01 DISABLED NODEVICE 71120000 CONCAT -
> RW
> sd rz0-01 pl-01 0 0 35560000 rz0 rz0
> sd rz1-01 pl-01 35560000 0 35560000 rz1 -
> pl pl-02 vol01 DISABLED ACTIVE 71120000 CONCAT -
> RW
> sd rz16-01 pl-02 0 0 35560000 rz16
> rz16
> sd rz17-01 pl-02 35560000 0 35560000 rz17
> rz17
>
>
> Can I use the following commands, please to replace the disk. I use the
> same
> addresses(slot)
>
> voldg -g rootdg -k rmdisk rz1
>
> voldisk rm rz1
>
> voldisksetup -i rz1 privlen=1024 nconfig=1 nlogs=1 after changing and
> labelling
> the disk. I need
> the
> whole disk
> for mirroring.
>
> voldg -g rootdg -k adddisk rz1=rz1
>
> volrecover -sb rz1
>
> rz0 and rz1 are mirrored. Disklabel -r rz0 gives the following output:
> ====================================================================
>
> # /dev/rrz0a:
> type: SCSI
> disk: RZ2ED-LS
> label:
> flags: dynamic_geometry
> bytes/sector: 512
> sectors/track: 254
> tracks/cylinder: 20
> sectors/cylinder: 5080
> cylinders: 7001
> sectors/unit: 35565080
> rpm: 10045
> interleave: 1
> trackskew: 36
> cylinderskew: 44
> headswitch: 0 # milliseconds
> track-to-track seek: 0 # milliseconds
> drivedata: 0
>
> 8 partitions:
> # size offset fstype [fsize bsize cpg] # NOTE:
> values n
> ot exact
> a: 131072 0 unused 0 0 # (Cyl.
> 0
> - 2
> 5*)
> b: 262144 131072 unused 0 0 # (Cyl.
> 25*- 7
> 7*)
> c: 35565080 0 unused 0 0 # (Cyl.
> 0
> - 7
> 000)
> d: 0 0 unused 0 0 # (Cyl.
> 0
> - -
> 1)
> e: 0 0 unused 0 0 # (Cyl.
> 0
> - -
> 1)
> f: 0 0 unused 0 0 # (Cyl.
> 0
> - -
> 1)
> g: 35564056 0 LSMpubl # (Cyl.
> 0
> - 7
> 000*)
> h: 1024 35564056 LSMpriv # (Cyl.
> 7000*- 7
> 000)
>
>
> with regardsand thanks in advance,
> Padiyath
>
>
>
>
>
Received on Thu Jul 19 2001 - 13:58:50 NZST