- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- defrag in HPUX
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
Discussions
Discussions
Forums
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
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
тАО07-11-2008 08:05 AM
тАО07-11-2008 08:05 AM
defrag in HPUX
Is there any tool/ utility for defragmentating a filesystem in HPUX. If there let me know the packages required and syntax.
Thanks,
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2008 08:12 AM
тАО07-11-2008 08:12 AM
Re: defrag in HPUX
fsadm -e /mount/point
fsadm -d /mount/point
With basics: Copy all data to new filesystem
With app/database: Run the utilities that come with the app/db or export and reimport.
These answers all depend on the type of content in your filesystem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2008 08:54 AM
тАО07-11-2008 08:54 AM
Re: defrag in HPUX
fsadm -F vxfs -e
fsadm -F vxfs -d
Option -e reorganizes extents (=defragmentation), option -d reorganizes directory structures. Both can be done without unmounting the filesystem.
Requires OnlineJFS (which is a must for any serious use of HP-UX anyway).
Usually vxfs resists fragmentation quite well on its own, but if you have very active filesystems (for example, applications creating and deleting several thousands of files per day, every day), defragmentation may be useful.
If you don't have OnlineJFS, the simplest way to defragment a filesystem:
1.) Take a full backup of the filesystem.
2.) Verify that the backup is good.
3.) Re-initialize the filesystem with newfs or mkfs.
4.) Restore from backup.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2008 09:44 AM
тАО07-11-2008 09:44 AM
Re: defrag in HPUX
You'll find this info in man fsadm_vxfs
fsadm -D -> report on directory fragmentation
fsamd -d -> directory defrag
fsadm -E -> report on extend fragmentation
fsadm -e -> extend defrag
You'll need onlineJFS.
Or
If you can have an outage take the easy route
backup /home to another file system
remove the logical volume
create new logical volume of appropiate size
copy backup to new /home
new volume will be totally defragmented and the data contigous.
even JFS has been know to fail on an lvreduce so make sure you have a backup whatever route you take.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2008 05:33 PM
тАО07-11-2008 05:33 PM
Re: defrag in HPUX
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2008 05:37 AM
тАО07-14-2008 05:37 AM