- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- extending file systems (/home)
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-22-2002 06:30 AM
05-22-2002 06:30 AM
Thanks,
Mark
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 06:33 AM
05-22-2002 06:33 AM
Re: extending file systems (/home)
The key is that the file system needs to be unmounted. If you can kick your users off and manage to unmount /home without going to single user mode, then you can leave the system up.
Hope this helps,
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 06:37 AM
05-22-2002 06:37 AM
Re: extending file systems (/home)
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 06:38 AM
05-22-2002 06:38 AM
Re: extending file systems (/home)
Generally
/ /stand /usr /opt & /var
*usually* need to be extended in single-user mode.
/home is iffy as users may be logged in & just sitting at a shell prompt & will be sitting in the home dir frequently. You'll almost always have to boot all users off the system to extend home.
A key is to make sure root does NOT have their home dir under /home.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 06:38 AM
05-22-2002 06:38 AM
Re: extending file systems (/home)
if You use Advnced JFS You dont need to umount filesystem. Have a look at man fsadm, unfortunately when You don't have this product filesystem have to be unmounted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 06:40 AM
05-22-2002 06:40 AM
Solution# lvdisplay /dev/vg00/lvolX
==> For any of the above LVs, you'll see that "Allocation=strict/contiguous".
Other then that (/opt, /usr, /var, /home) can be lvextended in a normal way without worrying about contigous nature of these LVs. And as long as you can umount them, you can lvextend 'em, unless you have ONlineJFS which allow you to lvextend it on-the-fly. When the system is in use, it's obvious dirs like /usr,/var and /opt for exmaple cannot be unmounted, hence need to go to single-user-mode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 06:44 AM
05-22-2002 06:44 AM
Re: extending file systems (/home)
The rules are simple. If you have Online JFS and are dealing with VxFS (JRF) filesystems, there is no need to unmount or go to single-user mode to extend or shrink a filesystem.
If you do not have Online JFS or the filesystem is HFS, then you *must* unmount the filesystem to extend it. In that case, you can remain in multi-user mode as long as no one (human) or no process is running that is accessing it. In cases like /var, /tmp, and sometimes /opt it is simply easier to do the maintenance in single-user mode where you have *not* transited run-levels that start daemons that use files or pipes in these filesystems. The other choice is to stop and later restart daemons that are interferring.
If you can get all of your users to stay logged-off, you can probably extend /home while running otherwise normally. Use 'fuser' to see who/what has open files if you can't unmount it, and optionally 'fuser -k' to kill processes there.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 06:50 AM
05-22-2002 06:50 AM
Re: extending file systems (/home)
Thanks to all who replied, points on the way.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 06:53 AM
05-22-2002 06:53 AM
Re: extending file systems (/home)
/home is a mount point where the normal user home directories are created by default. If you don't have any user activity at present and you can get the users to logout, you can unmount /home and increase the filesystem size. You cannot do so with the other filesystems in vg00 since they are in use by the system normally and hence you need to go into single user mode to increase their sizes.
To check if anyone is using /home,
fuser -cu /home
to kill all process id's using /home,
fuser -ck /home
Then unmount /home,
umount /home
increase the filesystem size,
lvextend -L new_size_in_MB /dev/vg00/lv_for_home
extendfs -F vxfs /dev/vg00/rlv_for_home
Now mount the filesystem back,
mount /dev/vg00/lv_for_home /home
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 07:34 PM
05-22-2002 07:34 PM
Re: extending file systems (/home)
Be careful of MAX_PE in the volume group.
This may limit the amount of disk that is usable.
By default the max size of the first disk used to create a VG is the max usable from then on. Regardless of the disks used.
There are ways around this. Let me know if they're required.