Re: [gentoo-user] Firefox, downloading files and odd behavior.
On Thursday, January 10, 2019 1:55:59 AM CET Dale wrote: > Wols Lists wrote: > > On 07/01/19 10:46, Dale wrote: > >> From what I've read, that can be overcome. If you get say a SMART > >> message that a drive is failing, > > > > Yup, I have to agree that SMART isn't always reliable, but if you > > *monitor* it, it should give plenty of warning of the recording medium > > failing ... > > Yep. It may not detect a spindle motor that is about to fail. I'm sure > it can't detect that lightening is about to strike and the drive get hit > with a surge either. It can generally tell if the media is failing > tho. I've read it can detect some components that are starting to fail > to, not all but some. Still, even tho it can't detect everything, it is > better than no warning at all. Until something better comes along, ESP > maybe, it will have to do. ;-) > > >> just remove that drive or remove the > >> whole LVM setup and use something else until a working drive setup can > >> be made. Once ready, then move the data, if the drive still works, to > >> the new drive. That is basically what I did when I swapped a smaller > >> drive for a larger one. I moved the data from one drive to another. It > >> did it fairly quickly. Someone posted that it may even be faster to do > >> it with LVM's pvmove than it is with cp or rsync. I don't know how true > >> that is but from what I've read, it moves the data really efficiently. > > > > Point is, it works at a different level. Both cp and rsync are NOT > > guaranteed to copy your filesystem accurately - mine is full of hard > > links and that will give both those two a hard and nasty time. > > > > LVM copies the block device underneath the file system, so it is less > > efficient in that it will copy 3GB if you have a 3GB partition, but it > > is far simpler in that it neither knows nor cares what the file system > > is doing at the next level up. Give a file-system like mine to "cp -a" > > and it'll bring the system to its knees trying to keep track of where > > everything is. > > > > Cheers, > > Wol > > That was what I read but couldn't recall enough to tell how it does it. > That explains why it can be done while in use to. > > Just how do you do backups? If cp -a and rsync would not work > correctly, what do you use? I'm just curious now. ;-) There are backup tools that do handle hardlinks correctly. "app-backup/dar" comes to mind. I know this as my software-share is filled with hardlinks and when I restore the backup, they are all still there. -- Joost
Re: [gentoo-user] Firefox, downloading files and odd behavior.
On Thursday, 10 January 2019 08:28:24 GMT J. Roeleveld wrote: > On Thursday, January 10, 2019 1:55:59 AM CET Dale wrote: > > Wols Lists wrote: > > > On 07/01/19 10:46, Dale wrote: > > >> From what I've read, that can be overcome. If you get say a SMART > > >> message that a drive is failing, > > > > > > Yup, I have to agree that SMART isn't always reliable, but if you > > > *monitor* it, it should give plenty of warning of the recording medium > > > failing ... > > > > Yep. It may not detect a spindle motor that is about to fail. I'm sure > > it can't detect that lightening is about to strike and the drive get hit > > with a surge either. It can generally tell if the media is failing > > tho. I've read it can detect some components that are starting to fail > > to, not all but some. Still, even tho it can't detect everything, it is > > better than no warning at all. Until something better comes along, ESP > > maybe, it will have to do. ;-) > > > > >> just remove that drive or remove the > > >> whole LVM setup and use something else until a working drive setup can > > >> be made. Once ready, then move the data, if the drive still works, to > > >> the new drive. That is basically what I did when I swapped a smaller > > >> drive for a larger one. I moved the data from one drive to another. > > >> It > > >> did it fairly quickly. Someone posted that it may even be faster to do > > >> it with LVM's pvmove than it is with cp or rsync. I don't know how > > >> true > > >> that is but from what I've read, it moves the data really efficiently. > > > > > > Point is, it works at a different level. Both cp and rsync are NOT > > > guaranteed to copy your filesystem accurately - mine is full of hard > > > links and that will give both those two a hard and nasty time. > > > > > > LVM copies the block device underneath the file system, so it is less > > > efficient in that it will copy 3GB if you have a 3GB partition, but it > > > is far simpler in that it neither knows nor cares what the file system > > > is doing at the next level up. Give a file-system like mine to "cp -a" > > > and it'll bring the system to its knees trying to keep track of where > > > everything is. > > > > > > Cheers, > > > Wol > > > > That was what I read but couldn't recall enough to tell how it does it. > > That explains why it can be done while in use to. > > > > Just how do you do backups? If cp -a and rsync would not work > > correctly, what do you use? I'm just curious now. ;-) > > There are backup tools that do handle hardlinks correctly. "app-backup/dar" > comes to mind. I know this as my software-share is filled with hardlinks and > when I restore the backup, they are all still there. > > -- > Joost What about 'rsync -H' or 'tar --hard-dereference'? Don't they cater to hard links in the fs? As a block based backup application partclone is also good. It is very efficient in backing up blocks which are occupied by a fs, but not the rest of the empty space. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Setting up postfix and dovecot
On Tuesday, 25 December 2018 17:49:36 GMT Grant Taylor wrote: [Big snip...] > I think there may be more subtle things than you might be aware of. > I say that based on the context of your email. You are asking very > reasonable questions. But they seem fairly new to the process. As > such, I think some of the things along the way are going to surprise you. > > With that in mind, please allow me to make some recommendations: > > 1) Use a (sub)domain that is globally registered. > 2) Use a Let's Encrypt SSL certificate on the globally recognized FQDN. > 3) Use split DNS for internal / external resolution. > 4) I think forwarding might be the slightly lesser of the evils to get > email from your ISP to your server. But that requires external > accessibility to your email server. - I say this because fetchmail (et > al) functionally retrieves email and re-injects it as SMTP to your local > server. Thus forwarding at least doesn't switch protocols. > > Finally, postfix / dovecot / et al, make little difference in my > opinion. I think you could easily substitute different daemons in their > place. IMHO there is quite a bit more to think about than which of the > specific daemons you will run or how to configure them. Rather the > specific daemons fall in line after you have the answers to all the > other questions and a plan of action. That's been my difficulty all along: understanding what I need to do, before trying to set it up. Your recommendations are a great help in that, together with the considerable detail you offered. Many thanks for all the time and trouble you put into your reply, Grant. I am grateful, and you can be sure I'll act on it. Thanks again. -- Regards, Peter.
Re: [gentoo-user] Setting up postfix and dovecot
On 01/10/2019 09:59 AM, Peter Humphrey wrote: That's been my difficulty all along: understanding what I need to do, before trying to set it up. Your recommendations are a great help in that, together with the considerable detail you offered. Been there. Done that. If I can help others avoid some of the pain, great! Or at the very least streamline some things so it's less painful. Many thanks for all the time and trouble you put into your reply, Grant. I am grateful, and you can be sure I'll act on it. You're quite welcome. Feel free to reply or email me directly if you want to discuss more details. (gtaylor (at) tnetconsulting (dot) net) Thanks again. :-) -- Grant. . . . unix || die
[gentoo-user] -fstack-clash-protection vs -fstack-check
The systemd priv-esc (CVE-2018-16864) got me reading gcc's man page on -fstack-clash-protection, since https://www.theregister.co.uk/2019/01/10/systemd_bugs_qualys/ claims that systems with it enabled are not vulnerable. I already have -fstack-check, however, if I try to run both, gcc 8.2 complains; cc1: warning: ‘-fstack-check=’ and ‘-fstack-clash_protection’ are mutually exclusive. Disabling ‘-fstack-check=’ (there's a typo in gcc's message, the underscore should be a dash) Is -fstack-clash-protection safer than -fstack-check? From the man page it sounds like that's the case, but i'm not sure i understand what i'm reading. My lay person understanding is; stack-check verifies that memory is not accessed past what should be the end of the stack (based on the memory range allocated for the stack?). stack-clash-protection accesses each location iteratively so that it can be checked for the guard page (end of stack marker) before going further.
[gentoo-user] select + middle button paste in notepadqq
I find that pasting with the middle mouse button in notepadqq pastes the contents of the clipboard, not the last selected text like in other apps. Its been reported; https://github.com/notepadqq/notepadqq/issues/456 And there is a suggestion that it may be tweakable from outside notepadqq, but since other apps work as expected, i'm sceptical that it can be addressed that way. Any ideas?