nvram to protect fs during power loss?
There have been some discussions about recovery abilities during power loss if write cache is enabled. Some recovery tool I saw once used NVRAM to store progress info so that if you had a power loss it would be able to resume.
Perhaps it would be possible for Reiser4 to store some info, like time indexes etc in NVRAMwhen it send sync commands to the disk. This way it might be possible to avoid corruptions by simply verifying (fsck) the data stored after that time index etc?
I have no idea how often NVRAM can be written to before it goes bad. Is there a limit?
~S
Quoted 5 lines · Spam
There have been some discussions about recovery abilities during power loss if write cache is enabled. Some recovery tool I saw once used NVRAM to store progress info so that if you had a power loss it would be able to resume.
Typically specialized hardware, typically used for NFS (which is stateless) doing "caching" of the writes to enhance performance.
Quoted 4 lines
Perhaps it would be possible for Reiser4 to store some info, like time indexes etc in NVRAMwhen it send sync commands to the disk. This way it might be possible to avoid corruptions by simply verifying (fsck) the data stored after that time index etc?
The way the journals/logs does??
Yes, I know that good hardware already do use battery backups and similar. But I was talking about normal consumer hardware; desktops, laptops, etc.
I do not know how the internals of reiser4 works, but one of the problems said to be that it cannot be certain about the order and integrity of the data if a power failure occur. But if reiser4 stored some kind of index number, key etc, on regular intervals then that could certainly help in recovering the filesystem to a working state.
As it is now you can end up with a severely broken filesystem that doesn't even mount if you have a power failure. IMO a filesystem should do its best to protect the data on it. I thought that perhaps using NVRAM could aid in the recovery after the powerloss, instead of tossing a user "bad error, use --build-sb to fix" during next boot.
~S
Quoted 10 lines · Spam
Quoted 5 lines
There have been some discussions about recovery abilities during power loss if write cache is enabled. Some recovery tool I saw once used NVRAM to store progress info so that if you had a power loss it would be able to resume.
Typically specialized hardware, typically used for NFS (which is stateless) doing "caching" of the writes to enhance performance.
Quoted 6 lines
Quoted 4 lines
Perhaps it would be possible for Reiser4 to store some info, like time indexes etc in NVRAMwhen it send sync commands to the disk. This way it might be possible to avoid corruptions by simply verifying (fsck) the data stored after that time index etc?
The way the journals/logs does??
´
Quoted 4 lines · Spam
Yes, I know that good hardware already do use battery backups and similar. But I was talking about normal consumer hardware; desktops, laptops, etc.
Okay, if you want to use the NVRAM on a desktop, it's waaaaayyyyyy too little to even consider. You'll need NVRAM (battery backed up etc.) in the order of Megabytes to make it of any use Spam.
Why not just purchase a UPS and place it on your system? Seems like it be a lot cheaper. That way the system can safely shut down in case of a power outage?
Quoted 10 lines · Hendrik Visage
Quoted 4 lines · Spam
Yes, I know that good hardware already do use battery backups and similar. But I was talking about normal consumer hardware; desktops, laptops, etc.
Okay, if you want to use the NVRAM on a desktop, it's waaaaayyyyyy too little to even consider. You'll need NVRAM (battery backed up etc.) in the order of Megabytes to make it of any use Spam.
Signature · 2 lines
Nick Vahalik CCNA, Linux Specialist
Quoted 5 lines
Why not just purchase a UPS and place it on your system? Seems like it be a lot cheaper. That way the system can safely shut down in case of a power outage?
How can buying additional hardware be cheaper? Do you expect most users, including Laptop users, to use UPS?
Quoted 4 lines
Quoted 2 lines · Hendrik Visage
Quoted 1 line · Spam
Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Yes, I know that good hardware already do use battery backups and similar. But I was talking about normal consumer hardware; desktops, laptops, etc.
Okay, if you want to use the NVRAM on a desktop, it's waaaaayyyyyy too little to even consider. You'll need NVRAM (battery backed up etc.) in the order of Megabytes to make it of any use Spam.
I thought NVRAM already was battery backed up or was as flash?
In any case. It was said on this mailing list that because of the write cache we do not know if the journal was written before the actual data.
With a simple pointer we can know the latest journal entry that was surely saved before the power loss (you can update the NVRAM when you tell the disk to sync etc). When you reboot the the fsck tools can scan all the journal entries that occurred after to verify that the data is on disk or not. This must be much faster than doing a full scan of the entire filesystem? How can disk require several megabytes? I am not talking about storing the journals in the NVRAM.
~S
Quoted 2 lines · Spam
How can buying additional hardware be cheaper? Do you expect most users, including Laptop users, to use UPS?
Almost all laptop users already have UPS.. it's called their batteries!!!
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines
Okay, if you want to use the NVRAM on a desktop, it's waaaaayyyyyy too little to even consider. You'll need NVRAM (battery backed up etc.) in the order of Megabytes to make it of any use Spam.
I thought NVRAM already was battery backed up or was as flash?\
YEs, but those few bytes (not even kilobytes) is one too small to do anything usefull for a cache/journal/whatever related to a filesystem, and also way too slow to access.
Quoted 7 lines
With a simple pointer we can know the latest journal entry that was surely saved before the power loss (you can update the NVRAM when you tell the disk to sync etc). When you reboot the the fsck tools can scan all the journal entries that occurred after to verify that the data is on disk or not. This must be much faster than doing a full scan of the entire filesystem? How can disk require several megabytes? I am not talking about storing the journals in the NVRAM.
I believe the reiserfs team would appreciate the code if you could prove it usefull ;-)
Quoted 3 lines · Nick Vahalik
Why not just purchase a UPS and place it on your system? Seems like it be a lot cheaper. That way the system can safely shut down in case of a power outage?
One would think that, then one discovers the magic of broken UPSes.
I remember one installation where it was a mix of machines on site power and machines on unmaintained UPSes.
There was a higher incident of power related down time on the systems on UPSes because the UPSes hadn't had batteries replaced after they'd been discharged too far, nor had the dust bunnies blown out periodically.
Unfortunately UPSes and NVRAM fail to address what tends to be the core problem. Morons in the Machine Room.
Signature · 4 lines
Chris Dukes Warning: Do not use the reflow toaster oven to prepare foods after it has been used for solder paste reflow. http://www.stencilsunlimited.com/stencil_article_page5.htm
Quoted 3 lines · Chris Dukes
Unfortunately UPSes and NVRAM fail to address what tends to be the core problem. Morons in the Machine Room.
:)
like I had to be called out @02:00 Dec 24th 2000... site down...that was *after* the brand spanking new generators and UPSes (with new batteries!!!) have been installed for the Y2k stuff... turned out the power fed to the UPSes from the generators was going via faulty trip switches...