- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: I want to know how to decrease the filesystem ...
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
10-16-2008 08:50 PM
10-16-2008 08:50 PM
I want to know how to decrease the filesystem size
I am new to this field. I want to know the how to decrease the /var filesystem. and how to move the files from /var to another.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2008 08:59 PM
10-16-2008 08:59 PM
Re: I want to know how to decrease the filesystem size
You can't move files if they are needed in single user mode.
Otherwise you can move them and leave symlinks pointing to the new location.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2008 09:18 PM
10-16-2008 09:18 PM
Re: I want to know how to decrease the filesystem size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2008 10:34 PM
10-16-2008 10:34 PM
Re: I want to know how to decrease the filesystem size
lvreduce is the command to Reduce logical volume
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2008 11:00 PM
10-16-2008 11:00 PM
Re: I want to know how to decrease the filesystem size
*Please* be careful when giving this sort of advice... yes lvreduce will reduce the size of a logical volume, but if it is done before the filesystem on the logical volume has been reduced it will completely corrupt the filesystem.
Santhikumari,
How you reduce the size of a filesystem depends on whether or not you have Online JFS installed or not. If you do, you can reduce the size of the filesystem online, if you don't you'll need to go to single user mode via a reboot to accomplish this.
Check what the output of the command:
swlist | grep -i jfs
returns - hopefully it will mention the OnlineJFS product.
HTH
Duncan
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2008 11:21 PM
10-16-2008 11:21 PM
Re: I want to know how to decrease the filesystem size
I dont have the root access. So that command is not working in the usermode.Please help me regarding this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2008 11:26 PM
10-16-2008 11:26 PM
Re: I want to know how to decrease the filesystem size
>> I dont have the root access.
Then there is no point in proceeding - you cannot carry out system administration tasks such as extending/reducing filesystems without root access. Are you not the system adminsitrator for this server? If you aren't, why don't you ask the actual sysadmin to reduce the filesystem size for you?
HTH
Duncan
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2008 11:31 PM
10-16-2008 11:31 PM
Re: I want to know how to decrease the filesystem size
Only root can manage filesystems, so :
- Get root access, or find someone who has and wants to help you.
- What type of filesystem is it ? HFS ? Or VxFS ? If it is HFS, you can't reduce your filesystem. You well need to create a new smaller filesystem, copy over the data and witch the mountpoint.
- If it is VxFS, check if you have Online-JFS. If not, you will have to reboot your system to single-user mode.
- If you have Online-JFS, look at fsadm (manpage fsadm_vxfs). fsadm -F vxfs -b should help you.
Be aware that shrinking a filesystem is not always possible.
After the filesystem has been shrinked, carefully reduce the LVM with lvreduce, but don't set it smaller as the new filesystem size, or you will indeed have a corrupted filesystem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2008 11:48 PM
10-16-2008 11:48 PM
Re: I want to know how to decrease the filesystem size
I am taking KT. My senior is on leave. I got the error from that. It is very important server. So there is any way to reduce the size of the FS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2008 11:52 PM
10-16-2008 11:52 PM
Re: I want to know how to decrease the filesystem size
/var (/dev/vg00/lvol8 ) : vxfs.
I got the above output fron "df -n".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2008 12:13 AM
10-17-2008 12:13 AM
Re: I want to know how to decrease the filesystem size
Not without root access. If you don't have it, you can't do it.
HTH
Duncan
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2008 12:18 AM
10-17-2008 12:18 AM
Re: I want to know how to decrease the filesystem size
I will inform to my senior regarding this error. But I want to know the procedure. Please Could you give me the details of this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2008 01:03 AM
10-17-2008 01:03 AM
Re: I want to know how to decrease the filesystem size
Do you have the exact error message? It may help us determine what you really want.
I typically never hear anyone say make /var smaller, only bigger.
See my first reply.
And if you can't make it bigger, you can try to reduce or move the files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2008 04:04 AM
10-17-2008 04:04 AM
Re: I want to know how to decrease the filesystem size
KEEP ASSIGNING POINTS TO THOSE WHO SPEND THEIR VALUABLE TIME FOR YOU