LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-04-2006, 12:32 PM   #1
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Question Why was "lazy unmount" required in this situation?


I'm not sure why I had to do a lazy unmount to unmount /opt in the scenerio below. Can anyone give me a clue why this might have been necessary? I've never had problems unmounting in single user mode before ... I'm just trying to increase my knowledge regarding what could have caused this.
Code:
# telinit 1
# umount /opt
  (device busy)
# ps -ef
  (only root daemon processes, and the shell I was working in)
# pwd
  (/root)
# lsof /opt
  (nothing)
# fuser -c /opt
  (nothing)
# netstat -an
  (nothing)
# umount -l /opt
  (WORKED!!!)
 
Old 03-04-2006, 12:50 PM   #2
tvynr
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 143

Rep: Reputation: 15
Hmm... this is a wild stab, but was the device functioning? My laptop hard drive lost its mind recently and the only way I could unmount the thing was to use a lazy unmount. If /opt was a device mount, was the device in good, sane condition?
 
Old 03-04-2006, 01:07 PM   #3
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Original Poster
Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Quote:
Originally Posted by tvynr
but was the device functioning?
Perfectly, as far as I can tell. Here's the exact scenerio that led up to the issue (LVM gets into the mix, but I'm not sure that's relevent):
Code:
# lvrename /dev/vg0/debian_usr /dev/vg0/usr
# lvrename /dev/vg0/debian_var /dev/vg0/var
# lvrename /dev/vg0/debian_tmp /dev/vg0/tmp
# lvrename /dev/vg0/debian_home /dev/vg0/home
# lvrename /dev/vg0/debian_opt /dev/vg0/opt
# telinit 1
# umount /usr
# umount /var
# umount /tmp
# umount /home
# umount /opt   <<< ERROR!  device busy
I was unmounting the filesystems in preparation for renaming vg0 to vg_linux. That volume group renaming operation requires a vgchange -a n vg0 followed by vgrename /dev/vg0 /dev/vg_linux. But for some reason /opt didn't want to unmount. I don't think the lvrename had anything to do with the unmount failure, because all the other filesystems unmounted OK.
 
Old 03-04-2006, 01:38 PM   #4
tvynr
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 143

Rep: Reputation: 15
I'm afraid I'm lost for ideas. Anyone else?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xmame problems "ERROR: required files are missing" GT_Onizuka Linux - Games 14 09-19-2007 02:10 AM
unmount error!!! "command not found" yorgmeister Fedora 1 12-21-2005 11:39 AM
"trigger" required when a host joins the WLAN or leaves (newbie) deepesh8214 Linux - Wireless Networking 0 09-14-2004 02:15 AM
I cannot use "java chat". Browser says plugin required "x-java-vm". jdruin Linux - Software 4 04-18-2004 05:44 PM
Gift trouble -- "libltdl support is temporarily required" TheChicken Linux - Software 1 10-26-2003 09:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration