LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-29-2010, 04:38 PM   #16
Cregan
LQ Newbie
 
Registered: Mar 2010
Posts: 18

Original Poster
Rep: Reputation: 0
Worked?


I had a bit of luck today. I let everything run on the external drive (all backups and copying) and when I went to try umount it actually came back with no error, so I then did the vgchange -an offsite and it said 0 active volumes on Offsite. I then checked and the share wasn't available. Bravo so far. Then I disconnected the drive and re-connected it and I saw the sdf found on the console screen (improvement) I then Activated the VG and mounted remotebkup and the share was back available. BUT I tried umounting again but it was busy.. So I closed out the exploring window I was checking the Share with and tried the fuser -vm to find if it was smbd again and no response.. So I tried the umount and it worked.. I wonder if just having the Windows expolorer open after accessing the Share folder was keeping Samba active on the partition until I shut down exploring.

I will test the re-connection tomorrow and see if all the backups work with out the reboot.. Fingers crossed.
 
Old 03-30-2010, 12:48 AM   #17
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Quote:
Originally Posted by Cregan View Post
I wonder if just having the Windows expolorer open after accessing the Share folder was keeping Samba active on the partition until I shut down exploring.
Sounds very reasonable; let's hope that is the full story.
 
Old 03-30-2010, 10:54 AM   #18
Cregan
LQ Newbie
 
Registered: Mar 2010
Posts: 18

Original Poster
Rep: Reputation: 0
One Step Closer

Well the connection back worked great and it seems that I have found the right commands to accomplish the task. Now all I have to do is find out why/when Samba keeps the LV active or busy sometimes.

I appreciate all the help. I am trying to move more towards using Linux so hopefully this site will be a saving grace.
 
Old 03-31-2010, 12:11 PM   #19
Cregan
LQ Newbie
 
Registered: Mar 2010
Posts: 18

Original Poster
Rep: Reputation: 0
Not Yet

Well I tried to umount again and got the busy error and it was smbd. I tried doing a lazy unmount and then mounting back but even with a lazy unmount it showed the VG as having an active volume. I tried to mount/umount after the lazy umount and even if the umount happened without an error the vgchange still gave the error about the open volume.

Can I stop the Samba service long enough to umount this drive and then start the service back up?

I see the /etc/init.d/samba start or stop command.

The steps I see are

1. try umount if succesful goto #4
2. Stop samba
3. umount FS
4. Take VG offline
5. Start Samba
 
Old 03-31-2010, 12:31 PM   #20
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Quote:
Originally Posted by Cregan View Post
Can I stop the Samba service long enough to umount this drive and then start the service back up?
Sure but might it be easier to close Windows Explorer? Does it matter (= does Samba have a current working directory on the external file system?) whether Windows Explorer has a directory open on the Samba share?
 
Old 03-31-2010, 12:49 PM   #21
Cregan
LQ Newbie
 
Registered: Mar 2010
Posts: 18

Original Poster
Rep: Reputation: 0
Well the last time I tried Exploring wasn't open (I had just closed it). I wonder if it takes time for Samba to see the requests are not coming in from my windows machine. Also I ran the samba command and it lets me know what is open. So I am going to look this afternoon and see what is holding it up.
 
Old 03-31-2010, 04:00 PM   #22
Cregan
LQ Newbie
 
Registered: Mar 2010
Posts: 18

Original Poster
Rep: Reputation: 0
Progress

Well I was able to get things working a bit more stopping Samba long enough to umount the volume. Here is the process I am trying let me know if you think something isn't right.

1. sync (write any cache to disk)
2. umount /dev/offsite/remotebkup (if no busy error goto #4)
3. /etc/init.d/smb stop ( goto #2)
4. vgchange -an offsite
5. /etc/init.d/smb start
6. Remove external drive

When I used smbstatus I saw that 2 machines that did copying to the external (remotebkup) still had open sessions. If you a better way of just shutting down the smb to the remotebkup share that would be better than turning off Samba to all shares.

I did try smbcontrol smbd close-share remotebkup but it returned with no error but didn't close the connection either.

One step closer.
 
  


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
ubuntu installed on external hard drive, can't startup without external hard drive. Vanostaajen Linux - Software 23 01-20-2009 10:59 AM
mount an external usb lvm scc28y Linux - General 4 01-12-2009 10:35 PM
Slackware 12.1, LUKS, LVM on external HD. How? randomsel Slackware - Installation 7 06-26-2008 07:35 PM
external enclosure for an internal hard drive vs external USB hard drive powah Linux - Hardware 1 03-10-2006 10:03 AM
LVM with external USB drives pompeyjohn Linux - Hardware 0 10-01-2005 02:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:38 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration