- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to extend /usr ,
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
06-22-2004 03:55 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2004 04:05 PM
06-22-2004 04:05 PM
Re: how to extend /usr ,
You need to reboot the system and go to single user to extend /usr
Other option you can choose is if you have something else other than system files..like /usr/local/bin occupying space, you can create another filesystems and copy all those files there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2004 04:07 PM
06-22-2004 04:07 PM
SolutionI don't think you will be able to umount /usr without rebooting. There will be lot of processes which has started from /usr. You need to boot into single user mode or lvm maintenance mode.
and then
umount /usr (it will not be mounted though)
lvextend -L newsize /dev/vg00/lvol5
extendfs -F vxfs /dev/vg00/rlvol5
mount /usr
with best wishes
Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2004 04:58 PM
06-22-2004 04:58 PM
Re: how to extend /usr ,
Its not possible to extend the /usr filesystem without reboot.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2004 05:20 PM
06-22-2004 05:20 PM
Re: how to extend /usr ,
for /usr, u need to reboot and since without online JFS:
u may do a shutdown but most importantly, u must break the 10 seconds before u can proceed to single user mode via:
after breaking to PDC Menu --> bo pri
ISL> hpux -is
since it is the logical volume of /usr u r increasing:
# /sbin/lvextend -L
# /sbin/extendfs -F vxfs /dev/vg00/rlvol#
since the /etc/default/fs is hfs, unless u want to amend the file to vxfs
# mount /usr
# lvdisplay /dev/vg00/lvol#
# mount /usr
# bdf
to check if the size is correct.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2004 10:49 PM
06-22-2004 10:49 PM
Re: how to extend /usr ,
For reference though, if you need to do the same to other filesystems in future (eg /opt which often may have things like ITO agents which can be temporarily shut down), you can do something like: -
for PID in `fuser -c /opt`
do
ps -p $PID | grep -v PID
done
This will list all processes using that filesystem. Look at the list, and if you can cleanly shut down all the processes, and start them, without affecting your application, then you can do it this way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2004 10:58 PM
06-22-2004 10:58 PM
Re: how to extend /usr ,
Check for a coredump and remove it.
find /usr -name core -print
Kaps