- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Reducing file system on vxfs
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
07-03-2002 07:54 AM
07-03-2002 07:54 AM
lvextend -L 500 /dev/vg00/lvol8
extendfs -F vxfs -b 614400 /dev/vg00/rlvol8
reboot.
Now I need to reduce the file system. I ran lvreduce -L 200 /dev/vg00/lvol8 and lvdisplay reflects that change, but a bdf shows the same size file systems. What did I do wrong? Any ideas on how to correct the problem? The good thing is that this is a development station, so reboots are not an issue.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2002 07:59 AM
07-03-2002 07:59 AM
Re: Reducing file system on vxfs
you can reduce a filesystem only if you have online JFS. If not, you have to do a backup of your filesystem, then reduce the filesystem, which destroys data in it and restore your backup. And if you have online JFS, please do a backup before reducing also, cause it coul fail.
Allways stay on the bright side of life!
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2002 08:01 AM
07-03-2002 08:01 AM
Re: Reducing file system on vxfs
Do U have online JFS installed? If no, then U are in trouble. After decreasing the lvol by lvreduce command, U will have to do newfs for reflecting the change in bdf. By the time ur data will be washed away. if U have online jfs, don't worry U can use fsadm command. If no online jfs
Take backup of lvol8, then do
#newfs /dev/vg00/rlvol8
Then restore backup. Otherwise U forget about that space, Once again use lvextend for the lvol, Let it be 500 MB size.
Best of luck
Shahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2002 08:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2002 08:04 AM
07-03-2002 08:04 AM
Re: Reducing file system on vxfs
You need to run the newfs command again if you dont have Online JFS installed on your system.
Since you had run extendfs, you need to do a newfs again.
So backup the data on the filesystem and then run the newfs command and you are done.
Then mount the filesystem and restore the data.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2002 08:05 AM
07-03-2002 08:05 AM
Re: Reducing file system on vxfs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2002 08:11 AM
07-03-2002 08:11 AM
Re: Reducing file system on vxfs
lvreduce knows nothing about files and filesystems. Therefore, it will change the boundary of a logical volume without regard to any meaningful data. As mentioned, you must umount the filesystem first. There is a high probability that lvreduce may corrupt the filesystem and bdf is just looking at old data.
When you have Online JFS (and patches)and the filesystem you are reducing is indeed JFS (vxfs), then it can be done online.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2002 01:09 PM
07-08-2002 01:09 PM
Re: Reducing file system on vxfs
just to make things easier:
use
extendfs -b $((1024*500)) ...
(to extend FS using non-OnlineJFS command)
or
fsadm -b $((200*1024)) /var
(to reduce the FS using OnlineJFS command)
this avoids miscalculations of the new FS size (or using a calculator ...)
regards
uli
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2002 07:08 AM
07-09-2002 07:08 AM
Re: Reducing file system on vxfs
The command you used to increase the size of the file system says that you don't have onlineJFS. If you have onlineJFS you can use the following commands to reduce the file system
#fsadm -F vxfs -b 200M
#lvreduce -L 200 /dev/vg00/lvol8
If you don't have online JFS then as mentioned by everyone you need to recreate the file system.