- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Extending /opt
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
04-15-2004 01:49 AM
04-15-2004 01:49 AM
Extending /opt
How painful is it to extend /opt? I've extended other fileystems before but I seem to recall there are some restrictions on extending some filesystems on vg00.
Should I be able to use SAM to just extend the logical volume and the filesytem without destroying anything on /opt?????
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2004 01:53 AM
04-15-2004 01:53 AM
Re: Extending /opt
/opt/java would appear to be a logical name. If you already have a directory called /opt/java, move everything to a safe place before you delete the directory then move it into the new filesystem.
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2004 01:54 AM
04-15-2004 01:54 AM
Re: Extending /opt
Sam will do it.
What sam will do is:
lvextend -L
umount /opt
extendfs -F vxfs /dev/vg00/rlvol_of_opt
the only possible obstacle is whats running on /opt.
You may want to do this manually after killing all processes on opt.
fuser -cuk /opt
This command might disrupt your production.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2004 01:56 AM
04-15-2004 01:56 AM
Re: Extending /opt
Depends a bit on what is installed/running in /opt and if you have OnlineJFS installed.
If you don't have OnlineJFS you need to umount /opt. You can check with lsof what is running on /opt and what you need to kill and restart after the filesystem extend.
# umount /opt
# lvextend -L size_MB /dev/vg00/lvolx
# extendfs /dev/vg00/rlvolx
# mount /opt
# bdf
HTH,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2004 01:57 AM
04-15-2004 01:57 AM
Re: Extending /opt
Since /opt doesn't have any contiguous requirements and if you have free space in vg00 then by all means you can extend it.
If you don't have any free space in vg00 then you'll have to add another PV to the vg00 VG to extend /opt.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2004 01:57 AM
04-15-2004 01:57 AM
Re: Extending /opt
Your main problem will be the requirement to unmount /opt. Generally, the easiest thing to do is to boot into single user mode, run mount -a, then unmount /opt. From that point it's a trivial matter to run sam and increase the lvol/filesystem.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2004 02:26 AM
04-15-2004 02:26 AM
Re: Extending /opt
you can
lvextend -L newsize /dev/vg00/lvol4
fsadm -F vxfs -b new_fs_size /opt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2004 02:43 AM
04-15-2004 02:43 AM
Re: Extending /opt
If you don't have onlineJFS, you need to reboot the system in single user mode to extend /opt unless you want to create an additional filesystem and mount it inder /opt/java or /opt/java1.4 depending on which version you are installing. Try this link below if you need to reboot and extend /opt.
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000072882493
The itrc doc id is KBRC00000204.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2004 04:19 AM
04-15-2004 04:19 AM
Re: Extending /opt
#lvextend -L 3000 /dev/vg00/lvolxxx
#fsadm -F vxfs -b 3000M /opt
If you extend already mirrored filesystem, lvextend will take care of mirror copy extention automatically.