Operating System - HP-UX
1830060 Members
2327 Online
109998 Solutions
New Discussion

turn off bad block relocation

 
kholikt
Super Advisor

turn off bad block relocation

Hi,

I need to turn off bad block relocation. Can I do it online (non disruptive)

lvchange -r N /dev//
abc
4 REPLIES 4
Camel_1
Valued Contributor

Re: turn off bad block relocation

yes, you can do it online.
gigiz
Valued Contributor

Re: turn off bad block relocation

this is the test for you on my testserver:

bdf /pluto
Filesystem kbytes used avail %used Mounted on
/dev/vg00/prova 133120 126331 6405 95% /pluto
lvchange -r N /dev/vg00/prova
Logical volume "/dev/vg00/prova" has been successfully changed.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

Yes you can without problem ....
Rita C Workman
Honored Contributor

Re: turn off bad block relocation

Yes you can do this live.

But please re-consider.

First, you turn BBR off because your disk (vendor) wants to control the Bad Block Re-allocation. And it should.
But it should do it from the get-go.
You may have not run into any issues doing this live, BUT....be aware that if a bad block reallocation has occured, and you turn this off (especially with things up), you won't realize it until system/box goes down and then the application tries to come back up. It won't know where any reallocated data is anymore.

You might consider ensuring you have a solid backup. Turn things down, then turn off BBR, as it should have been, then come backup and check things solidly.

Just my penny's worth of caution,
Rgrds,
Rita
Doug O'Leary
Honored Contributor

Re: turn off bad block relocation

Hey;

One more data point: According to the man page for lvchange on 11.23, bad block relocation is obsolte - it's only there to provided backward compatibility.

So, if you're using 11.23, you can set it or not - it won't matter because it doesn't do anything.

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html