- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Defragmenting file system on HP-UX
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2004 07:52 PM
04-06-2004 07:52 PM
Defragmenting file system on HP-UX
I want to defrag /var filesystem online on a HP machine running B.10.20.
Are there any chances of data loss.
Thanks & Regards,
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2004 07:56 PM
04-06-2004 07:56 PM
Re: Defragmenting file system on HP-UX
kiddin ....
I do not in HPUX but in AIX there is a command called defragfs .. Check for something similier in HPUX. Also logically it would not work if u do not have Online JFS
Regds,
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2004 07:58 PM
04-06-2004 07:58 PM
Re: Defragmenting file system on HP-UX
There is a chance of data loss but, to be honest I have never seen it happen. If you are at all nervous about this, take a backup first.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2004 08:00 PM
04-06-2004 08:00 PM
Re: Defragmenting file system on HP-UX
If u have HFS it is an optimised defragmentation.
Hope this url will help you
HFS :
http://aa11.cjb.net/hpux_admin/1997/0008.html
Online jFS :
http://unix.derkeiler.com/Mailing-Lists/HP-UX-Admin/2003-10/0029.html
regards
suresh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2004 08:09 PM
04-06-2004 08:09 PM
Re: Defragmenting file system on HP-UX
the extent fragmentation and directory fragmentation are specified by the -e and -d options of the fsadm command.
I would really recommend to take a ignite image backup before you do something on this system file system,.
First run -E & -E options to just view the report of fragmentation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2004 08:15 PM
04-06-2004 08:15 PM
Re: Defragmenting file system on HP-UX
Defragmenting of file system on HP_UX is definitely avaliable if the file system type is
vxfs or JFS. U can use following command
# fsadm -F vxfs -e -v /var
Also look for fsadm_vxfs man pages.
- Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2004 08:18 PM
04-06-2004 08:18 PM
Re: Defragmenting file system on HP-UX
Thanks for all who replied.
Can u pls tell me if my /var file system requires defragmentation, I am pasting the output of "fsadm -F vxfs -D -E /var" command. cna can any one briefly explain the output.
# fsadm -F vxfs -D -E /var
Directory Fragmentation Report
Dirs Total Immed Immeds Dirs to Blocks to
Searched Blocks Dirs to Add Reduce Reduce
total 2830 1110 1956 51 55 104
Extent Fragmentation Report
Total Average Average Total
Files File Blks # Extents Free Blks
16150 31 1 42085
blocks used for indirects: 326
% Free blocks in extents smaller than 64 blks: 47.79
% Free blocks in extents smaller than 8 blks: 34.40
% blks allocated to extents 64 blks or larger: 75.81
Free Extents By Size
1: 635 2: 477 4: 404 8: 78
16: 17 32: 11 64: 8 128: 6
256: 6 512: 2 1024: 1 2048: 0
4096: 0 8192: 0 16384: 0 32768: 1
Thanks & Regards,
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2004 11:02 PM
04-06-2004 11:02 PM
Re: Defragmenting file system on HP-UX
man 1m fsadm_vxfs has a section that explains most of fields and values.
In most cases, a smaller number is better.
Important fields to look at are:
Immeds to Add
Dirs to Reduce
Blocks to Reduce
Avg # Extents
%Free in smaller than 64 blocks
%Free in smaller than 8 blocks
I schedule a defrag for all vxfs file systems monthly. To give you an example of what my /var looks like:
Directory Fragmentation Report
Dirs Total Immed Immeds Dirs to Blocks to
Searched Blocks Dirs to Add Reduce Reduce
10052 725 9469 1 8
27
Extent Fragmentation Report
Total Average Average Total
Files File Blks # Extents Free Blks
19342 31 1 1474780
blocks used for indirects: 24
% Free blocks in extents smaller than 64 blks: 2.29
% Free blocks in extents smaller than 8 blks: 0.16
% blks allocated to extents 64 blks or larger: 82.06
HP suggests "%Free blocks in extents smaller than 64 blocks" be less than 50%, your # is approaching that. In most cases you're not going to run a defrag and say "Wow, what an improvement." But even small improvements over time can help out the big picture. Although a defrag can be run at any time, there will be a performance hit while it is happening so keep that in mind if users are accessing the system. I just schedule mine off hours.
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2004 12:30 AM
04-07-2004 12:30 AM
Re: Defragmenting file system on HP-UX
du -kx /var | sort -rn | more
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2004 06:30 PM
04-07-2004 06:30 PM