- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- VxFS defragmentation
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
09-09-2004 03:34 AM
09-09-2004 03:34 AM
I am running 11.11 on a L1000 machine which has 2 disks, 1 for operating system and supporting software, the other for application development etc.
The OS disk hardly changes, but the AppDev disk has 100's of updates/creates/deletes per week. I have not bothered with trying to tune this disk's performance as yet, and have to admit to being new to this area of HP-UX Sys Adm.
So, I was hoping that the kind people who frequent this forum would provide me with an explicit recipe to defragmenting (if necessary) this disk, and give any other tuning tips as you deem fit. I hope I have supplied enough detail, if not let me know and I shal try to answer any questions as necessary.
The research I have done so far seems to indicate that I need to use Veritas software (fsadm_vxfs, etc), and this is what I find under swlist
"Base VERITAS Volume Manager 3.2 for HP-UX"
Is this the software being referred to?
Thanks in advance for your detailed responses... assume I know very little on this subject.
Regards
Kevin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 03:41 AM
09-09-2004 03:41 AM
Re: VxFS defragmentation
I routinely (via cron) defrag all my file systems using the following little script:
for i in `bdf -l |grep -v Filesystem |awk '{ print $6 }'`
do
if [ $i != "/stand" ]; then
echo "Re-Org'ing " $i
fsadm -F vxfs -d -D -e -E $i
fi
done
I can't say that it makes a huge difference but it certainly doesn't seem to hurt.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 03:42 AM
09-09-2004 03:42 AM
Re: VxFS defragmentation
The defragmentation can be done with fsadm -d ad -e options. read the man pages of vxfs_fsadm. If you do not have OnlineJFS(swlist -l product OnlineJFS), you will have to unmount the FS and do the defragmentation work. But to work it, you should have some free space on the FS.
A better defragmentation would be doing a full cold backup and restore.
Stop all applications accessing the FS.
Back it up.
newfs on the FS and restore.
Start the application.
Also you may want to look at your buffer cache setting.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 03:43 AM
09-09-2004 03:43 AM
Re: VxFS defragmentation
You need to purchase and install a product called "Online JFS".
Online JFS allows you to
1) Dynamically reduce/extend the filesystem
2) defragment the filesystems online
3) Create a snapshot of the filesystem
Which OE did you install ? - If you have installed Mission Critical/Enterprise OE, you might already have Online JFS.
# swlist -l file OnlineJFS
IF yes then you can
# fsadm -F vxfs -D -E -d -e /
The above command will defragment the filesystem for you.
-- Sundar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 03:45 AM
09-09-2004 03:45 AM
Re: VxFS defragmentation
{root} /> fsadm -F vxfs -d -D -e -E /apps2
fsadm: You don't have a license to run this program
{root} />
I am guessing this means installing something... any tips before I start digging?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 03:49 AM
09-09-2004 03:49 AM
Re: VxFS defragmentation
In general, don't expect big gains from running this. Vxfs handles fragmentation well and in the UNIX world many, many file changes per second is the norm. Any filesystem that could handle that would simply never make it to prime time. There are a few corner cases where defragging noticeably helps but most of the times any gains are difficult to measure and extremely difficult to perceive.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 03:50 AM
09-09-2004 03:50 AM
Re: VxFS defragmentation
Yes - I missed that you only had the Base version. In order to run de-frag at all, you need to purchase and install the Online version:
http://www.software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B3929CA
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 03:53 AM
09-09-2004 03:53 AM
Re: VxFS defragmentation
# Initializing...
# Contacting target "hp2"...
ERROR: Software "OnlineJFS" was not found on host "hp2:/".
{root} />
Is there any other way to do the defrag without using fsadm/Veritas.
Perhaps a little more background might help. We use the L1000 machine for porting work only. The software we develop is generated from a Model-Based development tool, and we generate the code for Win/Oracle, Win/MS-Sql, Unix/Oracle and MVS/DB2, all of which are automatically compiled and linked as part of our development process. So we seldon log on to the L1000, except for testing our software, most of which happens on the Win/Oracle platform... Recently, we have noticed that the compiles and links of our Unix/Oracle code is taking longer than it used to, and I figured that it is probably down to the HD needing some TLC, hence my posting...
We have a Dev Partner relationship with HP since our software is certified to run on HP h/w, and as such, could possibly get Veritas, but at present it does not seem that we have it.
Anyone who is interested (curious) in our software can look at our website (www.iet.co.uk)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 03:55 AM
09-09-2004 03:55 AM
Re: VxFS defragmentation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 03:59 AM
09-09-2004 03:59 AM
Re: VxFS defragmentation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 04:02 AM
09-09-2004 04:02 AM
Re: VxFS defragmentation
Doesn't look like you have OnlineJFS license on the box to do the defrag of the filesystem. You need to have onlineJFS on the system. OnlineJFS is a $$ product and is sold seperately.
Hope this helps.
regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 04:08 AM
09-09-2004 04:08 AM
Re: VxFS defragmentation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 04:12 AM
09-09-2004 04:12 AM
Re: VxFS defragmentation
I can pretty much guarantee that Online JFS is on the CDs, but you'll need a codeword to unlock and install it.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 04:19 AM
09-09-2004 04:19 AM
Re: VxFS defragmentation
Here is the output so far, does this look badly fragmented, how long should it take to run?
{root} /homeroot> swlist -l product OnlineJFS
# Initializing...
# Contacting target "hp2"...
#
# Target: hp2:/
#
OnlineJFS B.11.11 Online features of the VxFS File System
{root} /homeroot> fsadm -F vxfs -d -D -e -E /apps2
Directory Fragmentation Report
Dirs Total Immed Immeds Dirs to Blocks to
Searched Blocks Dirs to Add Reduce Reduce
total 3863 2281 2895 28 46 66
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 04:27 AM
09-09-2004 04:27 AM
Re: VxFS defragmentation
:-).
It depends on the size of the filesystem, how fragmented it is, the amount of activity in the system etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 04:28 AM
09-09-2004 04:28 AM
SolutionI run the following weekly on my servers:
cat /usr/local/bin/fsadm.defrag
#!/bin/sh
# defrag all mounted file systems
LOG=/tmp/fsadm.defrag.log
if [ -f $LOG ]
then
mv $LOG $LOG.old
fi
cat /dev/null > $LOG
for i in `mount -l | grep -v stand |awk '{print $1}'`
do
echo "defraging " $i >> $LOG
fsadm -F vxfs -d -D -e -E $i >> $LOG
done
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 04:29 AM
09-09-2004 04:29 AM
Re: VxFS defragmentation
/dev/vg01/lvol1 9072640 7593111 1387626 85% /apps2
and this is the only *active* process on the machine, no users logged on...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 04:30 AM
09-09-2004 04:30 AM
Re: VxFS defragmentation
It's probably too early to tell. A look at the man page tells us "If the totals in the columns labeled "Dirs to Reduce" are substantial, a directory reorganization can improve performance of pathname resolution."
The examples show "Dirs to Reduce" in the 2500 to 3000 range, far above your 46. This may run for a long time but I don't think you're going to see any substantial improvement.
You might want to start looking at other performance metrics of this machine to see what is slowing it down.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 04:32 AM
09-09-2004 04:32 AM
Re: VxFS defragmentation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 04:37 AM
09-09-2004 04:37 AM
Re: VxFS defragmentation
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 08:27 PM
09-09-2004 08:27 PM
Re: VxFS defragmentation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2004 10:17 PM
09-09-2004 10:17 PM
Re: VxFS defragmentation
From your output, it looks like it was a rousing success! Since the intent is to gather all the free space into the biggest blocks possible, and your report shows:
Extent Fragmentation Report
Total Average Average Total
Files File Blks # Extents Free Blks
64621 117 1 1481069
That's telling me that you've got 1 free extent of 1481069 blocks, which is the ideal outcome.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2004 01:49 AM
09-10-2004 01:49 AM