Ming Zhang | 1 Sep 01:42 2005
Picon

RE: how to defragment xfs?

On Wed, 2005-08-31 at 18:38 -0400, Allan Haywood wrote:
> thanks!
> 
> 
> how to defragment the whole FS?
> 
> 
> this is only to check fragment right?
> 
> ----------------------
> 
> Correct, it only checks, it doesn't make any changes to fragmentation at
> all.
> 

ic. so check if need to do before actually to do it.

i guess this is what u mean.

ming

> 
> > ----------------------------
> > 
> > You can use the following command to check fragmentation:
> > 
> > xfs_db -c frag -r /dev/md0
> > 
> > replace /dev/md0 with the name of the device you want to check.
> > 
(Continue reading)

Ming Zhang | 1 Sep 01:43 2005
Picon

RE: how to defragment xfs?

my problem is i do not have this command at all in my FC box. I will
compile one from source. thx

ming

On Wed, 2005-08-31 at 18:48 -0400, Allan Haywood wrote:
> On Thu, 2005-09-01 at 08:36 +1000, Nathan Scott wrote:
> > On Wed, Aug 31, 2005 at 06:02:18PM -0400, Ming Zhang wrote:
> > > Thanks all!
> > > 
> > > My fault. I remember there is a command for xfs or reiserfs to do
> this
> > > and i can not figure out the name. then i check xfs_* on my box and
> none
> > > of them doing this job. so i assumed it is for reiserfs.
> > > 
> > > it is quite weired that my FC box does not have this command in
> > > xfsprogs.
> > 
> > Its in the "xfsdump" package, not "xfsprogs".
> > 
> > cheers.
> > 
> 
> [root <at> amd64 mingz]# yum install xfsdump
> Setting up Install Process
> Setting up Repos
> base                      100% |=========================| 1.1 kB
> 00:00
> updates-released          100% |=========================|  951 B
(Continue reading)

Toralf Lund | 1 Sep 09:43 2005

Directory versions (again)...

I still have some IRIX xfs disks that I'd like to move to a Linux box. 
Now, the FAQ sais

> Make sure that the directory format is version 2 on the IRIX filesystems
(this is the default since IRIX 6.5.5).
Linux can only read v2 directories.

