Re: any ideas to fix filesystem /var ? - "defrags?"
From: Chafik,Basim (Basim.Chafik_at_PLX.COM)
Date: 07/23/04
- Previous message: Robert Miller: "Re: any ideas to fix filesystem /var ? - "defrags?""
- Maybe in reply to: Leyden, Joseph: "Re: any ideas to fix filesystem /var ? - "defrags?""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 23 Jul 2004 11:15:23 -0700 To: aix-l@Princeton.EDU
File systems difragmentation
The command "defragfs" is used to Increases a file system's contiguous free
space.
defragfs [ -q | -r ] { Device | FileSystem }
The defragfs command increases a file system's contiguous free space by
reorganizing allocations to be contiguous rather than scattered across the
disk.
You can specify the file system to be defragmented with the Device variable,
the
path name of the logical volume (for example, /dev/hd4). You can also
specify it
with the FileSystem variable, which is the mount point in the
/etc/filesystems
file.
The defragfs command is intended for fragmented and compressed file systems.
However, you can use the defragfs command to increase contiguous free space
in
nonfragmented file systems.
You must mount the file system read-write for this command to run
successfully.
Using the -q flag or the -r flag generates a fragmentation report. These
flags
do not alter the file system.
Flags
-q Reports the current state of the file system.
-r Reports the current state of the file system and the state that would
result
if the defragfs command is run without either -q or -r flag.
-----Original Message-----
From: Robert Miller [mailto:rmiller@SMUD.ORG]
Sent: Friday, July 23, 2004 1:56 PM
To: aix-l@Princeton.EDU
Subject: Re: any ideas to fix filesystem /var ? - "defrags?"
I'm pretty sure that defragfs is in the basic AIX install. You just run
'defragfs /yourfs', and it'll defrag the FS for you. You can run it while
the box is up, though it will probably place a non-negligible load on the
disk.
Not sure I see how that helps, unless as Simon has stated, since /var is
pretty busy, those are spurious errors due to the fact that the filesystem
was being written to when fsck was run, and you're thinking the FS is just
fragmented...
All defragfs does is compact the data and free up contiguous space on the
disk.
--rm
-----Original Message-----
From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU]On Behalf Of
Leyden, Joseph
Sent: Friday, July 23, 2004 10:35 AM
To: aix-l@Princeton.EDU
Subject: Re: any ideas to fix filesystem /var ? - "defrags?"
has anyone used "defrags" ?
where can I get this.
Will it help?
Joe
-----Original Message-----
From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU]On Behalf Of
Chafik,Basim
Sent: Friday, July 23, 2004 8:43 AM
To: aix-l@Princeton.EDU
Subject: Re: any ideas to fix filesystem /var ?
Boot off CD. Go to maintenance mode. Access rootvg without mount file system
and then run fsck
Basim Chafik
Senior Systems Analyst
IBM Certified Advanced Technical Expert (CATE)
1.800.688.4895
basim.chafik@plx.com
plexus (Division of BancTec)
-----Original Message-----
From: Leyden, Joseph [mailto:LeydenJ@METRO.NET]
Sent: Friday, July 23, 2004 11:24 AM
To: aix-l@Princeton.EDU
Subject: any ideas to fix filesystem /var ?
I get this:
----------------------------------------------------------------------------
------------
$ fsck -p /dev/hd9var
/dev/hd9var (/var): Bad Inode Map (NOT SALVAGED)
/dev/hd9var (/var): Bad Block Map (NOT SALVAGED)
/dev/hd9var (/var): Filesystem integrity is not guaranteed
/dev/hd9var (/var): 458 files 20485 blocks 241659 free
----------------------------------------------------------------------------
-------------
any ideas in resolving it? TIA
- Previous message: Robert Miller: "Re: any ideas to fix filesystem /var ? - "defrags?""
- Maybe in reply to: Leyden, Joseph: "Re: any ideas to fix filesystem /var ? - "defrags?""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]