Operating System - Tru64 Unix
1753284 Members
5439 Online
108792 Solutions
New Discussion юеВ

Re: What function whit these files under /etc/fdmns/*

 
SOLVED
Go to solution
Rambo_1
Regular Advisor

What function whit these files under /etc/fdmns/*

I see some files under /etc/fdmns/ ,what function with these files?
for example:
#/etc/fdmns/ls -l
total 24
-r-------- 1 root system 0 Oct 7 13:06 .advfslock_fdmns
-r-------- 1 root system 0 Oct 7 13:06 .advfslock_root_domain
-r-------- 1 root system 0 Feb 28 11:57 .advfslock_test_domain
-r-------- 1 root system 0 Oct 7 13:06 .advfslock_usr_domain
2 REPLIES 2
Hein van den Heuvel
Honored Contributor
Solution

Re: What function whit these files under /etc/fdmns/*

As per a note from 1998 the answer is:
--------------------------------------


This is a brief overview of the AdvFS locking mechanism.

AdvFS has two general types of utilities: "fast" and "slow". The slow utilities
are currently defragment, balance, rmvol, and rmfset. All other utilities are
"fast" utilities.

AdvFS also has two types of locks: a general lock for all domains, and a
domain-specific lock for each domain on a system.


AdvFS also has two types of locks: a general lock for all domains, and a
domain-specific lock for each domain on a system.

The algorithm for a fast utility is:

Acquire the general lock. If it's currently held, wait for it to be
released.
Acquire the domain-specific lock. If it's currently held, error out
with a message that a slow utility is currently running.
Perform primary function.
Release domain-specific lock.
Release general lock.
Exit.

The algorithm for a slow utility is:

Acquire the general lock. If it's currently held, wait for it to be
released.
Acquire the domain-specific lock. If it's currently held, error out
with a message that a slow utility is currently running.
Release general lock.
Perform primary function.
Release domain-specific lock.

The general AdvFS lock uses the /etc/fdmns/.advfslock_fdmns file, while the
domain-specific locks use the /etc/fdmns/.advfslock_ file.
Michael Schulte zur Sur
Honored Contributor

Re: What function whit these files under /etc/fdmns/*

Hi Hein,

that's interesting, what you wrote. I allways saw those files, but had no real idea, what they were there for.

Hi Rambo,

just in case, you wonder, why the directories. They contain the links to the partitions, a domain consists.

Michael