So unless this has changed recently, I need to make sure the fs has version 2 directories. The question is,
how do I check the version of a given volume? I know I've done this a number of times in the past, but I always
seem to forget how I did it, and finding info on this in the manual pages is not very easy. Can someone please
remind me? (Suggestion: Add a line to the above mentioned FAQ entry starting with "To return the directory
version of an existing filesystem, execute the command")

- Toralf

James Braid | 1 Sep 12:38 2005

Re: Directory versions (again)...

Toralf Lund wrote:
> I still have some IRIX xfs disks that I'd like to move to a Linux box.
> Now, the FAQ sais
> 
>> Make sure that the directory format is version 2 on the IRIX filesystems
> 
> (this is the default since IRIX 6.5.5).
> Linux can only read v2 directories.
> 
> So unless this has changed recently, I need to make sure the fs has
> version 2 directories. The question is, how do I check the version of a
> given volume? I know I've done this a number of times in the past, but I
> always seem to forget how I did it, and finding info on this in the
> manual pages is not very easy. Can someone please remind me?

on IRIX, 'xfs_growfs -n /filesystem' should do the trick

Darren Miller | 1 Sep 12:56 2005
Picon

xfs_repair

2.6.36 aborts during phase6, 2.5.6 doesn't compile at all, but the source
from CVS aborts during phase 2 on a bad INODE reallocation.

Any news when a working version of xfs_repair will be available to cope
with problem filesystems?

==============================================================================

Darren Miller
Principal Systems Support Engineer
Microsoft Certified Professional
SCO Advanced Certified Engineer
Information Systems Department (Core Server Support)
Philips Semiconductors, Milbrook Industrial Estate, Southampton, SO15 0DJ,
England
Direct Dial In: +44 (0) 2380 312681

Eric Sandeen | 1 Sep 14:52 2005
Picon

Re: xfs_repair

Darren Miller wrote:
> 2.6.36 aborts during phase6, 2.5.6 doesn't compile at all, but the source
> from CVS aborts during phase 2 on a bad INODE reallocation.
> 
> Any news when a working version of xfs_repair will be available to cope
> with problem filesystems?

Please file a bug at http://oss.sgi.com/bugzilla/ with as much info as 
possible on the CVS problem.

Thanks,

-Eric

Toralf Lund | 1 Sep 15:05 2005

Re: Directory versions (again)...

James Braid wrote:

>Toralf Lund wrote:
>  
>
>>I still have some IRIX xfs disks that I'd like to move to a Linux box.
>>Now, the FAQ sais
>>
>>    
>>
>>>Make sure that the directory format is version 2 on the IRIX filesystems
>>>      
>>>
>>(this is the default since IRIX 6.5.5).
>>Linux can only read v2 directories.
>>
>>So unless this has changed recently, I need to make sure the fs has
>>version 2 directories. The question is, how do I check the version of a
>>given volume? I know I've done this a number of times in the past, but I
>>always seem to forget how I did it, and finding info on this in the
>>manual pages is not very easy. Can someone please remind me?
>>    
>>
>
>on IRIX, 'xfs_growfs -n /filesystem' should do the trickOK
>  
>
Right. It's the "naming =" value, isn't it?

I actually tried the command earlier, but never realised that the info 
(Continue reading)

James Braid | 1 Sep 15:22 2005

Re: Directory versions (again)...

Toralf Lund wrote:
> James Braid wrote:
>> Toralf Lund wrote:
>>> So unless this has changed recently, I need to make sure the fs has
>>> version 2 directories. The question is, how do I check the version of a
>>> given volume? I know I've done this a number of times in the past, but I
>>> always seem to forget how I did it, and finding info on this in the
>>> manual pages is not very easy. Can someone please remind me?
>>>   
>>
>>
>> on IRIX, 'xfs_growfs -n /filesystem' should do the trickOK
>>  
>>
> Right. It's the "naming =" value, isn't it?

yep, thats right.. you can have version 2 logs as well, but thats a
linux-only think afaik.

A JM | 2 Sep 03:13 2005
Picon

Re: [OT] Re: XFS - hard drive dying

Christian,

I've managed to get an image file of the drive that was dying using 
dd_rescue and have tried to run xfs_repair -f /dev/hdb1 with the following 
results, does it mean anything to you? I'm still having a difficult time 
with this thing but have made some progress.

Thanks for any light you can shed.
AJM,

.....found candidate secondary superblock...
superblock read failed, offset 209002168320, size 2048, ag 0, rval 22

fatal error -- Success

[[HTML alternate version deleted]]

Tim Shimmin | 2 Sep 03:11 2005
Picon

Re: Directory versions (again)...

On Fri, Sep 02, 2005 at 01:22:01AM +1200, James Braid wrote:
> Toralf Lund wrote:
> > James Braid wrote:
> >> Toralf Lund wrote:
> >>> So unless this has changed recently, I need to make sure the fs has
> >>> version 2 directories. The question is, how do I check the version of a
> >>> given volume? I know I've done this a number of times in the past, but I
> >>> always seem to forget how I did it, and finding info on this in the
> >>> manual pages is not very easy. Can someone please remind me?
> >>>   
> >>
> >>
> >> on IRIX, 'xfs_growfs -n /filesystem' should do the trickOK
> >>  
> >>
> > Right. It's the "naming =" value, isn't it?
> 
> yep, thats right.. 
>
> you can have version 2 logs as well, but thats a linux-only think afaik.
> 
FYI, v2 logs have been in IRIX since IRIX 6.5.26 (were in Linux for
a while before then).

--Tim


Gmane