- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Decreasing filesystem size with SAM
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
05-28-2002 06:06 PM
05-28-2002 06:06 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2002 06:22 PM
05-28-2002 06:22 PM
Re: Decreasing filesystem size with SAM
If you have the on-line JFS product installed
on your system you can do this from the command
line using the below example. Note that the
size is in bytes.
# fsadm -F vxfs -b 2097152 /opt
I've not seen any way that this can be done from SAM.
If you don't have the product you will need to
create an ignite backup and do it from
booting from your tape and reducign the size
that way.
HTH
~Michael~
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2002 06:51 PM
05-28-2002 06:51 PM
Re: Decreasing filesystem size with SAM
# swlist -l bundle|grep -i online
If you have it you would reduce it like so ..
# fsadm -F vxfs -b 2048000 /opt
==> 2000*1024=2048000
# lvreduce -L 2000 /dev/vg00/lvol4
==>assuming lvol4 is your /opt
I would recommend doing a full backup of /opt bfore reducing it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 01:29 AM
05-29-2002 01:29 AM
Re: Decreasing filesystem size with SAM
and you will need the JFS3.3, since the reduction usually does not work with the JFS3.0 :-(
Just my $0.02,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 01:49 AM
05-29-2002 01:49 AM
Re: Decreasing filesystem size with SAM
Decreasing the file system size, will result in loss of data, even if u have on-line JFS.
Better way is to have a backup, remove the file system, recreate it for the required size and recover from backup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 03:53 AM
05-29-2002 03:53 AM
Re: Decreasing filesystem size with SAM
IF you USE lvreduce, you will most likely LOSE DATA.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 04:02 AM
05-29-2002 04:02 AM
Re: Decreasing filesystem size with SAM
The lvol can be reduced as you like, but the data will not be reorganised when the lvol is... thus potential (probable) problems.
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 04:04 AM
05-29-2002 04:04 AM
Re: Decreasing filesystem size with SAM
Another thing you absolutly want to do before trying to shrink your filesystem with online JFS, it's to defragment the disk so all free extents will be at the end of the disk and the used one at the beginning. to do this you execute the following fsadm:
fsadm -F vxfs -d -D -e -E /mount_point
But first take a backup you never know what could happen when shrinking a filesystem.
Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 04:33 AM
05-29-2002 04:33 AM
Re: Decreasing filesystem size with SAM
You cannot decrease the size of the filesystem safely. What you should do is take a backup of the filesystem, remove the lv and then recreate the lv with the desired size and then restore the data.
Hope this helps.
regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2002 04:43 AM
05-29-2002 04:43 AM
SolutionYou'd be better off doing this in single user mode so /opt isn't busy.
Check no processes reside on /opt
/usr/sbin/fuser -c /opt
bdf to get the lvol
umount /opt
lvremove /dev/vg00/lvolx (where x is the lvol number)
lvcreate -L 2000 -n lvolx /dev/vg00
newfs -F (vxfs or hfs) /dev/vg00/rlvolx
mount /opt
Restore your data
HTH
Dave.