Operating System - HP-UX
1848780 Members
8777 Online
104036 Solutions
New Discussion

used a shared disk by accident

 
Todd McDaniel_1
Honored Contributor

used a shared disk by accident

Okay, I accidentally used a shared disk from my other host in the cluster.

I added it to a filesystem on my other box thinking it had been freed up but apparently not.

How do I fix the filesystem that i took it from by mistake?

I guess I need to remove the disk that I took from the old filesystem and then restore from a backup?

And I guess I will have to restore the new one I gave the other disk by mistake. after I reduce it out then restore it.



I guess my question is, what is easier to do? leave the disk where it is that I took and only have to fix one Filesystem? That seems easier than fixing two filesystems.

please help.
Unix, the other white meat.
6 REPLIES 6
Geoff Wild
Honored Contributor

Re: used a shared disk by accident

Ouch.

I know you don't want to know what should have happened...but this may help others...

In order to add it to another filesystem (in an existing vg) - you would have had to do a pvcreate -f as a regular pvcreate would have warned - disk already belongs to a volume group.

Then a strings on /etc/lvmtab to see if it already on the server in another vg.

As far as going forward - I would fix 2 - I would put that disk back on the other system - then restore....then create a new one on this system.

Also, if the disk doesn't need to be shared - then don't.


Rgds...Geoff




Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Todd McDaniel_1
Honored Contributor

Re: used a shared disk by accident

What is the downside of just leaving the disk where it is now and then lvreduce/vgreduce the disk on the corrupt FS and restoring the filesystems?

I will only have to restore 2 FS on the affected host.


Unix, the other white meat.
Todd McDaniel_1
Honored Contributor

Re: used a shared disk by accident

it was a stupid mistake on my part. I have been doing this a long time and i guess its b/c i am tired and was doing other things at the same time. I didnt pay attention to what I was doing.


I ran a report on the shared disks but mis-read it. I thought the disk was free but still had the lvm definitions somehow.
Unix, the other white meat.
Geoff Wild
Honored Contributor

Re: used a shared disk by accident

Yeah - you can do that - there's no real downside - unless you have documentation to update and / or cluster scripts.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Todd McDaniel_1
Honored Contributor

Re: used a shared disk by accident

no I dont, these particular filesystems are not shared, but are only local.

It should be okay if I just reduce the disk out and fix the 2 lvols involved.
Unix, the other white meat.
Todd McDaniel_1
Honored Contributor

Re: used a shared disk by accident

that was my real mistake... i misread a shared disk as a unshared one.

I have both types of disks... only my databases are shared, the app is local to each host. i was trying to add a disk to my app FS but misread the report and used a shared disk that was already used on the other host.


thanks.
Unix, the other white meat.