Operating System - HP-UX
1832681 Members
2984 Online
110043 Solutions
New Discussion

Re: Turn off bad block reallocation

 
SOLVED
Go to solution
Neale Machin
Advisor

Turn off bad block reallocation

We've just been connected to a Symmetrix and have been told that when we use the disks under LVM we have to turn the bad block reallocation off. I can see how to do it in sam but does anyone know what command and parameter does this.
Just cos I look after Unix Boxes doesnt mean I wear sandals
5 REPLIES 5
Dirk Wiedemann
Respected Contributor

Re: Turn off bad block reallocation

Hi

the LVM-command is lvchange with option -r ...
have a look at the manpage for lvchange.

Dirk
Tom Geudens
Honored Contributor

Re: Turn off bad block reallocation

Hi,
Normally you do this in the lvcreate.
#lvcreate -L xxx -r N -n lv_name vgname
Where the "-r N" turns the bad block relocation off.

This is also an option of the lvchange command.

Regards,
Tom
A life ? Cool ! Where can I download one of those from ?
James Beamish-White
Trusted Contributor

Re: Turn off bad block reallocation

As above - see the man page for lvcreate and search for 'bad block'.

But more as a FYI - when in SAM, if you want to figure out what it is doing, have a look at the samlog after doing the task. It'll show you what tasks it did :-)

Cheers!
James
GARDENOFEDEN> create light
T G Manikandan
Honored Contributor
Solution

Re: Turn off bad block reallocation

For example if you are creating a new logical volume

#lvcreate -L 800 -n vol1 -r n /dev/vgxx

-L logical voulme size
-r reallocation policy
-n logical volume name

-C contigous or not

check the lvcreate man pages

If you want to stop bad block reallocation off
then use
-r n


Thanks

Trond Haugen
Honored Contributor

Re: Turn off bad block reallocation

The reason you have to do this is tha the EMC (normally) does the bad block reallocation and things will go wring if LVM does too.
You can change it with lvchange -r n.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn