- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Disk Fragmentation without JFS
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
Forums
Discussions
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
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
10-11-2002 12:10 PM
10-11-2002 12:10 PM
This system has been online for nearly 4 years. It has 11.0 on it. It is really in need of a defrag.
If it would not take too much time, how would someone defrage a volume without using fsadm?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 12:15 PM
10-11-2002 12:15 PM
Re: Disk Fragmentation without JFS
Assuming that you really need to defragment it, in the absence of Online JFS, you would need to backup the filesystem; 'newfs' it to create a new, empty filesystem; and reload it from backup.
I'm not at all sure that this would provide you any benefit at all -- at least one that you could measure.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 12:21 PM
10-11-2002 12:21 PM
Re: Disk Fragmentation without JFS
You can with HFS but not vxfs.
http://aa11.cjb.net/hpux_admin/1997/0122.html
HTH
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 12:22 PM
10-11-2002 12:22 PM
Re: Disk Fragmentation without JFS
I was going to suggest what James replied with but didn't think it would be worth it. Unless you have the downtime available
Is your system performance decreasing due to disk bottleneck ?
HTH
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 12:25 PM
10-11-2002 12:25 PM
Solution# fsadm ???F vxfs ???E /
This gives a quick report on your "extent fragmentation". Replace "-E" with "-D"
to get report on "directory fragmnetation". Post the result here and we'll see if you need one. You do not need OnlineJFS to use fsadm to report fragmentation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 12:25 PM
10-11-2002 12:25 PM
Re: Disk Fragmentation without JFS
The bottleneck is a feasible problem, but I am certian it is not the network access.
I imagined I would probobly need to pull the disks down.
If I have to, could you all tell me a safe procedure to do so an recreate the volume?
Thanks,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 12:31 PM
10-11-2002 12:31 PM
Re: Disk Fragmentation without JFS
vxfs fsadm: cannot open /tmp/lost+found/.fsadm - errno 2
any ideas?
thanks,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 12:33 PM
10-11-2002 12:33 PM
Re: Disk Fragmentation without JFS
Which logical volume are you thinking about ?
one in vg00 or elsewhere ? Is it just a data area or does it hold a database ? Depending on the area will depend on the method used to wipe the area and restore the data
HTH
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 12:34 PM
10-11-2002 12:34 PM
Re: Disk Fragmentation without JFS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 12:35 PM
10-11-2002 12:35 PM
Re: Disk Fragmentation without JFS
errno 2 is missing file or directory . S K does fsadm reference lost + found area ?
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 12:39 PM
10-11-2002 12:39 PM
Re: Disk Fragmentation without JFS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 12:39 PM
10-11-2002 12:39 PM
Re: Disk Fragmentation without JFS
You mention newtork access. Is there a delay when you are logging onto the server ?
This can be caused by hostname resolution. Are you resolving locally or to dns ?
Check your /etc/nsswitch.conf file
It is quickest to resolve to your hosts file initially
hosts : files [NOTFOUND=continue] dns
HTH
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 12:40 PM
10-11-2002 12:40 PM
Re: Disk Fragmentation without JFS
/tmp is located on lvol4 vg00
/opt is located on lvol6 vg00
Does this help?
Thanks,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 12:44 PM
10-11-2002 12:44 PM
Re: Disk Fragmentation without JFS
Is this a permissions issue?
Thanks,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 12:45 PM
10-11-2002 12:45 PM
Re: Disk Fragmentation without JFS
Are you the root user when running the fsadm command?
If so then you MUST have the lost+found dir on the mount point. If it's not there create it
mkdir /tmp/lost+found
should look like
drwxr-xr-x 2 root sys 96 Oct 11 15:45 lost+found
Set ownership & perms if necessary
Then just run
touch /tmp/lost+found/.fsadm
And it should look like
-rw------- 1 root sys 0 Oct 11 15:45 .fsadm
Then your fsadm command should run.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 12:48 PM
10-11-2002 12:48 PM
Re: Disk Fragmentation without JFS
What's this error?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 12:52 PM
10-11-2002 12:52 PM
Re: Disk Fragmentation without JFS
# cd /tmp
# mklost+found
Then re-run the fsadm again. Don't use the regular mkdir command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 12:52 PM
10-11-2002 12:52 PM
Re: Disk Fragmentation without JFS
Use mkdir to create the directory if it's not there
mkdir /tmp/lost+found
Then you can try the fsadm command. If it still fails then use touch to create the .fsadm file
touch /tmp/lost+found/.fsadm
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 12:55 PM
10-11-2002 12:55 PM
Re: Disk Fragmentation without JFS
for errno errors run this script and pass the number through it
#!/bin/sh
if [ $# -ne 1 ]
then
echo "Usage: $0 number" >&2
exit 1
fi
awk '/define/ { if ($3 == '"$1"' || $4 == '"$1"') print }' /usr/include/sys/errno.h
HTH
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 12:55 PM
10-11-2002 12:55 PM
Re: Disk Fragmentation without JFS
Thanks,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 12:56 PM
10-11-2002 12:56 PM
Re: Disk Fragmentation without JFS
Wish I could go home now ;~)
Was totally unaware of that command.
Sorry Thomas - S.K. is entirely correct.
The lost+found is normally created by mkfs or newfs commands. Someone must have removed it at some point.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 01:01 PM
10-11-2002 01:01 PM
Re: Disk Fragmentation without JFS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 01:02 PM
10-11-2002 01:02 PM
Re: Disk Fragmentation without JFS
Without jfs
for /tmp
backup the area
fbackup -v -f /dev/rmt/0m -i /tmp
shutdown -y 0
umount /tmp
newfs -F vxfs /dev/vg00/lvol?
mount /dev/vg00/lvol?
frecover -xvof /dev/rmt/0m /tmp
suggestions for /opt S K
ignite ?
I'm learning here
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 01:04 PM
10-11-2002 01:04 PM
Re: Disk Fragmentation without JFS
mount /dev/vg00/lvol6 /tmp
You probably know that
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 01:09 PM
10-11-2002 01:09 PM
Re: Disk Fragmentation without JFS
You're wasting your time, in my option. '/tmp' should be disposable upon a reboot, so why defragment anything it it(?).
'/opt' should'nt be that volatile except for logs from things like Measureware.
If you want to unmount filesytems like '/opt', '/var' and '/tmp' you will find that the easiest way is to boot into single user mode rather than trying to kill processes holding files in them open.
Since you don't have Online JFS you can't defragment anything "online".
Regards!
...JRF...