Operating System - HP-UX
1753638 Members
5386 Online
108798 Solutions
New Discussion юеВ

How to detect if/when a SCSI disk is currently mounted by a(nother) machine

 
Enrico Venturi
Super Advisor

How to detect if/when a SCSI disk is currently mounted by a(nother) machine

Hi all,
it's simple problem, but I didn't find any solutions so far ...
I need to configure two servers which share a set of SCSI disks; the first of them, the server A, mounts the disks 1, 2, 3 and 4; the server B, as first steps, after the HP-UX installation, tries to mount some disks, hopefully the 5, 6, 7 and 8.
The installation is done by a careless guy, who mounts the disk 2 .. !!
All the data stored by A into 2 are lost :-(
Is there any way to detect, from B, that the disk 2 is currently used by A?
It's possible to detect if the disk has a current volume group mapped on it ... is it possible to deduce if the disk has been used during the last hour (for example)?

Thank you

 

 

P.S. This thread has been moevd from Disk to HP-UX > sysadmin. - Hp forum Moderator

2 REPLIES 2
harry d brown jr
Honored Contributor

Re: How to detect if/when a SCSI disk is currently mounted by a(nother) machine

With "pvdisplay -v /dev/dsk/c#t#d#"

you can detect if it belongs to an existing volume group, providing you use LVM.

live free or die
harry
Live Free or Die
Enrico Venturi
Super Advisor

Re: How to detect if/when a SCSI disk is currently mounted by a(nother) machine

The command you propose is able to detect the usage of disk 2 by machine A even if it is run on machine B?
I mean: if the disk 2 is used by A but the command is launched on B, what's the probable result?

Thank you
Enrico