On Wed, Dec 22, 2010 at 10:21 AM, Henry Coleman <[email protected]>wrote:
> Hi John, thanks for getting back to me. > I made the changes as you suggested. and things are looking much better. > It's a bit like the old shell game "first you see it then you don't" > so here is the current status: > Booting up ... There are no reported errors re: chown > without the USB stick thing work as normal ie backup and restore in backup > directory etc. > Inserting the stick and refreshing the GUI page shows the new directory > structure on the USB stick. > However after a backup they get saved to the HD directory instead > Unplugging the USB stick does not restore the original HD directory, only a > reboot does this. > Thank you for your time on this, I think backup strategies would be a great > topic for TAUG meeting. > Can you do one? > Henry > > > > > > > > > On Mon, Dec 20, 2010 at 2:42 PM, John Lange <[email protected]> wrote: > >> Henry, sorry for the slow reply. Hopefully you solved this already but >> if not, the area of the udev file that you need to modify is: >> >> $env{mount_options},utf8,gid=100,umask=002 >> >> Change gid= to the value of the group you want the file system to be >> mounted and owned as and also add "uid=" and set it to the user id >> that matches your asterisk user. >> >> You can discover these values with the command: >> >> # id asterisk >> >> I haven't tested this myself but that should solve your problem. >> >> John >> >> On Wed, Dec 15, 2010 at 9:23 AM, Henry Coleman >> <[email protected]> wrote: >> > >> > >> > On Wed, Dec 15, 2010 at 10:03 AM, Henry Coleman < >> [email protected]> >> > wrote: >> >> >> >> Hi John, I didn't mean to be critical about any typo's, I was replying >> to >> >> a post that thought relatime was >> >> mis-spelled, anyway this was not the case (as you know). >> >> You are correct, simply commenting out that line works, and the freepbx >> >> GUI is able to "see" the mounted USB directory. >> >> If I make a backup it doesn't create a file on the device and if I >> remove >> >> the stick it does not "see" the original directory >> >> If I reboot the machine (without the stick) then it restores the >> original >> >> file structure back to normal. >> >> I think this is a very close to a great solution for many Asterisk >> >> followers but the coding is way over my "pay grade". >> >> >> >> Thanks Henry >> > >> > After checking some stuff one problem may have to do with permissions: >> > File backups in /var/lib/asterisk/backups/xxx... have the owner as >> > "asterisk" while the stick has the owner of the directory >> > as "root". I will attempt to change this but I could use some help. >> > Thanks again Henry >> > >> > >> >> >> >> >> >> >> >> >> >> >> >> On Tue, Dec 14, 2010 at 1:59 PM, John Lange <[email protected]> wrote: >> >>> >> >>> If I understand what you are saying; even though you commented out the >> >>> entire line with the "relatime" option, you are still getting the same >> >>> mount >> >>> error when you insert the USB stick? >> >>> >> >>> When you change the udev rules, udev should automatically re-read the >> >>> options, but just in case it doesn't, you can issue: >> >>> >> >>> # udevadm control --reload-rules >> >>> >> >>> (I'm not 100% sure that command exists in centos though...) >> >>> >> >>> If that has all been done properly then it seems impossible that you >> are >> >>> still getting the same error... >> >>> >> >>> When you remove the drive, is it unmounted (check at the command line >> >>> using >> >>> the 'mount' command). >> >>> >> >>> And what typo are you referring to? I don't amke typos! ;) >> >>> >> >>> -- >> >>> John Lange >> >>> www.johnlange.ca >> >> >> >> >> >> >> >> -- >> >> Henry L. Coleman >> >> Per: VoIP-PBX.ca >> >> >> >> >> > >> > >> > >> > -- >> > Henry L. Coleman >> > Per: VoIP-PBX.ca >> > >> > >> > >> >> >> >> -- >> John Lange >> www.johnlange.ca >> > > > > -- > *Henry L. Coleman * > ***Per: VoIP-PBX.ca > * > * > * > > > -- *Henry L. Coleman * ***Per: VoIP-PBX.ca * * *
