All of lore.kernel.org
 help / color / mirror / Atom feed
* How do I stop the roll backs?
@ 2017-09-01 10:52 toddandmargo
  2017-09-01 11:38 ` Carlos Maiolino
  0 siblings, 1 reply; 6+ messages in thread
From: toddandmargo @ 2017-09-01 10:52 UTC (permalink / raw)
  To: linux-xfs

Hi All,

Fedora 26

Every time I shutdown, everything i have modifies or added  gets rolled back.
And I have to restore everything from backup, including most of the customer's
data that was copied from Samba on the old server.  It is a disaster.

How do I stop this?

Many thanks,
-T



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How do I stop the roll backs?
  2017-09-01 10:52 How do I stop the roll backs? toddandmargo
@ 2017-09-01 11:38 ` Carlos Maiolino
  2017-09-01 23:41   ` ToddAndMargo
  0 siblings, 1 reply; 6+ messages in thread
From: Carlos Maiolino @ 2017-09-01 11:38 UTC (permalink / raw)
  To: toddandmargo; +Cc: linux-xfs

Hi,

On Fri, Sep 01, 2017 at 03:52:47AM -0700, toddandmargo wrote:
> Hi All,
> 
> Fedora 26
> 
> Every time I shutdown, everything i have modifies or added  gets rolled back.
> And I have to restore everything from backup, including most of the customer's
> data that was copied from Samba on the old server.  It is a disaster.
> 

This is quite weird, are you able to reproduce it by just
mounting/modifying/unmounting the filesystem?

Only thing that comes to my mind at a first glance would be if something went
wrong with the journal.

Can you provide more details about your setup? Mainly regarding the storage
organization where your XFS filesystem is in. Logs, from the system too.

A good guide of what information to provide can be found here:

http://xfs.org/index.php/XFS_FAQ#Q:_What_information_should_I_include_when_reporting_a_problem.3F


> How do I stop this?
> 
> Many thanks,
> -T
> 
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
Carlos

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How do I stop the roll backs?
  2017-09-01 11:38 ` Carlos Maiolino
@ 2017-09-01 23:41   ` ToddAndMargo
  2017-09-02  7:55     ` Stefan Ring
  0 siblings, 1 reply; 6+ messages in thread
From: ToddAndMargo @ 2017-09-01 23:41 UTC (permalink / raw)
  To: linux-xfs

On 09/01/2017 04:38 AM, Carlos Maiolino wrote:
> Hi,
> 
> On Fri, Sep 01, 2017 at 03:52:47AM -0700, toddandmargo wrote:
>> Hi All,
>>
>> Fedora 26
>>
>> Every time I shutdown, everything i have modifies or added  gets rolled back.
>> And I have to restore everything from backup, including most of the customer's
>> data that was copied from Samba on the old server.  It is a disaster.
>>
> 
> This is quite weird, are you able to reproduce it by just
> mounting/modifying/unmounting the filesystem?
> 
> Only thing that comes to my mind at a first glance would be if something went
> wrong with the journal.
> 
> Can you provide more details about your setup? Mainly regarding the storage
> organization where your XFS filesystem is in. Logs, from the system too.
> 
> A good guide of what information to provide can be found here:
> 
> http://xfs.org/index.php/XFS_FAQ#Q:_What_information_should_I_include_when_reporting_a_problem.3F
> 
> 
>> How do I stop this?
>>
>> Many thanks,
>> -T
>>
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

Hi Carlos,

For the full run down and details on this stinker, see
https://bugzilla.redhat.com/show_bug.cgi?id=1483279
It includes a full hardware and OS list.

Basically, the stinking (not my "actual" word) backup drive itself
turned out to be the problem: Western Digital WD20NPVZ 2TB.

If you are using the OS drive when this happens, you are just toast.
If you are booted off a live USB, then this is the error you get:

     Failed to mount "894 GB Volume"
     Error mounting /dev/md126p2 at 
/run/media/todd/f1c297de-d5c6-48ba-ac8f-d2c1a7b4702d: Command-line 
`mount -t "xfs" -o "uhelper=udisks2,nodev,nosuid" "/dev/md126p2" 
"/run/media/todd/f1c297de-d5c6-48ba-ac8f-d2c1a7b4702d"' exited with 
non-zero exit status 32: mount: 
/run/media/todd/f1c297de-d5c6-48ba-ac8f-d2c1a7b4702d: can't read 
superblock on /dev/md126p2.

The bug report is full of details.

You unmount the drive, pull it out of the hot swap sleave,
put it back in, wait 20 seconds, and your main hard drive
seizes.  You have to power off to recover.  The one fingered
reset doesn't even work,  Then XFS senses a crash and journals
(rolls back) gigabytes of your data.

So XFS was actually doing what it was suppose to do, which
is to fix a crash.  For my purposes, it was altogether much to
aggressive.  I would prefer it checked for corruptions before
it journaled backwards.

I converted the system to all ext4.  I was at the customer's
site till 06:00 in the morning repairing everything.  Fortunately
I keep good backup.  Unfortunately, when switching file systems
your can't just restore your home partition and use the new
install.  I tried about five different ways and then just
went through everything an reinstalled it from backup.  Some of
the back up data was journalled too.  Fortunately I has old
backups too.  And having to switch from "legacy" to "EUFI"
was a pain in the neck (again, not my "actual" word).

And SELinux almost ate my lunch.  But I prevailed
and kept extensive notes on each service it affected: cups-lpd,
samba, named, ssh, xrdp, iptables.  About drove me nuts.
Samba was a "real treat" to figure out.


So, I got to see XFS in action.  I can see were this would be
an advantage in a large data setting.  But, again, it is way too
aggressive for me.  I would rather it did an fsck and then
journaled back what it couldn't fix.

Oh, I came up with a unique way of blanking out a disk!
In BIOS set it up as RAID (which blanks the drive), then
remove it from the raid for reuse.

gparted really need some kind of blank the drive option.
It gave me fits at times.  I must have installed the OS 20 times
last night narrowing the hot swap crash down to the stinking back
up drive.  This weird as I do this all over the place, including
my own office.

I figure I am now out about 1000 U$D with all the free
troubleshooting to figure this out.  And a lot of lost sleep.
Life in the fast lane.  Huh!

-T


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How do I stop the roll backs?
  2017-09-01 23:41   ` ToddAndMargo
