Re: [gentoo-user] Mysterious silent remount / ro

2019-03-18 Thread Peter Humphrey
On Sunday, 17 March 2019 17:15:26 GMT Mick wrote:
> On Sunday, 17 March 2019 17:05:58 GMT Grant Taylor wrote:
> > On 3/17/19 10:48 AM, Peter Humphrey wrote:
> > > My little Atom box has a small rescue system which I boot once a week
> > > to back up the main system. The backup script is a simple list of bash
> > > commands to mount partitions and tar them to a USB disk.
> > 
> > Please share a copy of the backup script.

I've found the problem. I wrote the script many years ago, before cgroups were 
invented, and more recently my script was unmounting /sys/fs/cgroup/ along 
with the real partitions. I can't begin to imagine what chaos that would 
cause, but having squashed the bug I don't see the self-unmounting any more.

The script starts with everything but the root filesystem unmounted, then 
mounts one partition at a time to tar it to a USB disk. The problem was a 
side-effect of the way I was first unmounting everything (don't ask).

Sorry about the noise. It did cause me to look more carefully though.

> > > While the backup is running I run another script to clean up after
> > > any recent update, which involves removing surplus packages, running
> > > eclean etc.
> > 
> > Please share a copy of your cleanup script.
> > 
> > > But! At least once per session I have to remount the root filesystem
> > > read-
> > > write because something, presumably tar, has caused it to be remounted
> > > read- only.
> > 
> > "tar" itself shouldn't alter mounts at all.
> > 
> > It is possible that there could be a mount option that causes the file
> > system to be remounted read-only if there is a problem accessing the
> > file system.
> > 
> > > Where do I start tracking this down? This behaviour was a factor in
> > > my suspecting an SSD failure, but I've replaced that and still get the
> > > same remounting.
> > 
> > But such remounting is not likely on a new SSD.
> 
> Yes, it would be unlikely.
> 
> > I'd need to see the scripts to even hazard a guess as to what might be
> > happening.
> 
> Also, in your previous thread you mentioned you were about to run memtest to
> discard the possibility of a faulty RAM.  Did you run it overnight and what
> did you get?

After fixing my backup script I did run memtest through a few cycles, but it 
didn't find anything wrong.

-- 
Regards,
Peter.






Re: [gentoo-user] Mysterious silent remount / ro

2019-03-17 Thread Mick
On Sunday, 17 March 2019 17:05:58 GMT Grant Taylor wrote:
> On 3/17/19 10:48 AM, Peter Humphrey wrote:
> > Hello list,
> 
> Hi,
> 
> > My little Atom box has a small rescue system which I boot once a week
> > to back up the main system. The backup script is a simple list of bash
> > commands to mount partitions and tar them to a USB disk.
> 
> Please share a copy of the backup script.
> 
> > While the backup is running I run another script to clean up after
> > any recent update, which involves removing surplus packages, running
> > eclean etc.
> 
> Please share a copy of your cleanup script.
> 
> > But! At least once per session I have to remount the root filesystem read-
> > write because something, presumably tar, has caused it to be remounted
> > read- only.
> 
> "tar" itself shouldn't alter mounts at all.
> 
> It is possible that there could be a mount option that causes the file
> system to be remounted read-only if there is a problem accessing the
> file system.
> 
> > Where do I start tracking this down? This behaviour was a factor in
> > my suspecting an SSD failure, but I've replaced that and still get the
> > same remounting.
> 
> But such remounting is not likely on a new SSD.

Yes, it would be unlikely.


> I'd need to see the scripts to even hazard a guess as to what might be
> happening.

Also, in your previous thread you mentioned you were about to run memtest to 
discard the possibility of a faulty RAM.  Did you run it overnight and what 
did you get?

-- 
Regards,
Mick

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Mysterious silent remount / ro

2019-03-17 Thread Grant Taylor

On 3/17/19 10:48 AM, Peter Humphrey wrote:

Hello list,


Hi,

My little Atom box has a small rescue system which I boot once a week 
to back up the main system. The backup script is a simple list of bash 
commands to mount partitions and tar them to a USB disk.


Please share a copy of the backup script.

While the backup is running I run another script to clean up after 
any recent update, which involves removing surplus packages, running 
eclean etc.


Please share a copy of your cleanup script.

But! At least once per session I have to remount the root filesystem read- 
write because something, presumably tar, has caused it to be remounted 
read- only.


"tar" itself shouldn't alter mounts at all.

It is possible that there could be a mount option that causes the file 
system to be remounted read-only if there is a problem accessing the 
file system.


Where do I start tracking this down? This behaviour was a factor in 
my suspecting an SSD failure, but I've replaced that and still get the 
same remounting.


But such remounting is not likely on a new SSD.

I'd need to see the scripts to even hazard a guess as to what might be 
happening.




[gentoo-user] Mysterious silent remount / ro

2019-03-17 Thread Peter Humphrey
Hello list,

My little Atom box has a small rescue system which I boot once a week to back 
up the main system. The backup script is a simple list of bash commands to 
mount partitions and tar them to a USB disk.

While the backup is running I run another script to clean up after any recent 
update, which involves removing surplus packages, running eclean etc.

But! At least once per session I have to remount the root filesystem read-
write because something, presumably tar, has caused it to be remounted read-
only.

Where do I start tracking this down? This behaviour was a factor in my 
suspecting an SSD failure, but I've replaced that and still get the same 
remounting.

-- 
Regards,
Peter.