- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How do I reallocate disk space?
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-26-2001 07:53 AM
07-26-2001 07:53 AM
How do I reallocate disk space?
Newbie Question:
How do I reallocate space from one mount point to another. For example, let say I do a df -k :
/home (/dev/vg00/lvol5 ) : 1018327 total allocated Kb
458014 free allocated Kb
560313 used allocated Kb
/test (/dev/vg00/lvol4 ) : 31823 total allocated Kb
14860 free allocated Kb
16963 used allocated Kb
Now let's say I wanted to grab some disk space from /home and add it to /test to increase it's disk space. How would I go about doing this?
TIA,
Daniel N.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2001 08:03 AM
07-26-2001 08:03 AM
Re: How do I reallocate disk space?
IMHO, a well planned out system will alleviate this. Lots of people tend to put all of their eggs into one basket, leaving problems like you have. If space is not curently needed, it should not necessarily be allocated just to be used up. You can always expand filesystems (though sometimes a nuisance), but can never reduce one on the fly!
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2001 08:04 AM
07-26-2001 08:04 AM
Re: How do I reallocate disk space?
If you have Online JFS (and your filesystems are vxfs ones, of course), then it is sometimes possible to shrink the size of a filesystem dynamically. In that case, you might free extents from one filesystem which could be added to another.
If your case does not meet this criteria, then you must backup the filesystem you want to shrink, destroy it and recreate it.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2001 08:10 AM
07-26-2001 08:10 AM
Re: How do I reallocate disk space?
You really did not give enough info for me to give you a really good answer, but here goes:
You have a couple of options:
1. Backup /home. Remove and recreate or lvreduce /home to create it as a smaller lv. Then restore the /home data. Then use lvextend to increase the size of /test.
2. You could create a symbolic link to /home from test to use the space.
mkdir /home/test_data
cd /test
ln -s mynewdir /home/test_data
The second is easier, but sometimes too many links get confusing.
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2001 08:29 AM
07-26-2001 08:29 AM
Re: How do I reallocate disk space?
Joseph's answer is what I would have said.
However, (& I hesitated ALOT about this) JRF's reply is not quite true, you can only shrink a OnlineJFS if you have not written to it!! The first write stops you shrinking it! The HP manual & courses say (well, did say) you can shrink!
Good luck anyway
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2001 09:00 AM
07-26-2001 09:00 AM
Re: How do I reallocate disk space?
I should have been much more explicit. It *is* possible to shrink a JFS filesystem. It is often *not* possible with older versions of JFS and JFS filesystems. The failure occurs when inuse inodes occupy the space to be reduced. Sometimes an online defragmentation of the filesystem beforehand will allow a subsequent reduction to succeed.
Using JFS version 3.3 allows a greater chance of success. However, you must 'vxupgrade' your filesystems to version-4 *and* use JFS 3.3 to raise the assurance of success.
JFS 3.3 can be used with 11.0; is the default on 11.11; but is not available for 10.20.
BTW, Tim, "disagreement" is what this forum is about, don't ever be bashful. Healthy disagreement simply brings more information. Thanks, and regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2001 09:04 AM
07-26-2001 09:04 AM
Re: How do I reallocate disk space?
DON'T MESS WITH THE TOP DOG.
Thanks for the info great info.
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2001 09:35 AM
07-26-2001 09:35 AM
Re: How do I reallocate disk space?
You need to have a backup , coz in case you reduce it there may be chance for you loosing some files .Ans also the size is lvol is aorung 1 gb which shouldnt be a problem to be backed up .
Take the backup , reduce the size , reallocate the space and restore the back up.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2001 09:52 AM
07-26-2001 09:52 AM
Re: How do I reallocate disk space?
All,
Thanks for all the replies. Now all I need to do is find out what kind of system I'm on and I'll be in semi-good shape. Since I am more of an Oracle Developer rather than a Sys. Admin, and we just recently lost our Sys-Admin, I am starving for knowledge without knowing where the fountain of knowledge is. Can someone please tell me what commands I can use to query the system to find out if/what kind of Volume Manager I have installed and what 'manpages' can I look for to extend file sizes?
O.S. = B.11.00 A 9000/821 (t1)
Again TIA,
Daniel N.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2001 10:08 AM
07-26-2001 10:08 AM
Re: How do I reallocate disk space?
You are using the LVM that comes standard with HPUX.
Things you might want to look at:
man vgdisplay
man lvextend
man extendfs
However, If you are new to hpux/lvm, I would recommend using SAM.
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2001 10:30 AM
07-26-2001 10:30 AM
Re: How do I reallocate disk space?
A good guide to LVM tasks can be found in "Managing Systems and Workgroups: A Guide for HP-UX System Administrators". Take a look, particularly at this chapter:
http://docs.hp.com/hpux/onlinedocs/B2355-90742/B2355-90742.html
As Joseph suggested, the man pages are well worth a look, too.
'fstyp' (see the man pages) can be used to determine the type of filesystem you have. You can also list your /etc/fstab to see.
# fstyp -v /dev/vgXX/lvolX
To see if you have Online JFS installed, do:
# swlist -l bundle|grep -i JFS
If the output of this command does *not* show a component with the word "online" then you do not have Online JFS. The Online version is a separate add-on to the base product.
Remember that SAM can easily lead you through the process of disk and filesystem maintenance with a miniumum of knowledge. This is always an option, too.
...JRF...