I believe it to be the case that in order to prevent stale NFS handles
(say, after an upgrade), it is necessary to preserve the inode numbers
and the device number of the disk, both.
Preserving the inode numbers is easy if you're using external devices
- IE, you don't have a bunch of files in /export/home or something.
Additionally, I think it might be possible to create a script that
fixes the inode numbers, if you have a list of what they used to be.
However, we've not found a way to preserve the device numbers. They
almost seem to change at random.
Has anyone found a way of changing the device number at which a device
appears? Or of keeping them constant across upgrades?
Here's a script I use to check the device number and inode number of a
file. I've been calling it "devino":
for file in sys.argv[1:]:
s = posix.lstat(file)
Usage is like "devino file1 file2 file3"
Thanks for any suggestions you might have.