- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Removing linked files
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2000 06:17 AM
08-18-2000 06:17 AM
Removing linked files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2000 06:24 AM
08-18-2000 06:24 AM
Re: Removing linked files
you need to identify who is using the file in order to delete it. do an fuser
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2000 06:25 AM
08-18-2000 06:25 AM
Re: Removing linked files
fuser -cu /path/to/filename
then follow this thread:
http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x9b567e990647d4118fee0090279cd0f9,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2000 06:30 AM
08-18-2000 06:30 AM
Re: Removing linked files
What is the precise error that you get? and what did the links used to point to?
If the soft link does not point anywhere then I can't see any reason why you can't rm it - it can't be in use because it's not a file.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2000 06:41 AM
08-18-2000 06:41 AM
Re: Removing linked files
fuser -cu returned:
/filename.
Also, fuser -fk /filename returned:
/filename: stat: No such file or directory
fuser could not find or access file /filename
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2000 06:51 AM
08-18-2000 06:51 AM
Re: Removing linked files
it could be that they point to 'open and unlinked files'. Oracle creates a tmp file, open's it and then deletes it, but keeps it open. fuser etc can't see this. However, I've never seen Oracle have a sym link to the file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2000 06:56 AM
08-18-2000 06:56 AM
Re: Removing linked files
I think Andy has the answer, ive seen the same thing with some wierd application. Its not going to be easy to rm this link without shutting down the application or logging off the user who has the file still open. If you shutdown your apps or log everyone off overnight for backup then write a cron job to try to rm the link every hour or so overnight and hopefully by morning its gone.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2000 06:57 AM
08-18-2000 06:57 AM
Re: Removing linked files
The links don't point to anything. Usually, when you "LL" filename you see the links pointing to some other file. Hmmm, not here. It just says:
lrwxrwxrwx 1 root root 20 date/time filename
not
lrwxrwxrwx 1 root root 20 date/time filename --> some-other-filename
There's no --> symbol pointing to the file it's linked to. Weird!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2000 07:02 AM
08-18-2000 07:02 AM
Re: Removing linked files
is it possible that the alias for ll has been redefined? try the following:
ls -lF filename or
ls -lL filename?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2000 07:05 AM
08-18-2000 07:05 AM
Re: Removing linked files
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2000 07:15 AM
08-18-2000 07:15 AM
Re: Removing linked files
You want to check the man page first so your aware of how nasty!
Also, might be worth running the attached program. It display open files that are unlinked. Obviously doesn't show there names, but you get the inode, filesystem and size of the file. Might help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2000 07:17 AM
08-18-2000 07:17 AM
Re: Removing linked files
I let you all know what happens:-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2000 07:18 AM
08-18-2000 07:18 AM
Re: Removing linked files
Also, you could try the attached program. it shows open files that are unlinked. Obviously not the name, but you get the inode number, filesystem and size of the file. It might help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2000 07:24 AM
08-18-2000 07:24 AM
Re: Removing linked files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2000 07:24 AM
08-18-2000 07:24 AM
Re: Removing linked files
Try doing an 'unlink '. it might work, but check the man page first
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2000 07:25 AM
08-18-2000 07:25 AM
Re: Removing linked files
Take a look at PHCO_18676 patch description. Do you have it installed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2000 07:43 AM
08-18-2000 07:43 AM
Re: Removing linked files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2000 09:07 AM
08-18-2000 09:07 AM
Re: Removing linked files
cc inspectsymlink.c -o inspectsymlink
It should compile with the bundled cc compiler or any other c or c++ compiler.
Then run it by doing:
./inspectsymlink /path/to/funky/symlink
And then post the results. The data it prints may help in understanding what is going on.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2000 11:13 AM
08-18-2000 11:13 AM