Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Operating System - Tru64 Unix
Showing results for 
Search instead for 
Did you mean: 

LSM: Reintroducing a dsk to LSM

Carl Schelin
Occasional Visitor

LSM: Reintroducing a dsk to LSM

OS: Tru64 5.1b

We had a disk generating errors that was under LSM control (disk06 -> dsk6). I had the disk replaced however the backup the DBAs created isn't working. They'd like to bring the disk back to see if they can get some of the data (there were four databases on the disk).

The disk was a single disk in a single volume.
dm disk06 dsk6 sliced 4096 71127888 -

v u02 fsgen ENABLED ACTIVE 35651584 SELECT -
pl pl-02 u02 ENABLED ACTIVE 35651584 CONCAT - RW
sd disk06-01 pl-02 disk06 0 35651584 0 dsk6 ENA

I have the disk back in the system but can't find a command that would let voldisk see dsk6 as a LSM controlled disk.

I'm thinking voldisksetup -i dsk6 would actually work since it's the data in the public area that I'm trying to recover and the metadata in the private area doesn't match the configuration now.

Or, could I just bring the public slice under advfs domain control (would it overwrite something) and just mount it?

I have several things I can try if it didn't blow the information on the public disk away.

Thanks for any help.

Carl Schelin
Manju R
Occasional Visitor

Re: LSM: Reintroducing a dsk to LSM


I'm not sure of the steps that were followed when the disk was replaced and the volume was recovered from the backup.

I'm trying to provide a solution based on the following assumption,
The replaced disk did not work as expected, thus the disk was removed and the error prone disk was put back.

If this is the case, run the below 2 commands. I'm not sure whether they succeed as there is no mention of the type of errors that were being reported by the disk.
Presuming that the disk had a temporary failure please run,

#voldctl enable
(This command scans all known disks to ensure disk is available)

#volrecover -sb disk_name
(In this case disk_name is dsk6 , performs volume recovery operations by starting disabled volumes and doing the recovery operation in the background)

Kapil Jha
Honored Contributor

Re: LSM: Reintroducing a dsk to LSM

Hello ,
How did you remove the disk??/
did you use -k(to keep) option while removing disk.
If yes,then you may use volrecover -sb.

Did you recently run volsave???
Otherwise I think it should work if we add this dsk6 like normal method.
Hope this would help abit.
I am in this small bowl, I wane see the real world......
Carl Schelin
Occasional Visitor

Re: LSM: Reintroducing a dsk to LSM

Thanks for the replies.

Since it was a single disk being managed by LSM, we didn't see a reason to bring the replacement disk back under LSM control. So we removed the configuration from LSM and then put the new disk in the machine. I recreated the domain and fileset then mounted it for the DBAs to use.

The old disk was generating a lot of timeouts when trying to access data. According to HP support, there were physical errors on the disk too. But it appeared to return the data eventually. So we ran a tar command on the directory over the weekend to try and save the files. When the DBAs restored the tar file, the files were extracted however the data was corrupt.

After some discussion, we decided to try and put the old disk back in and see if we could bring it back under LSM control without losing the data in the public area. A last ditch effort if you will.

I did a lot of research yesterday to locate something that might do the trick but wasn't able to find anything. At the end of the day, the other admin here who has a lot more experience with these systems and I tried to just rebuild the volume.

The binary error log had 20 or so errors in the logs from the time I put the disk back in until the end of the day. At one point, when we were working on the volume, the disk errored out again and we had to delete the volume information and start over.

We eventually got the volume recreated however the data was not accessible.

Thanks for taking a look at the problem and for the replies.

Carl Schelin
Occasional Visitor

Re: LSM: Reintroducing a dsk to LSM

Basically we've passed the point that replies would be helpful, at least in this case. Thanks again for taking the time to read and reply.