- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: 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
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-08-2008 10:27 AM
10-08-2008 10:27 AM
I am using hp-ux production server 11.11 and Sap application are running on it, need your help for following task.
I don't have online Jfs product installed on server.
1)I have to extend the /opt, but during umounting it showing device is busy.i tried with
#fuser -ku /opt
#kill -9 pid
but still device showing busy.
2)I think so i have to boot the interupt sequence and go into ISL mode for single user mode.
3)But can you give me exact steps and command to go into single user mode and again back to multiuser mode without affecting running appln.Hopes this will help to umount the file system.
3)which file system needs to be unmount in single user mode?
thanks in advance.
Regards,
subodh.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 10:32 AM
10-08-2008 10:32 AM
Re: Extending /opt
If you don't have Online JFS (and you should!) then you can't use 'fsadm' to resize a filesystem without unmounting it.
If this is the case, you must unmount the filesystem in order to 'extendfs' it. For most 'vg00' filesystems it is easiest if you *boot into* single user-mode where only the root filesystem is mounted. Use the commands in '/sbin' or in your specific case, mount '/usr' since this isn't the filesystem that needs extension.
It is cleanest, when done, to simply reboot again and resume normal production.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 02:09 PM
10-08-2008 02:09 PM
Solution1. Interrupt the boot sequence at BCH
2. check for the bootable devices using
sea ipl
3. then run bo P0 (boot as per the path)
4. Then interact with ISL
5. Then do hpux -is at the isl prompt
#hpux -is
6.check weather /opt is unmounted or not
If not then unmount the filesystem
7. do a lvextend to increase the size of the logical volume.
#lvextend
8. Do a extendfs for extending the filesystem
#extendfs
Then mount the filesystem and check if everything is working fine and then boot the system in the multiuser mode
Thanks
Vivek Bhatia
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 10:25 PM
10-08-2008 10:25 PM
Re: Extending /opt
lvextend -L size(M) lvolname
extendfs -F vxfs -b size(M) /opt
Thanks
SKR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2008 10:37 PM
10-08-2008 10:37 PM
Re: Extending /opt
reboot server
interrupt BCH and boot with primary boot disk
interrupt ISL and type "hpux -is"
make sure that /opt not mounted.
extend size of /opt with "lvextend -L newlvsizeinmb /dev/vg00/lvol6
extendfs -F vxfs /dev/vg00/rlvol6
reboot system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2008 12:56 AM
10-09-2008 12:56 AM
Re: Extending /opt
If you want I can send you a copy of that script.
regards,
PeterE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2008 01:10 AM
10-09-2008 01:10 AM
Re: Extending /opt
You could upload the modified lvmrc script, to give it a look, sound great.
thnx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2008 01:11 AM
10-09-2008 01:11 AM
Re: Extending /opt
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2008 04:14 AM
10-10-2008 04:14 AM
Re: Extending /opt
To install the new script save it as /etc/lvmrc.myone (or what ever name your want) and do:
cp -p /etc/lvmrc /etc/lvmrc.HP
cp /etc/lvmrc.myone /etc/lvmrc
chmod 444 /etc/lvmrc*
chown bin:bin /etc/lvmrc*
Next lvextend all lvols you want to extend and edit /etc/lvmrc. Uncomment one or some of the pre-defined '/sbin/extendfs' lines or add your own one at the end in function 'custom_vg_actions'.
Control your changes for syntax errors with:
/sbin/sh -xp /etc/lvmrc
There should be NO error!
Now reboot the system and after it is up again control the logfile /etc/lvmrc.log
After the file system has been extended you can comment out the line
AUTO_VG_ACTIVATE=0 at top page of the script but there is no need to do so. This script function is reboot-save.
After rebooting you can comment out the '/sbin/extendfs' in the lvmrc script but there is no need to do so.
Hope this helps. For me it works fine with HP-UX 10 and 11.
- PeterE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2008 04:21 AM
10-10-2008 04:21 AM
Re: Extending /opt
Sorry, this is not the right syntex, you need to give
extendfs -F vfxs /dev/vg00/lvolname
Thanks
SKR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2008 04:31 AM
10-10-2008 04:31 AM
Re: Extending /opt
>> But can you give me exact steps and command to go into single user mode and again back to multiuser mode without affecting running appln???
No, you cannot. Reboot is compulsory.
Vivek Bhatia is exactly right in describing the steps. One add.... You need to mount /usr file system manualy.
# mount /usr
OR
# mount /dev/vg00/lvol7 /usr
Rgds
Sreekanth