From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653652421930.tru64-unix-managers.marc@archive.invalid> From: Padiyath Kumar Date: Wed, 18 Jul 2001 14:44:19 +0000 To: tru64-unix-managers Subject: Replacing a defect disk in a LSM mirrored configuration X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653652421930 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@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 -----Original Message----- From: Puchner, Ralf [mailto:Ralf.Puchner@compaq.com] Sent: Mittwoch, 18. Juli 2001 14:56 To: 'kumar.padiyath@psi.ch' Subject: howto replace lsm mirrored disk - case 1028027re How to replace a failed LSM mirrored system disk SIBEC 15.Apr.1998 Operating Systems : Digital UNIX V4.0x Problem : How to replace a failed LSM mirrored system disk Solution : 1.) List the LSM configuration # volprint -Aht 1.) Disassociate ALL plexes linked to the failed disk e.g. assume disk rz2 failed # volplex -o rm dis rootvol-02 # volplex -o rm dis swapvol-02 # volplex -o rm dis usrvol-02 ... 2.) Remove the failed disks from the disk group # voldg -k rmdisk rz2a rz2b rz2g # voldisk rm rz2a rz2b rz2g 3.) now physically replace the disk rz2 4.) Write a disklabel onto the new disk (e.g. for a rz28 disk type) # disklabel -rw rz2 rz28 5.) Add the disk to LSM again # voldiskadd rz2 6.) Mirror the system disk again # volrootmir -a rz2