Chronic catastrophic data loss with Lion & servers

Auto-save and versions, when combined with multiple users and a server environment virtually guarantees catastrophic data loss.


Here's how you replicate it.


(1) Place a photo on a server.


For us, this is where we recommend people keep important files. Their desktop may be backed up with time machine, but the server is RAID 6 with hot spares, and on top of that is backed up every night. Much, much safer.


(2) Open that photo in preview. Crop it so that you can print it. Close preview. Notice it didn't ask you if you wanted to save?


(3) Open that file again. It's still cropped. The original? Gone. Choose "Revert to Saved" from the file menu. Notice the large number of empty windows on the right? Yup, you can't get back to the prior version, even though you never saved.


Now, as a network administrator, imagine the consequences of this for your network. Users accessing shared files and making changes they need, but not saving them because they don't need to be saved. Yup, their version is now THE definitive version for the entire network.


The ability to do non-destructive edits is something that computer users have been doing since, well, the dawn of computing more or less. Lion removes this. Now, add on top of that user mistakes in a network environment. User accidentally deletes all the text from a 24 page document. They don't know what to do so they close the app. Unless the backup has run since that 24 page document was created, it's gone. Forever. And ever. Amen.


Go to backups you say? What if the document isn't accessed for six months from when the user accidentally wiped it out. Hope your backup server is petabyte big, because otherwise that data is gone.


This is a huge, huge problem.


Joel

iMac, Mac OS X (10.7), Tested on both Server 10.6 and 10.7

Posted on Jul 29, 2011 4:19 PM

Reply
64 replies

Jan 9, 2012 7:35 AM in response to CT

CT wrote:


Yes, it would be nice if applications were written so that auto-save was a configurable option.

It would also be nice if Apple had provided a PowerPC compatibility layer so that all PowerPC applications would still run on Intel. After all, what could go wrong? People would switch to native applications eventually wouldn't they?

Jan 9, 2012 7:57 AM in response to CT

It's not "rookie behavior" at all. Quite the contrary. I know exaclty when I want things saved and when I do not. As a CFO, I do a LOT of "what if" type analysis. To be forced to save ahead of time every time I want to do somethng different is ridiculous.


What's more ridiculous though is that Lion has been out for months and this has not been addressed. We have halted a network wide deployment of Lion because of this bug, and are having serious conversations about what we will move to if this is not resolved. This is not like removing an obsolete piece of hardware, it is extremely detrimental and dangerous in a network environment.


Those of you who claim "it's nothing to worry about" clearly don't have responsibilities for networks worth of data. It is simply not possible to train every user to work a certain way. Even at 10.7.2 Lion still results in dataloss if a user opens a document on the server and works with it in any way. Every once in a while it puts up a confusing dialog box, but not every time. Absoloutely inexcusable.


Joel

Jan 12, 2012 6:25 AM in response to CT

CT wrote:


What a rookie.

I'm sure you feel all high and mighty calling someone a rookie but you are missing the point(s). What I heard is this:


  1. Previous to Lion, a user had to take an action (i.e., Save) to change what was stored on the server. With Lion, changes get stored automatically even if you didn't mean them to be. With everyone ingrained in the age-old "open document, play with it, don't save it" method versus "open, duplicate, play with duplicate" method, someone is bound to mess up. While the system was far from foolproof before Lion, the Lion way makes it almost a sure thing that inadvertent changes will get saved.
  2. Lion is supposed to keep prior versions. It is apparently not doing this on the server. An inadvertent change will wipe out the previous version. I can't test this assertion about versions not being saved but that is what was stated as part of the issue.


There are plenty of systems out there not using versioning controls and they were working just fine before, even if they were not foolproof. Going by what has been stated as the problem, Lion will wreak havoc on them.

Jan 12, 2012 8:28 AM in response to etresoft

No they don't - autosave can lead to data loss when used on:

*SD / USB cards

*non AFS mounted shares (e.g. Samba shares to our linux servers)

it basically jeopordises data intergity for a significant proportion of users and requires a data handling metaphor that is less convenient than today's non-autosave system.


It might work well in a single-user, Mac only environment. That does not, however, reflect the real world.

Jan 12, 2012 9:24 AM in response to mythrenegade

You see, that is the problem with a carefully constructed scenario. If you don't construct it just right, it all falls apart.


No one has ever claimed that Lion Server behaves any differently Snow Leopard Server (or Windows or Solaris for that matter) in this regard. Let's assume you meant Lion client instead.


Furthermore, just quitting an application does not close the document. When you re-open the application and decide you don't like those changes after all, you can use Versions to restore the previous version. Even if the file system you are using does not support Versions, Lion still maintains local versions of a document until you close it. At that point, it will warn you that you will lose your versions. For the sake of argument, let's assume this is a new Lion user who ignores those warnings.


What "original data" are you talking about? You just copied it to the server. You had to have copied it from somewhere. That version is unchanged. In a real world scenario, a file on the server would be locked and the user would be forced to manually unlock or create a duplicate.


Of course, your suggestion to use Lion Server is a good one. If all of your files were backed up with Time Machine on the server, the most you could never lose the original data.

Jan 12, 2012 9:47 AM in response to etresoft

You can argue all you want but you clearly haven't tried any of this. People keep referring to "non-AFS" shares, which is why I mentioned Lion server. The problem is with any server.


And the warning message you are talking about? Sometimes it comes up, often it does not. The whole system is broken and doesn't work. I manage a network with 80 users. Putting Lion on a network is like giving children a loaded gun and telling them to be careful with it.


You can put your fingers if your ears and claim everything is fine all you want. It's not. Auto-save and versions are a disaster when coupled with network servers. Period.


Joel

Jan 12, 2012 3:51 PM in response to mythrenegade

In my experience, the pop-up warning pops up if you hit the close button on the document. I have never seen it fail to appear when the close button is pressed. This is acceptable.


In my experience, closing an application such as Pages when there is an open document will save your work to the server and keep a local copy of the versioning. In Pages you may see "saving" pop up for a moment. In Preview there is a pause but nothing that says "saving". The copy on the server is altered. Not good.

Jan 12, 2012 4:54 PM in response to Badunit

The "save" operation is going away. That's a fact of life. It was a foreign operation created because if the limitations of past technology. Those limitations are gone. Any writable file on a ever can be changed at any time using any type of client. You don't need Lion to do that. If you have files you don't want to change, you need to make them read only.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Chronic catastrophic data loss with Lion & servers

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.