Operating System - Tru64 Unix
1748003 Members
4476 Online
108757 Solutions
New Discussion юеВ

Re: Identify internal disk.

 
SOLVED
Go to solution
Ryan Phlip
Advisor

Re: Identify internal disk.

Hi,

Vladimir that command works. Thanks.

How do I find out given the h/w path if the disk is in used or not.

Example : I know the disk H/W like /dev/rdsk/dsk42c how do i find out if its in use or already configured.

I have been told that a long time back spare disks have been lying in the server which are not in use. So I could use one of those.

Kind Regards,
Ryan Philip
Rob Leadbeater
Honored Contributor

Re: Identify internal disk.

Hi Ryan,

If you're using AdvFS, if the disk is being used, then it will be referenced somewhere under /etc/fdmns. So this will give some output if it is being used:

# ls -lR /etc/fdmns | grep dsk42

If you're using UFS then you'll see it in /etc/fstab.

You should also sanity check that the disk isn't being used as a swap disk with

# swapon -s

Cheers,

Rob
Vladimir Fabecic
Honored Contributor

Re: Identify internal disk.

Rob answered your question.
So post output of:
# ls -lR /etc/fdmns
# cat /etc/fstab
# swapon -s
if you want us to check if there are unused disks.
In vino veritas, in VMS cluster
Venkatesh BL
Honored Contributor

Re: Identify internal disk.


>dd if=/dev/disk/dsk42c of=/dev/zero
>/dev/disk/dsk42c: Device busy

You should not see this error unless the block device is currently mounted. Are you sure that the AdvFS domain representing this device is unmounted now?
Ryan Phlip
Advisor

Re: Identify internal disk.

Hi,

Firstly, nothing has been done on the system. I mean I identified the disk is spoiled its in a domain with one fileset mounted but you cannot do anything as the disk is totally gone. It not mirrored.

I am sending the outout as requested.

Regards,
Ryan
Vladimir Fabecic
Honored Contributor

Re: Identify internal disk.

dsk107 , dsk108 and dsk109 do look free for use.
Check again.
Send output of:
# disklabel -r dsk107
# disklabel -r dsk108
# disklabel -r dsk109
In vino veritas, in VMS cluster
Ryan Phlip
Advisor

Re: Identify internal disk.

Hi,

It does not look free to me. I am sending you the output.

Yes there is no entry in /etc/fdmns/

Thanks,
Ryan
Ryan Phlip
Advisor

Re: Identify internal disk.

Hi,

It does not look free to me. I am sending you the output.

Yes there is no entry in /etc/fdmns/

Thanks,
Ryan
Vladimir Fabecic
Honored Contributor

Re: Identify internal disk.

Yes, these disks are labeled and have advfs created.
But do not see entries for them in /etc/fdmns.
Manually create entries for advfs domains, scan for file sets and try to mount them.
Do you know how to do it?
In vino veritas, in VMS cluster
Venkatesh BL
Honored Contributor

Re: Identify internal disk.

1) If you can find a _really_ free disk on the system, use it.

2) It is possible that there was an AdvFS domain created earlier using these disks (dsk107, 108 etc) and that they forgot to 'rmfdmn' when the domain was no longer required. Or, they reinstalled the OS which left these disks to remain marked as 'AdvFS'