Re: How do I fsck an XFS file system in Squeeze
On Mon,31.May.10, 03:20:40, Cameron Hutchison wrote: lrhorer lrho...@satx.rr.com writes: lrhorer put forth on 5/20/2010 6:09 PM: How can I obtain the XFS file utilities - particularly xfs-repair - under Squeeze? The simple answer to my original question was, xfsprogs. Doing a synaptic search for xfs returns far, far too many results through which to easily sift, and searching for xfs_repair returns none at all. The meta-answer to your original question is http://packages.debian.org from which you can search the contents of packages if you know what file you're looking for. At the bottom of that page is a section titled Search the contents of packages. It's so useful that I have a iceweasel/firefox smart bookmark set up for it, so I can just type dpcs xfs_repair into my address bar and I get the answer you were looking for (dpcs == debian package content search) Or just install apt-file ;) Regards, Andrei -- Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic signature.asc Description: Digital signature
Re: How do I fsck and XFS file system in Squeeze
On Fri, May 21, 2010 at 07:19:13PM -0500, Mark Allums wrote: Really? Well, I expect XFS has a substitute. If not, it should. No, it doesn't. XFS will handle journaling issues at boot automagically, but a real fsck requires a bit of manual intervention. I just went through this today, and this is what you need to do: 1. Boot into rescue mode. Most people I know keep their boot and root partitions as ext3, so this should go smoothly even if you need to fsck your xfs partitions. 2. Unmount the XFS partitions you want to check. xfs_repair will do evil things to mounted partitions. 3. Run xfs_repair on your unmounted partitions. 4. Remount your partitions, and check lost+found. I strongly recommend running debsums --all after running xfs_repair on /usr, /var, and so on if any problems are found. 5. Reinstall any package that may have been corrupted. 6. Reboot--not always necessary, but highly recommended. Keep in mind that XFS only checks journaled metadata during mount--it doesn't do any filesystem integrity checks, even when one touches /forcefsck. Running xfs_repair once in a while is something I strongly recommend on home systems and workstations. -- Oh, look: rocks! -- Doctor Who, Destiny of the Daleks -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100531083103.gf7...@penguin.codegnome.org
Re: How do I fsck an XFS file system in Squeeze
Stan Hoeppner wrote: lrhorer put forth on 5/20/2010 6:09 PM: OK, I'm stumped. I was having some problems which were likely related to the old kernel in Debian Lenny, so I upgraded to Squeeze in order to alleviate the issue, which it apparently has. Now, however, I need to fsck the main array on the box, which is formatted as XFS. The xfs-repair utility is not on the upgraded system. (I was forced to do a fresh install of the boot drive.) How can I obtain the XFS file utilities - particularly xfs-repair - under Squeeze? Unless you're seeing XFS errors in your logs or on the console you don't need to run xfs_check or xfs_repair. Typically these tools are only used when an XFS filesytem becomes damaged badly enough that it won't mount, or when XFS logs serious errors. For the most part XFS is self healing but for the most serious errors, which usually result from defective disk and/or controller hardware. XFS journal replay after power outages and kernel panics will either delete or zero files and directories that weren't fully written at the time of the crash, but the XFS filesystem itself will be fully intact. What is it that leads you to believe you need to perform a filesystem check or repair on your XFS filesystem? Well, first of all, even if it is not needed now, it may be in the future. To answer your question, however, it was needed because the underlying array suffered a catastrophic failure, and has since been rebuilt. Having rebuilt the array, and knowing that at least some data had possibly been lost at the block device level, it is at least prudent to double-check the health of the file system structures. Indeed, xfs_repair found and repaired some corrupted structures. The files were extracted and re-written to the drive from storage using rsync. The simple answer to my original question was, xfsprogs. Doing a synaptic search for xfs returns far, far too many results through which to easily sift, and searching for xfs_repair returns none at all. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/7dkdnun8mtungp7rnz2dnuvz_jwdn...@giganews.com
Re: How do I fsck an XFS file system in Squeeze
lrhorer lrho...@satx.rr.com writes: lrhorer put forth on 5/20/2010 6:09 PM: How can I obtain the XFS file utilities - particularly xfs-repair - under Squeeze? The simple answer to my original question was, xfsprogs. Doing a synaptic search for xfs returns far, far too many results through which to easily sift, and searching for xfs_repair returns none at all. The meta-answer to your original question is http://packages.debian.org from which you can search the contents of packages if you know what file you're looking for. At the bottom of that page is a section titled Search the contents of packages. It's so useful that I have a iceweasel/firefox smart bookmark set up for it, so I can just type dpcs xfs_repair into my address bar and I get the answer you were looking for (dpcs == debian package content search) -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/b15.4c032b08.16...@getafix.xdna.net
Re: How do I fsck and XFS file system in Squeeze
On 5/23/2010 12:41 AM, Stan Hoeppner wrote: Mark Allums put forth on 5/22/2010 8:32 PM: That's a very odd thing. Thanks for correcting me. I would not have guessed that file system structure would be dependent on OS word width. I mean, that seems like a catastrophic implementation/design bug. It's not an instruction word width issue, but has more to do with the width of the data registers, and addressable virtual memory of 32bit platforms. Yes, Stan. Okay, Stan. Fine, Stan. Whatever you say, Stan. MAA -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4bf8cc08.2030...@allums.com
Re: How do I fsck and XFS file system in Squeeze
On 5/23/2010 12:41 AM, Stan Hoeppner wrote: Mark Allums put forth on 5/22/2010 8:32 PM: That's a very odd thing. Thanks for correcting me. I would not have guessed that file system structure would be dependent on OS word width. I mean, that seems like a catastrophic implementation/design bug. It's not an instruction word width issue, but has more to do with the width of the data registers, and addressable virtual memory of 32bit platforms. I mistyped. Of course, I meant machine word width, not OS word width. And I use the term machine word width to mean register. Running a 32bit kernel, how do you process 64bit inode numbers in 32bit data registers? That would require a lot of code changes for a dying platform (ia32). Add the fact that i386 kernels have a maximum virtual address space of 16TB, which, not coincidentally, is the maximum 32bit XFS filesystem size. I think this last point is really the key to this issue, because if you were to add support to 32bit XFS for 9 exabyte filesystems, you'd only be able to mmap files up to the 16TB boundary. AFAIK, most I/O these days is done with mmap. If you have files or filesystems larger than your virtual memory space, you can't mmap anything beyond that address boundary. Is 32-bit dying or not? When I express an opinion that new installs should be 64-bit, someone takes me to task, and claim that 32-bit can do everything 32-bit can do. Yes, Stan. Making 32-bit Linux work with 64-bit inodes would require work. It would mean touching very many places in a fairly large codebase, and then a lot of testing would need to be done. Yes. I think it is worth doing, but, I am not a part of the XFS (or kernel) maintenance team(s), and I never will be. I am only a potential user. I guess my opinion is not worth much. I think I do have a problem sometimes when I post: I have a bit of a terminology gap with people like yourself. Please try not to hold me to a 100% literal interpretation. Certainly, correct my factual errors, as Ron Johnson did when I suggested the OP use tune2fs to cause an fsck to be performed on his XFS partition. So when I say something to the effect that it is a design error for some piece of code not to be able to handle what is essentially a data width problem, please understand that it is an opinion based partly on experience, partly on theory, and and partly on speculation. I don't pretend otherwise. I speculate. And I think, based on theory and speculation, that it is odd that no one has fixed what must surely be a problem for some users. Perhaps it isn't a trivial bug to fix. When the code was first designed, it was certainly a design decision. It was a decision *then*. But it is a *bug* now. Perhaps it isn't worth investing the effort to fix it. But it is certainly fixable. Whether you would use mmap for the first 16TB or not would just be another design decision. If you had a filesystem larger than that, obviously, you wouldn't be using mmap for a window larger than that. There would be potential wraparound bugs. Performance would probably be terrible. But it would allow someone to get the job done. MAA -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4bf8d657.2000...@allums.com
Re: How do I fsck and XFS file system in Squeeze
Mark Allums put forth on 5/21/2010 7:37 PM: 64-bit Knoppix is in the TODO list of Klaus Knopper, but for rescue purposes, 32-bit should be able to do the job. This is incorrect _if_ the filesystem is large and thus contains 64 bit inode numbers. If there is any remote possibility that 64 bit inodes exist on the XFS filesystem to be checked/repaired, the rescue kernel and xfsprogs need to be 64 bit binaries. -- Stan -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4bf78649.1020...@hardwarefreak.com
Re: How do I fsck and XFS file system in Squeeze
On Fri,21.May.10, 19:19:13, Mark Allums wrote: Does touch /forcefsck (as root) work? $ grep forcefsck /etc/init.d/* /etc/init.d/checkfs.sh: if [ -f /forcefsck ] || grep -s -w -i forcefsck /proc/cmdline /etc/init.d/checkfs.sh: rm -f /fastboot /forcefsck 2/dev/null /etc/init.d/checkroot.sh: if [ -f /forcefsck ] || grep -s -w -i forcefsck /proc/cmdline Both scripts don't seem generic enough to me. Fscking for XFS should work as long as you have the relevant tools installed. Regards, Andrei -- Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic signature.asc Description: Digital signature
Re: How do I fsck and XFS file system in Squeeze
On Sat,22.May.10, 10:53:43, Andrei Popescu wrote: Both scripts don't seem generic enough to me. Fscking for XFS should work as long as you have the relevant tools installed. Aaargh! s/don't// Regards, Andrei -- Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic signature.asc Description: Digital signature
Re: How do I fsck and XFS file system in Squeeze
On 5/22/2010 2:22 AM, Stan Hoeppner wrote: Mark Allums put forth on 5/21/2010 7:37 PM: 64-bit Knoppix is in the TODO list of Klaus Knopper, but for rescue purposes, 32-bit should be able to do the job. This is incorrect _if_ the filesystem is large and thus contains 64 bit inode numbers. If there is any remote possibility that 64 bit inodes exist on the XFS filesystem to be checked/repaired, the rescue kernel and xfsprogs need to be 64 bit binaries. That's a very odd thing. Thanks for correcting me. I would not have guessed that file system structure would be dependent on OS word width. I mean, that seems like a catastrophic implementation/design bug. MAA -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4bf885c9.90...@allums.com
Re: How do I fsck and XFS file system in Squeeze
On Sat, May 22, 2010 at 9:32 PM, Mark Allums m...@allums.com wrote: On 5/22/2010 2:22 AM, Stan Hoeppner wrote: Mark Allums put forth on 5/21/2010 7:37 PM: 64-bit Knoppix is in the TODO list of Klaus Knopper, but for rescue purposes, 32-bit should be able to do the job. This is incorrect _if_ the filesystem is large and thus contains 64 bit inode numbers. If there is any remote possibility that 64 bit inodes exist on the XFS filesystem to be checked/repaired, the rescue kernel and xfsprogs need to be 64 bit binaries. That's a very odd thing. Thanks for correcting me. I would not have guessed that file system structure would be dependent on OS word width. I mean, that seems like a catastrophic implementation/design bug. From the SGI site: Maximum Filesystem Size For Linux 2.4, 2 TB. For Linux 2.6 and beyond, when using 64 bit addressing in the block devices layer (CONFIG_LBD) and a 64 bit platform, filesystem size limit increases to 9 million terabytes (or the device limits). For these later kernels on 32 bit platforms, 16TB is the current limit even with 64 bit addressing enabled in the block layer. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktimfduwn0c6wopg22vgzchbcfserbtkpg6o4e...@mail.gmail.com
Re: How do I fsck and XFS file system in Squeeze
Mark Allums put forth on 5/22/2010 8:32 PM: On 5/22/2010 2:22 AM, Stan Hoeppner wrote: Mark Allums put forth on 5/21/2010 7:37 PM: 64-bit Knoppix is in the TODO list of Klaus Knopper, but for rescue purposes, 32-bit should be able to do the job. This is incorrect _if_ the filesystem is large and thus contains 64 bit inode numbers. If there is any remote possibility that 64 bit inodes exist on the XFS filesystem to be checked/repaired, the rescue kernel and xfsprogs need to be 64 bit binaries. That's a very odd thing. Thanks for correcting me. I would not have guessed that file system structure would be dependent on OS word width. I mean, that seems like a catastrophic implementation/design bug. It's not an instruction word width issue, but has more to do with the width of the data registers, and addressable virtual memory of 32bit platforms. Running a 32bit kernel, how do you process 64bit inode numbers in 32bit data registers? That would require a lot of code changes for a dying platform (ia32). Add the fact that i386 kernels have a maximum virtual address space of 16TB, which, not coincidentally, is the maximum 32bit XFS filesystem size. I think this last point is really the key to this issue, because if you were to add support to 32bit XFS for 9 exabyte filesystems, you'd only be able to mmap files up to the 16TB boundary. AFAIK, most I/O these days is done with mmap. If you have files or filesystems larger than your virtual memory space, you can't mmap anything beyond that address boundary. -- Stan -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4bf8bff8.8080...@hardwarefreak.com
Re: How do I fsck and XFS file system in Squeeze
lrhorer put forth on 5/20/2010 6:09 PM: OK, I'm stumped. I was having some problems which were likely related to the old kernel in Debian Lenny, so I upgraded to Squeeze in order to alleviate the issue, which it apparently has. Now, however, I need to fsck the main array on the box, which is formatted as XFS. The xfs-repair utility is not on the upgraded system. (I was forced to do a fresh install of the boot drive.) How can I obtain the XFS file utilities - particularly xfs-repair - under Squeeze? Unless you're seeing XFS errors in your logs or on the console you don't need to run xfs_check or xfs_repair. Typically these tools are only used when an XFS filesytem becomes damaged badly enough that it won't mount, or when XFS logs serious errors. For the most part XFS is self healing but for the most serious errors, which usually result from defective disk and/or controller hardware. XFS journal replay after power outages and kernel panics will either delete or zero files and directories that weren't fully written at the time of the crash, but the XFS filesystem itself will be fully intact. What is it that leads you to believe you need to perform a filesystem check or repair on your XFS filesystem? -- Stan -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4bf63d03.2060...@hardwarefreak.com
Re: How do I fsck and XFS file system in Squeeze
On 5/20/2010 9:49 PM, Ron Johnson wrote: On 05/20/2010 07:59 PM, Mark Allums wrote: [snip] If xfsprogs is installed, then I think fsck will do it, just first run something like: tune2fs -C912 /dev/sda3 Except that tune2fs is only for ext[234] filesystems. Really? Well, I expect XFS has a substitute. If not, it should. Does shutdown -rF now work? Does touch /forcefsck (as root) work? What works? MAA -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4bf72301.6000...@allums.com
Re: How do I fsck and XFS file system in Squeeze
On 5/20/2010 9:32 PM, Robert Brockway wrote: On Thu, 20 May 2010, Mark Allums wrote: If not, then a live CD will be needed, something like Knoppix, be sure it has XFS support. Just boot the live CD or DVD, and Bob's your uncle. I was going to suggest a live cdrom too but remember that Debian has its own live cdroms. I've been using them in preference to Knoppix for rescuing Debian systems due to binary compatibility problems. I've got as lot of AMD64 Debian systems and Knoppix is i386 only. The current Knoppix is alleged to be 100% binary compatible, beyond some kernel modules which are specific to the running kernel (which is always the case, even with official Debian). 64-bit Knoppix is in the TODO list of Klaus Knopper, but for rescue purposes, 32-bit should be able to do the job. I agree that Debian itself would be best, that's why I asked about the installer, in rescue mode (found on disc 1 one of a standard Debian CD or DVD). Does disc 1 of a distribution set fully support XFS? MAA -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4bf7272d.90...@allums.com
How do I fsck and XFS file system in Squeeze
OK, I'm stumped. I was having some problems which were likely related to the old kernel in Debian Lenny, so I upgraded to Squeeze in order to alleviate the issue, which it apparently has. Now, however, I need to fsck the main array on the box, which is formatted as XFS. The xfs-repair utility is not on the upgraded system. (I was forced to do a fresh install of the boot drive.) How can I obtain the XFS file utilities - particularly xfs-repair - under Squeeze? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/flsdnvftgaepxgjwnz2dnuvz_ogdn...@giganews.com
Re: How do I fsck and XFS file system in Squeeze
It looks like the tool is called xfs_repair, and is part of the xfsprogs package. http://packages.debian.org/search?searchon=contentskeywords=xfs_repairmode=exactfilenamesuite=testingarch=any Cheers, Tyler lrhorer lrho...@satx.rr.com wrote: OK, I'm stumped. I was having some problems which were likely related to the old kernel in Debian Lenny, so I upgraded to Squeeze in order to alleviate the issue, which it apparently has. Now, however, I need to fsck the main array on the box, which is formatted as XFS. The xfs-repair utility is not on the upgraded system. (I was forced to do a fresh install of the boot drive.) How can I obtain the XFS file utilities - particularly xfs-repair - under Squeeze? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/flsdnvftgaepxgjwnz2dnuvz_ogdn...@giganews.com -- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100520233208.gi8...@yi.org
Re: How do I fsck and XFS file system in Squeeze
On 5/20/2010 6:09 PM, lrhorer wrote: OK, I'm stumped. I was having some problems which were likely related to the old kernel in Debian Lenny, so I upgraded to Squeeze in order to alleviate the issue, which it apparently has. Now, however, I need to fsck the main array on the box, which is formatted as XFS. The xfs-repair utility is not on the upgraded system. (I was forced to do a fresh install of the boot drive.) How can I obtain the XFS file utilities - particularly xfs-repair - under Squeeze? If xfsprogs is installed, then I think fsck will do it, just first run something like: tune2fs -C912 /dev/sda3 and reboot, where C is the Capital 'C', 912 is some number larger than the current maximum mount count (before automatically fsck'ing) and substitute your actual device path for the /dev/sda3 I used as an example. I think xfsprogs has some other tools as well. Oh wait, I reread your question. If the machine is in working order, you can just do: #apt-get install xfsprogs If not, then a live CD will be needed, something like Knoppix, be sure it has XFS support. Just boot the live CD or DVD, and Bob's your uncle. I'm unsure, does the Debian squeeze installer fully support XFS? MAA -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4bf5dae7.9060...@allums.com
Re: How do I fsck and XFS file system in Squeeze
Thanks! It looks like the tool is called xfs_repair, and is part of the xfsprogs package. http://packages.debian.org/search?searchon=contentskeywords=xfs_repairmode=exactfilenamesuite=testingarch=any Cheers, Tyler lrhorer lrho...@satx.rr.com wrote: OK, I'm stumped. I was having some problems which were likely related to the old kernel in Debian Lenny, so I upgraded to Squeeze in order to alleviate the issue, which it apparently has. Now, however, I need to fsck the main array on the box, which is formatted as XFS. The xfs-repair utility is not on the upgraded system. (I was forced to do a fresh install of the boot drive.) How can I obtain the XFS file utilities - particularly xfs-repair - under Squeeze? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/flsdnvftgaepxgjwnz2dnuvz_ogdn...@giganews.com -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/flsdnvbtgacyrmjwnz2dnuvz_oeaa...@giganews.com
Re: How do I fsck and XFS file system in Squeeze
On 05/20/2010 07:59 PM, Mark Allums wrote: [snip] If xfsprogs is installed, then I think fsck will do it, just first run something like: tune2fs -C912 /dev/sda3 Except that tune2fs is only for ext[234] filesystems. -- Dissent is patriotic, remember? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4bf5f4ca.50...@cox.net
Re: How do I fsck and XFS file system in Squeeze
On Thu, 20 May 2010, Mark Allums wrote: If not, then a live CD will be needed, something like Knoppix, be sure it has XFS support. Just boot the live CD or DVD, and Bob's your uncle. I was going to suggest a live cdrom too but remember that Debian has its own live cdroms. I've been using them in preference to Knoppix for rescuing Debian systems due to binary compatibility problems. I've got as lot of AMD64 Debian systems and Knoppix is i386 only. Cheers, Rob -- Email: rob...@timetraveller.org Linux counter ID #16440 IRC: Solver (OFTC Freenode) Web: http://www.practicalsysadmin.com Open Source: The revolution that silently changed the world -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/alpine.deb.1.10.1005202227270.7...@castor.opentrend.net