@ 2017-09-02  7:55     ` Stefan Ring
  2017-09-03  1:31       ` ToddAndMargo
  2017-09-03 12:06       ` Carlos E. R.
  0 siblings, 2 replies; 6+ messages in thread
From: Stefan Ring @ 2017-09-02  7:55 UTC (permalink / raw)
  To: linux-xfs

On Sat, Sep 2, 2017 at 1:41 AM, ToddAndMargo <ToddAndMargo@zoho.com> wrote:
>
> For the full run down and details on this stinker, see
> https://bugzilla.redhat.com/show_bug.cgi?id=1483279
> It includes a full hardware and OS list.

TBH, I've never heard of SATA hotplug and would not in my wildest
dreams expect it to work, let alone put it to work at a customer site.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How do I stop the roll backs?
  2017-09-02  7:55     ` Stefan Ring
@ 2017-09-03  1:31       ` ToddAndMargo
  2017-09-03 12:06       ` Carlos E. R.
  1 sibling, 0 replies; 6+ messages in thread
From: ToddAndMargo @ 2017-09-03  1:31 UTC (permalink / raw)
  To: Stefan Ring, linux-xfs

On 09/02/2017 12:55 AM, Stefan Ring wrote:
> On Sat, Sep 2, 2017 at 1:41 AM, ToddAndMargo <ToddAndMargo@zoho.com> wrote:
>>
>> For the full run down and details on this stinker, see
>> https://bugzilla.redhat.com/show_bug.cgi?id=1483279
>> It includes a full hardware and OS list.
> 
> TBH, I've never heard of SATA hotplug and would not in my wildest
> dreams expect it to work, let alone put it to work at a customer site.

Oh I have it working beautifully all over the place and
have done it for years, including my own office.  I
have only had a problem with this model of drive.

That being said, I am looking at converting to USB 3
carriers.  haven't really found one I like yet.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How do I stop the roll backs?
  2017-09-02  7:55     ` Stefan Ring
  2017-09-03  1:31       ` ToddAndMargo
@ 2017-09-03 12:06       ` Carlos E. R.
  1 sibling, 0 replies; 6+ messages in thread
From: Carlos E. R. @ 2017-09-03 12:06 UTC (permalink / raw)
  To: Linux-XFS mailing list


[-- Attachment #1.1: Type: text/plain, Size: 1485 bytes --]

On 2017-09-02 09:55, Stefan Ring wrote:
> On Sat, Sep 2, 2017 at 1:41 AM, ToddAndMargo <> wrote:
>>
>> For the full run down and details on this stinker, see
>> https://bugzilla.redhat.com/show_bug.cgi?id=1483279
>> It includes a full hardware and OS list.
> 
> TBH, I've never heard of SATA hotplug and would not in my wildest
> dreams expect it to work, let alone put it to work at a customer site.

I have been using SATA hotplug for years, and it works reliably.

However, the OS disk can not be swapped, and I have not tested it with
RAID components.

I use it to connect backup or extra data disks, usually with a single
big XFS partition on them, sometimes encrypted with LUKS.

It doesn't work on all firmware: for instance on the desktop computer
I'm using now, there are two SATA connectors that can't hotswap.

https://en.wikipedia.org/wiki/Serial_ATA

«The Serial ATA Spec includes logic for SATA device hotplugging. Devices
and motherboards that meet the interoperability specification are
capable of hot plugging.

Unlike PATA, both SATA and eSATA support hot swapping by design.
However, this feature requires proper support at the host, device
(drive), and operating-system levels. In general, all SATA devices
(drives) support hot swapping (due to the requirements on the
device-side), also most SATA host adapters support this command.[1]»

-- 
Cheers / Saludos,

		Carlos E. R.
		(from 42.2 x86_64 "Malachite" at Telcontar)


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-09-03 12:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-01 10:52 How do I stop the roll backs? toddandmargo
2017-09-01 11:38 ` Carlos Maiolino
2017-09-01 23:41   ` ToddAndMargo
2017-09-02  7:55     ` Stefan Ring
2017-09-03  1:31       ` ToddAndMargo
2017-09-03 12:06       ` Carlos E. R.

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.