System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

urgent ! how to re-config LSM

SOLVED
Go to solution
Rambo_1
Regular Advisor

urgent ! how to re-config LSM

There is a bad disk rz1 in LSM without mirrored. and need to replace this bad disk and re-config LSM as same as before, how to do this?

#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 1012929808.1025.sdptwo

dm rz1c rz1c simple 1024 35564040 /dev/rrz1c

v vol01 fsgen ENABLED ACTIVE 4094304 SELECT -
pl vol01-01 vol01 ENABLED ACTIVE 4094304 CONCAT - RW
sd rz1c-01 vol01-01 0 0 4094304 rz1c rz1c

v vol02 fsgen ENABLED ACTIVE 4094304 SELECT -
pl vol02-01 vol02 ENABLED ACTIVE 4094304 CONCAT - RW
sd rz1c-02 vol02-01 0 4094304 4094304 rz1c rz1c

v vol03 fsgen ENABLED ACTIVE 4094304 SELECT -
pl vol03-01 vol03 ENABLED ACTIVE 4094304 CONCAT - RW
sd rz1c-03 vol03-01 0 8188608 4094304 rz1c rz1c

v vol04 fsgen ENABLED ACTIVE 4094304 SELECT -
pl vol04-01 vol04 ENABLED ACTIVE 4094304 CONCAT - RW
sd rz1c-04 vol04-01 0 12282912 4094304 rz1c rz1c

v vol05 fsgen ENABLED ACTIVE 4094304 SELECT -
pl vol05-01 vol05 ENABLED ACTIVE 4094304 CONCAT - RW
sd rz1c-05 vol05-01 0 16377216 4094304 rz1c rz1c

v vol06 fsgen ENABLED ACTIVE 4094304 SELECT -
pl vol06-01 vol06 ENABLED ACTIVE 4094304 CONCAT - RW
sd rz1c-06 vol06-01 0 20471520 4094304 rz1c rz1c

v vol07 fsgen ENABLED ACTIVE 4094304 SELECT -
pl vol07-01 vol07 ENABLED ACTIVE 4094304 CONCAT - RW
sd rz1c-07 vol07-01 0 24565824 4094304 rz1c rz1c

v vol08 fsgen ENABLED ACTIVE 4094304 SELECT -
pl vol08-01 vol08 ENABLED ACTIVE 4094304 CONCAT - RW
sd rz1c-08 vol08-01 0 28660128 4094304 rz1c rz1c

v vol09 fsgen ENABLED ACTIVE 2809608 SELECT -
pl vol09-01 vol09 ENABLED ACTIVE 2809608 CONCAT - RW
sd rz1c-09 vol09-01 0 32754432 2809608 rz1c rz1c

Thanks
5 REPLIES
Rambo_1
Regular Advisor

Re: urgent ! how to re-config LSM

The OS is 4.0F

Thanks
Ralf Puchner
Honored Contributor

Re: urgent ! how to re-config LSM

How do you change the layout of a volume? How do you remove a striped volume from LSM?

ANSWER :

To change the layout of a volume, remove the volume from the diskgroup (steps 1 and 2 below) and re-create it using volassist.

The following applies to removing volumes from a diskgroup and removing the disks from LSM:

1. # volume -g stop

2. # voledit -g -rf rm

3. # voldg rmdisk

4. # voldisk rm

NOTE: Use "voldisk list" to determine disk access and media names, for example, the column "DEVICE" refers to the disk.

The last disk cannot be removed from a disk group.

To remove any disk from the volboot file:

# voldctl rm disk

Help() { FirstReadManual(urgently); Go_to_it;; }
Rambo_1
Regular Advisor

Re: urgent ! how to re-config LSM

Ralf Puchner
because the host connect a BA356, and there are 3 disk in the BA356 (one of them is sys disk), so there aren't strip whit these disk . i need to replace a bad disk and re-config volume in new disk as same as the bad disk ,and then restore data to volume.

Thanks

Re: urgent ! how to re-config LSM

Use the command: voldiskadm

There is menu options
4
5

Regards
Ilkka S
Ralf Puchner
Honored Contributor
Solution

Re: urgent ! how to re-config LSM

# voldiskadm
Select an operation to perform: 4

Remove a disk for replacement
Enter disk name [,list,q,?] rz3disk

The following volumes will lose mirrors as a result of this operation:

rootvol

No data on these volumes will be lost.

The requested operation is to remove disk rz3disk from disk group rootdg. The disk name will be kept, along with any volumes using the disk, allowing replacement of the disk.

Select "Replace a failed or removed disk" from the main menu when you wish to replace the disk.

Continue with operation? [y,n,q,?] (default: y)

Removal of disk rz3disk completed successfully.

#voldiskadm

Select an operation to perform: 5

Select a removed or failed disk [,list,q,?] list

Disk group: rootdg

DM NAME DEVICE TYPE PRIVLEN PUBLEN PUBPATH


Disk group: crashdg

DM NAME DEVICE TYPE PRIVLEN PUBLEN PUBPATH

dm rz3disk - - - - -


Select a removed or failed disk [,list,q,?] rz3disk

The following devices are available as replacements:

rz3

You can choose one of these disks to replace rz3disk.
Choose "none" to initialize another disk to replace rz3disk.

Choose a device, or select "none"
[,none,q,?] (default: rz3)

Replacement of disk rz3disk in group crashdg with disk device
rz3 completed successfully.

Select an operation to perform: 6

Mirror volumes on a disk
Menu: LogicalStorageManager/Disk/Mirror
Disk group: crashdg

DM NAME DEVICE TYPE PRIVLEN PUBLEN PUBPATH

dm rz2disk rz2 sliced 512 648512 /dev/rrz2h
dm rz3disk rz3 sliced 512 648512 /dev/rrz3h

Enter disk name [,list,q,?] rz2disk

You can choose to mirror volumes from disk rz2disk onto any available disk space, or you can choose to mirror onto a specific
disk. To mirror to a specific disk, select the name of that disk.
To mirror to any available disk space, select "any".

Enter destination disk [,list,q,?] (default: any) rz3disk

Mirror volume rootvol ...

Mirroring of disk rz2disk is complete.

Mirror volumes on another disk? [y,n,q,?] (default: n) n




Help() { FirstReadManual(urgently); Go_to_it;; }