Gentry, Stephen writes: > I think I've painted myself into a corner. My root subdirectory has > gotten full. When I built this linux, /opt and a couple other subdir > were installed as separate mount points. Now, I'd like to move var to a > separate dasd/mount point. When I try to rm the var subdirectory, I use > the -rf command. However, 5 subdir's won't delete. They are: > > `var/lib/nfs/rpc_pipefs/statd' > `var/lib/nfs/rpc_pipefs/portmap' > `var/lib/nfs/rpc_pipefs/nfs' > `var/lib/nfs/rpc_pipefs/mount' > `var/lib/nfs/rpc_pipefs/lockd' > > I get an "operation not permitted" message. I figure that maybe there > is a task running, so I go and kill some tasks that look like they might > be related to this, but still no luck. I need to remove this subdir so > I can mount the new one (var). I do not have a 2nd linux running > therefore, I cannot mount this disk to a 2nd one and delete var. > Basically, all I have is a linux command line in a 3270 session. I can't > putty into this linux under existing conditions. > Does anyone have any suggestion?
You will find that there is a (pseudo)filesystem mounted on /var/lib/nfs/rpc_pipefs which supports some fancy NFS functionality. You will need to unmount it first or else avoid descending into it when attempting to remove files under /var. I'm surprised that going down to runlevel 1 doesn't unmount it but perhaps the init.d scripts don't tidy up everything or else some nfs-related kernel module keeps some refcount on it. After stopping all nfs-related services via their init.d scripts, try a "fuser -m /var/lib/nfs/rpc_pipefs" to see if any processes are still around. Once those are stopped, you should be able to "umount /var/lib/nfs/rpc_pipefs" unless there's a kernel refcount held on it somehow. --Malcolm -- Malcolm Beattie System z SWG/STG, Europe IBM UK ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
