The problem he's going to have running a simple backup is when it walks the filesystem to build a file & directory list - any backup software is going to process that hardlink as a normal directory and go into a perpetual loop. That should be true for both inode and filename type backups.
Here's the way I would deal with it, assuming there is sufficient disk space to equal to a full copy of the filesystem.
First, build a list of all files in the filesystem, excluding the offending directory.
not 100% tested since I can't replicate the fault, but should suffice as pseudocode:
Code:
#!/bin/ksh
FILELIST=/a/directory/and/a/file
rm ${FILELIST} 2>/dev/null
# first process the top level of the /usr1 directory, excluding the logs subdir
cd /usr1
ls | grep -v "^log$" while read FDNAME
do
find /usr1/${FDNAME} -type f >> ${FILELIST}
done
# second process the log directory, skipping the offending directory
cd /usr1/log
ls | grep -v "^\.KSQmEa$" | while read FDNAME
do
find /usr1/log/${FDNAME} -type f >> ${FILELIST}
done
At this point, you can go a couple of different ways.
1) if you have enough space for 2 copies of /usr1:
a) Create a tarball using -L and the filelist that you just created to create a backup of /usr1 that excludes the problem directory.
b) Remount the broken filesystem as /usr1broken
c) Create a new /usr1
d) untar the tarball
2) if you have enough space for only 1 copy of /usr1
a) Create a second filesystem /usr1copy, and iterate through that filelist copying each file, maintaining permissions.
b) Remount the broken filesystem as /usr1broken
c) Remount the copied filesystem as /usr1
d) Repair any missing permissions (theoretically parse the entire file *and* directory tree, then pull the owner/group/perms for the same file from the original)
Both of these methods are intended simply to keep the broken filesystem around untouched, so there is always a recovery point if something goes badly wrong.
A third method would be to make a copy of the broken LV, perform a splitlvcopy on it, then perform the unlink as Rod mentioned. I don't favor doing this as if you've got a filesystem with a seriously weird problem (as you do), I would be concerned that it could have other problems. Copying the data to a newly created filesystem should ensure that you have a filesystem structure without hidden problems.