Re: Could reiserfsprogs display volume labels when doing fsck upon boot?
Vitaly Fertman wrote: For reiser4, would this do it? in function *reiser4_master_open(aal_device_t *device) in libreiser4/master.c /* Reiser4 master super block is not found on the device. */ if (aal_strncmp(SUPER(master)-ms_magic, REISER4_MASTER_MAGIC, sizeof(REISER4_MASTER_MAGIC)) != 0) { aal_fatal(Wrong magic found in the master super block.); goto error_free_master; } /* Print volume label */ aal_mess(reiser4_master_get_label(master)); return master; error_free_master: aal_free(master); return NULL; Stab in the dark :P I would put it into fsck after fs gets opened to not force all callers to get this message. however, 'fsck.reiser4 -a' does not perform any check yet and does not even open fs. Hello Vitaly, Thanks for the info. Here is where I show my ignorance so bear with me..Can the caller be identified somehow? Say for example, a mount operation or an fsck, then output the system label if there is one..or does this sort of cosmetic touch not fit in libreiser? __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
Re: Could reiserfsprogs display volume labels when doing fsck upon boot?
Vitaly Fertman wrote: On Friday 14 October 2005 16:07, Raymond A. Meijer wrote: On Friday 14 October 2005 15:07, Vitaly Fertman wrote: [...] ok, I will add it. Vitaly, is it possible to add labels to Reiser4 filesystems AFTER mkfs, or only during mkfs? only on mkfs time for now. For reiser4, would this do it? in function *reiser4_master_open(aal_device_t *device) in libreiser4/master.c /* Reiser4 master super block is not found on the device. */ if (aal_strncmp(SUPER(master)-ms_magic, REISER4_MASTER_MAGIC, sizeof(REISER4_MASTER_MAGIC)) != 0) { aal_fatal(Wrong magic found in the master super block.); goto error_free_master; } /* Print volume label */ aal_mess(reiser4_master_get_label(master)); return master; error_free_master: aal_free(master); return NULL; Stab in the dark :P
Re: Could reiserfsprogs display volume labels when doing fsck upon boot?
Wiktor Wandachowicz wrote: jp.guillemin at free.fr writes: I think the idea is basically great , and I would like to see such a feature in reiser3 reiser4... Just IMHO ;) JP Well, I've checked the source and actually all the needed data were already in place. I mean: the reiserfs_super_block structure contains the needed s_label field. So I've changed a bit one source file and voila! Now the volume label is shown exactly as I would like it to see. The whole point is to change the print_super_block function in the reiserfscore/prints.c file, as following: === QUOTE BEGIN === /* return 1 if this is not super block */ int print_super_block (FILE * fp, reiserfs_filsys_t * fs, char * file_name, struct buffer_head * bh, int short_print) { struct reiserfs_super_block * sb = (struct reiserfs_super_block *)(bh-b_data); dev_t rdev; int format = 0; __u16 state; if (!does_look_like_super_block (sb)) return 1; rdev = misc_device_rdev(file_name); /* Print volume label if it is non-empty. */ if (sb-s_label[0]) { reiserfs_warning (fp, %s: , sb-s_label); } reiserfs_warning (fp, Reiserfs super block in block %lu on 0x%x of , bh-b_blocknr, rdev); switch (get_reiserfs_format (sb)) { === QUOTE END === For reiserfs-3.6.19, .18 .17 I just needed to add the following test (I don't have older versions, but I suppose it's also applicable): /* Print volume label if it is non-empty. */ if (sb-s_label[0]) { reiserfs_warning (fp, %s: , sb-s_label); } I think I'll send that as a patch to the Namesys, like they say on their website: http://namesys.com/code.html, with all the needed legal mambo-jumbo from: http://namesys.com/legalese.html Vote for this feature enhancement and maybe they will incorporate it mainstream. IMHO it's quick, easy, sane and adds some value at the same time. I can't say if the same is possible for ReiserFS v.4 because I don't use it. Friendly, Wiktor I've found this method in Reiser4 sources reiser4_master_get_label(fs-master) And I am assuming this function from libreiser4/master.c /* Reads master super block from disk */ reiser4_master_t *reiser4_master_open(aal_device_t *device) { would be where to call the reiser4_master_get_label method...I'll try to modify the code and see if my assumptions are correct. Yiannis. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
Reiser4 file recovery
Hello :-) I had an LVM setup of three disks, and one of them went belly up..Obvious thought is, use some distro like R.I.P to reduce the volume to two disks and try and salvage what I could ..unfortunately reiser4 fsck could not find a superblock (surprise surprise the disk that died had it) nor could it build the FS because it cannot find the metadata..Under normal circumstances, I would not bother but my wife's mp3's are in those disks and she will have my head if I don't figure out some way to restore them :) Any suggestions? Y. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
Re: Reiser4 file recovery
Christian Iversen wrote: On Monday 10 October 2005 17:06, michael chang wrote: On 10/10/05, Yiannis Mavroukakis [EMAIL PROTECTED] wrote: Hello :-) I had an LVM setup of three disks, and one of them went belly up..Obvious thought is, use some distro like R.I.P to reduce the volume to two disks and try and salvage what I could ..unfortunately reiser4 fsck could not find a superblock (surprise surprise the disk that died had it) nor could it build the FS because it cannot find the metadata..Under normal circumstances, I would not bother but my wife's mp3's are in those disks and she will have my head if I don't figure out some way to restore them :) Any suggestions? Maybe you want to use RAID 5 or something instead of LVM, because of parity, in the future. I suggest you run Spinrite (grc.com, ~$50 IIRC) on the bad disk from a floppy or CD-ROM in DOS (the program makes images for you in Windows, if you have a working partition, or you can get images from the site IIRC once you've bought a copy) and see how much is recovered (assuming it's just bad sectors or something). Re-add it to the LVM, recover to a seperate media, and then convert the whole thing to a RAID (maybe via tar?). I know it's not a free solution, but data recovery is nearly impossible w/o paying in one way, shape, or form. It's easier to have backups. As usually, Gibson Research is skimpy on details, so I'm not entirely sure if spinrite is anything more than a disk imager. If not, just use the free (gratis libre) dd_rescue program instead. It will save you $50. Thanks for the suggestions guys...however I should have clarified that I no longer have the dead disk (long story...) so I am kind of stuck with what I have...Am I stuffed ? __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
Re: Reiser4 file recovery
michael chang wrote: On 10/10/05, Sander [EMAIL PROTECTED] wrote: Yiannis Mavroukakis wrote (ao): Thanks for the suggestions guys...however I should have clarified that I no longer have the dead disk (long story...) FWIW, I'm interested in the story if you don't mind :-) Ditto. so I am kind of stuck with what I have...Am I stuffed ? You just lost one-third of your data, right? Depends if all the MP3s were on that 1/3rd of the data that was lost. If so, then yes, you are really badly stuffed. n island, and no man is unable. I am hoping they are on the other two..we'll see tomorrow.. as for the how..it involves me cleaning the server in the balcony, spray dusting a drive *over* the balcony and jumping out of my skin when a friend tapped me on the shoulder (thought I was alone in the flat).. Drive vs Gravity 0 - 1
Re: Interview with Hans on KernelTrap
Peter Foldiak wrote: Hans, in the interview you give the example: cat /home/reiser/mp3s//childcat /dev/dsp to illustrate concatenation. [...] The convention (I think also approved(suggested?) by Linus at some point) could be that where you say /home/reiser/mp3s you get a the file (or concatenation, if the directory has no file content itself), but when you say /home/reiser/mp3s/ (with the trailing /), you get the directory. If cool is the first perceived benefit, then why do it ? Besides, it's quite easy through force of habit or mistype to add a '/' __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
mount issue with kernels 2.6.11
Hi, I'm running reiser4 on 2.6.11-mm4 at the moment. I compiled 2.6.13-mm1 (and subsequently a few more kernel version in-between) as a replacement, only to find out that it blows up in my face when the root fs is due to be mounted: VFS: Cannot open root device 801 or unknown-block Unable to mount root fs on unknown-block (8,1) Now, I am not sure this is due to reiser4, I suspect some change in the LSI MegaRaid legacy driver that may be the culprit, but I wanted the opinion of the list first, before I go crying to someone else :) Thank you, Yiannis. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
Re: online fsck
Philippe Gramoullé wrote: Hello, On Tue, 24 May 2005 22:02:20 -0500 btinsley [EMAIL PROTECTED] wrote: | What i'm looking for is a check on a reiserfs filesystem that is | mounted read-write. Many modern filesystems, especially those on NAS | devices, can run periodic background consistency checks on filesystems | with almost zero impact on performance. Some devices are reportedly | running these checks constantly, possibly correcting errors without | user intervention... even a notification to a sysadmin would be a good | feature. Last time i asked Hans about the possibility to have a --rebuild-tree (for reiserfs) while the fs is online and mounted rw, he told me to send 30.000 US Dollars in, and that it could eventually be done ;) Sure lots of people would find this a killer feature, but someone will definitely have to pay get such a feature implemented. Thanks, Philippe Then Hans should setup a paypal account for donations. I'd gladly give what I can spare, and I think so would a lot of people here. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
Re: improving Reiserfs Performance
Jos Houtman wrote: Yiannis Mavroukakis wrote: Jos Houtman wrote: Hello list, First of all, We are a website that provide picture albums to its users. At moment we host almost 2 million, which are served in 5 different formats from icons to 700x500. We store all there files on our NAS server and serve these with SQUID proxys. But we are having performance problems, and I'am orientating myself for possible fields of improvement. [snip] Have you considered the fact that your bottleneck may be over NFS? Y. I most certainly did, and it is a problem, but iam trying to work my way bottom up. It's a bit hard to say anything about NFS performance while the filesystem/disks could be causing the majority of the delays. After i did my best on the this level i intend to look at NFS in more depth, but any hints/tips you allready have are welcome. jos ReiserFS actually performs the best under heavy hammering and thousands of files IMHO ;) Changing to RAID10 will improve performance Reiser4: again IMHO not yet, although your site would make a nice test bed :) Have you done any localised (i.e. not over a network) testing on the filesystem? If not, you'll be stabing in the dark for reasons, at least in my book. Do you have a stock kernel or have you 'custom' compiled yours? Y __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __
ReiserFS quota and 2.6.10
From the subject, you have probably already guessed what I am about to ask.. Is quota working ok with vanilla 2.6.10 with ReiserFS? Thank you! Note:__ This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Jaguar Freight Services and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs.
ReiserFS quota and 2.6.10
Because I like to keep people happy, especially Valdis Kletnieks, I'll repost my query from another email account without a disclaimer..here we go. == From the subject, you have probably already guessed what I am about to ask.. Is quota working ok with vanilla 2.6.10 with ReiserFS? Thank you! == Happy now?
RE: rebuild-tree working for more then 3 days- what to do?
Alternatively, try the following. Go to slackware.com Grab a reiser3 enabled boot image and make a bootdisk. If memory serves me right, this is the one you want ftp://ftp.mirror.ac.uk/sites/ftp.slackware.com/slackware-10.0/kernels/ba reacpi.i Then, go into ftp://ftp.mirror.ac.uk/sites/ftp.slackware.com/slackware-10.0/rootdisks/ and grab rescue.dsk and make a rootdisk. You could go two ways about it from now on If there is space on the rootdisk, mount it and copy the reiserfsprogs binaries into it. If not, use a third disk to hold the binaries. Boot off the bootdisk, slam the rescue rootdisk in when requested, and best of luck :D Yiannis. -Original Message- From: Shoshannah Forbes [mailto:[EMAIL PROTECTED] Sent: 07 January 2005 12:44 To: Vladimir Saveliev Cc: reiserfs-list@namesys.com Subject: Re: rebuild-tree working for more then 3 days- what to do? On 07/01/2005, at 14:33, Vladimir Saveliev wrote: When you boot off liveCD - do you have a network Yes, I have a Network and place where reiserfsprogs can be put and compiled besides that 60gb device with broken reiserfs? Not locally (that machine has only one HD), but I can mount a share on the Mac via the network. I guess I'll try that. Then boot liveCD, download reiserfsprogs and fsck. --- Shoshannah Forbes http://www.xslf.com This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. Note:__ This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Jaguar Freight Services and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs.
RE: Congratulations! we have got hash function screwed up
Hello Matthias, Your proven reasoning sounds a bit strange to me..Microsoft (aka major distributor at least in my books) had her filesystems in the field for ages, does this prove any of them good (or bad for that matter)? I don't think I'd wait for a distributor to shove reiser4 down my throat, just because the distributor seems to trust it, so the logical course would be for me to try it out. I'll grant you that I am not using it on the mission critical server, because our hosting provider will not support it (ext3 addicts..oh well) but I do have it on my development server, that does house critical code and receives all kinds of hammering from yours truly; And I use it at home. I suppose my point is, filesystem testing and adoption belongs to the masses be they your average Joe Linux user or a sysadmin who feels confident enough in the filesystem's abilities to take the plunge. I run reiser4, I'm happy with it, it is stable enough to carry out my *own* activities. Happy holidays, Yiannis. -Original Message- From: Matthias Andree [mailto:[EMAIL PROTECTED] Sent: 30 December 2004 10:23 To: Hans Reiser Cc: reiserfs-list@namesys.com; Stefan Traby Subject: Re: Congratulations! we have got hash function screwed up Hans Reiser [EMAIL PROTECTED] writes: Again, this is a lame excuse for a bug. First you declare some features on your filesystem, later, when it turns out that it isn't being delivered, you act as if this were a known condition. Well this is true, you are right. Reiser4 is the fix though. No, it isn't. Reiser4 is an alternative beast. Or will it transparently fix the collision problem in a 3.5 or 3.6 file system, in a way that is backwards compatible with 3.6 drivers? If not, please fix reiser3.6. Given that Reiser4 isn't proven yet in the field (for that, it would have to be used as the default file system by at least one major distributor for at least a year), it is certainly not an option for servers _yet_. A file system that intransparently (i. e. not inode count or block count) refuses to create a new file doesn't belong on _my_ production machines, which shall migrate away from reiserfs on the next suitable occasion (such as upgrades). There's ext3fs, jfs, xfs, and in 2006 or 2007, we'll talk about reiser4 again. Yes, I am conservative WRT file systems and storage. -- Matthias Andree This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. Note:__ This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Jaguar Freight Services and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs.
RE: Congratulations! we have got hash function screwed up
My reasoning mentioned a /required/, but not a /sufficient/ criterion. In other words: not before it is proven in the field will I consider it for production use. Remember the Linux 2.2 reiserfs 3.5 NFS woes? Remember the early XFS-NFS woes? These are all reasons to avoid a shiny new file system for serious work. I agree, but you're generalising, this is not xfs and reiser4 is not 3.5 ;) If you don't try out the shiny new filesystem yourself, how can you possibly dismiss it based on the past failures of other filesystems? For practical recovery reasons (error on root FS after a crash), ext3fs is easier to handle. You can fsck the (R/O) root partition just fine (e2fsck then asks you to reboot right away); for reiserfs, you'll have to boot into some emergency or rescue system... No biggie for me, just have a removable media of some sort with your running kernel and some basic tools. Y. Note:__ This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Jaguar Freight Services and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs.
RE: Congratulations! we have got hash function screwed up
You state that proven is the same as good, but why you do so escapes me. In general, you can easily prove that black == white (etc.) by such illogical reasoning. No I don't :) I merely say that proven does not equal good OR bad if a distributor chooses to bundle the filesystem with a distribution. It can be proven good or proven bad :) Clear?:) [..]Unless the filesystem is in the field for some time these bugs will not be found. I agree but only if the filesystem is used in the real world, and it's adoption is not driven primarily by distributors. BTW red|purple|brown might as well be black if you are colour blind ;))) It's all a mater of perception. Note:__ This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Jaguar Freight Services and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs.
RE: Does this look right?
Forgive my short-sightedness in this respect, but where's the benefit in this approach?:) -Original Message- From: Markus Törnqvist [mailto:[EMAIL PROTECTED] Sent: 01 December 2004 09:36 To: Yiannis Mavroukakis Cc: [EMAIL PROTECTED] Subject: Re: Does this look right? On Mon, Nov 29, 2004 at 01:48:13PM -, Yiannis Mavroukakis wrote: Am I completely loosing it ? Using 2.6.10-rc2-mm3 allows me to go into a file as a directory when the file has the executable flag...that shouldn't be happening, should it? Is this a sign that files-as-dirs are seen stable enough by AKPM to no longer be disabled by default? If it is, it's time to pop a bottle of celebratory beer ;) -- mjt This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. Note:__ This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Jaguar Freight Services and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs.
Does this look right?
Am I completely loosing it ? Using 2.6.10-rc2-mm3 allows me to go into a file as a directory when the file has the executable flag...that shouldn't be happening, should it? [EMAIL PROTECTED]:~# ls -l file -rwxr-xr-x 1 root root 0 2004-11-29 13:50 file [EMAIL PROTECTED]:~# cd file [EMAIL PROTECTED]:~/file# ls ls: reading directory .: Not a directory Yiannis. Note:__ This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Jaguar Freight Services and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs.
RE: reiser4 crash
I've been seeing people having trouble with reiser4 crashing and I'm jealous :-) I want mine to crash too, it's not fair I haven't had a spot of trouble since I installed the patches my Unreal Tournament server hasn't gone down once! :P :P :P Yiannis. -Original Message- From: Vladimir Saveliev [mailto:[EMAIL PROTECTED] Sent: 25 November 2004 16:55 To: [EMAIL PROTECTED] Cc: Markus Törnqvist; [EMAIL PROTECTED] Subject: Re: reiser4 crash Hello On Thu, 2004-11-25 at 15:35, Cal wrote: -- and then at Thu, 25 Nov 2004 14:05:45 +0200, it was written ... ftp://ftp.namesys.com/pub/reiser4-for-2.6/2.6.9/ There was an update today. Please make sure you got patch number 2. http://marc.theaimsgroup.com/?l=reiserfsm=110121057720746w=2 It is possible the posted patch is included in the second patch at namesys. I'd still like to know about the two -cko patches though, as I can't remember which ones they were (I'm at the office) and if they should be included and whatever Cool, thanks! I found the mailing list one, and with that applied to 2.6.10-rc2-mm3, the first run of apt-get update completed successfully. That's good! I've been looking after grandkids for a couple of days, so I missed the recent 2.6.9 updates on ftp.namesys.com. I'm more interested in 2.6.10-rcx+, but l'll maybe take a look at the 2.6.9 stuff. I'm a little confused about the cko reference. I'm happily running 2.6.9-cko3 ona seconfd system, but I've not seen any breakdown of the cko series (ie, the two particular cko patches you're referencing). cheers, and thanks Cal This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. Note:__ This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Jaguar Freight Services and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity. This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs.