- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- fsadm to decrease the filesystem size fails with e...
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
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
12-10-2000 08:46 PM
12-10-2000 08:46 PM
fsadm to decrease the filesystem size fails with error...
# bdf /var
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol8 462848 94095 346975 21% /var
# fsadm -F vxfs -b 350000 /var
fsadm: cannot shrink /dev/vg00/rlvol8 - upgraded fs - inodes are currently in use.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2000 12:16 AM
12-11-2000 12:16 AM
Re: fsadm to decrease the filesystem size fails with error...
fsadm can only decrease an lvol if the part of the filesystem you are trying to reduce has no files on it. In your case it does, so it is unable to reduce it. You can try to defrag the filesystem, this may move the offending file(s) to the first part of the filesystem allowing the reduce to work (use fsadm -e -d).
If you use JFS 3.3 (for 11) fsadm will attempt to move the offending files out of the way first which works most of the time, a good imporvement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2000 12:40 AM
12-11-2000 12:40 AM
Re: fsadm to decrease the filesystem size fails with error...
For fsadm to be able to shrink your disk, you should first defragment it with:
fsadm -F vxfs -d -e -s /var
The -s flag will provide you with a summary showing if some files couldn't be moved.
You have a few files open on /var, like /var/adm/syslog/syslog.log which could be quite large and need to be moved.
'fuser' will report all processes having a file open.
Once defragmented, you may shrink your filesystem using the same command you already tried.
Best regards,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2000 01:18 AM
12-12-2000 01:18 AM
Re: fsadm to decrease the filesystem size fails with error...
Reducing the size of a file system will fail if there are file-system resources currently in use within the sectors to be removed from the file system regardless of whatever is done first.
Therefore, fsadm is behaving correctly.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2000 09:37 AM
12-14-2000 09:37 AM
Re: fsadm to decrease the filesystem size fails with error...
On a working machine the file system can put files in the just freed area. fsadm doesnt prevend this. So at the end of the defrag action, there are new files in the area you want to reduce.
To prevend this go to single user mode first.
Gool luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2000 10:09 AM
12-14-2000 10:09 AM
Re: fsadm to decrease the filesystem size fails with error...
If fsadm fails, only way is to backup(of course multiple copies) the filesystem with all the attributes and reduce the lv and recreate the filesystem and restore the data.
...Madhu