- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: extending /var and /opt file system
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-04-2004 10:49 AM
06-04-2004 10:49 AM
/dev/vg00/lvol6 /opt vxfs delaylog 0 2
/dev/vg00/lvol7 /tmp vxfs delaylog 0 2
/dev/vg00/lvol8 /usr vxfs delaylog 0 2
/dev/vg00/lvol9 /var vxfs delaylog 0 2
I ma extending the the size of /var and /opt.
I know I have to do this in single user mode.
What would be the command to extend the logical volume and file system?
Or please verify the commands below are correct.
#shutdown
#umount /opt
#lvextend â L 1024 /dev/vg00/lvol6
#extendfx â F vxfs /dev/vg00/rlvol6
#mount /opt
#bdf
#restart
Please help me quickly.
T
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2004 10:55 AM
06-04-2004 10:55 AM
Re: extending /var and /opt file system
1. Reboot the system and then get into single user mode. Interact with ISL at the boot admin prompt.
ISL>hpux -is
2. Once you are in single user mode use the commands
#mount /usr
#lvextend -L 2048 /dev/vg00/lvol6
#extendfs /dev/vg00/lvol6
#mount /opt
#bdf /opt
Repeat the above steps for /var. Once you are done,
#init 3
But if you have online JFS, you don't need to reboot the system. You can simply do
#lvextend -L 2048 /dev/vg00/lvol6
#fsadm -b 2048m /opt
#bdf /opt
The size you specify with lvextend is the total size of the logical volume you intend to see after the change.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2004 10:59 AM
06-04-2004 10:59 AM
Re: extending /var and /opt file system
# swlist -l product |grep OnlineJFS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2004 11:06 AM
06-04-2004 11:06 AM
Re: extending /var and /opt file system
Follow what Sridhar has given u. He did not earn Olympian for nothing.
if u have online JFS, there will be no need to re-boot to single user mode.
i see that u have not assign any points before. so here is the pointer:
http://forums1.itrc.hp.com/service/forums/helptips.do?#28
therefore, please also assign points quickly....
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2004 11:14 AM
06-04-2004 11:14 AM
Re: extending /var and /opt file system
i really appreciate your help.
i am little concerned about "extendfs" command.
if i don't use "-F" option then it take the default filesystem type from /etc/default/fs. please find below output of cat command on /etc/default/fs
# cat /etc/default/fs
LOCAL=hfs
so the type of the file system it is going to use is "hfs" but in /etc/fstab file it is specified as "vxfs" tye of file system.
what should i used?
one more quesion why i should not use "shutdown" command to go in single use mode?
please answer as soon as possible.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2004 11:16 AM
06-04-2004 11:16 AM
Re: extending /var and /opt file system
i will assign the point for sure.
please help me
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2004 11:18 AM
06-04-2004 11:18 AM
Re: extending /var and /opt file system
If your filesystem is vxfs and you do not want to modify your defaults file, you must specify the -F vxfs option in your extendfs command.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2004 11:26 AM
06-04-2004 11:26 AM
Re: extending /var and /opt file system
here goes:
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
# mount /usr
# /usr/sbin/lvextend -L 1024 /dev/vg00/lvol6
# /usr/sbin/extendfs -F vxfs /dev/vg00/rlvol6
since the /etc/default/fs is hfs, unless u want to amend the file to vxfs
# lvdisplay /dev/vg00/lvol6
# mount /opt
# bdf
to check if the size is correct and do likewise for /var
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2004 11:29 AM
06-04-2004 11:29 AM
Re: extending /var and /opt file system
is there any other way i can find out what is the type of filesystem?
I DON"T HAVE ONLINE JFS FOR SURE.
please help me.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2004 11:33 AM
06-04-2004 11:33 AM
Re: extending /var and /opt file system
What do u mean by following?
"u must break the 10 seconds before u can proceed to single user mode via:"
i am confuse because if i run the command "shutdown" what it does it brings the system into single user mode unless i am wrong.
why can't i just run "shutdown" command to bring it to single user mode and use "resart" command to go back in multi-user mode?
please answer!
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2004 11:36 AM
06-04-2004 11:36 AM
Re: extending /var and /opt file system
fsadm /var
(keep your defaults file as hfs)
if the filesystem type is not hfs (which it is not according to the fstab) it will come back complaining that it is not hfs filesystem
run command
fsadm -F vxfs /var
and you will get an output like :
nolargefiles
which tells you it is a vxfs filesystem.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2004 11:38 AM
06-04-2004 11:38 AM
Re: extending /var and /opt file system
init 0
but some not so well behaving applications do not stop and you can not really have a system in single use mode in the full sense.
to guarantee a REAL single user boot is to issue :
shutdown -ry 0
and wait for the system to reboot and when you see that hit any key in 10 seconds notice hitting something and preventing the system from autobooting to full OS. Then you need to follow the instructions above to extend your FSs
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2004 11:45 AM
06-04-2004 11:45 AM
Re: extending /var and /opt file system
Mel is right and his explanation is also correct.
so, have u done what u need to do to increase /var and /opt?
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2004 12:20 PM
06-04-2004 12:20 PM
Re: extending /var and /opt file system
Please help me with instruction to go into single user mode properly. Or please verify the steps to go into single user mode belo
shutdown -ry 0
Hit the . key to beark into
T
PDC Menu --> bo pri
ISL> hpux â is
How would I go into multi user mode then?
What are yo trying to suggest by saying following
â so, have u done what u need to do to increase /var and /opt?â
please help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2004 12:37 PM
06-04-2004 12:37 PM
SolutionPDC Menu -> bo pri
Interact with ISL -> Choose Y
ISL> hpux -is
will boot u up to single user mode.
afterwhich do the lvextend steps.
# init 3
to boot to multi-user mode.
OR
# shutdown -ry 0
to force reboot and do not interrupt booting process this time. it will then proceed to multi-user mode.
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2004 12:40 PM
06-04-2004 12:40 PM
Re: extending /var and /opt file system
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2004 03:07 PM
06-04-2004 03:07 PM
Re: extending /var and /opt file system
//i am little concerned about "extendfs" command.
if i don't use "-F" option then it take the default filesystem type from /etc/default/fs. please find below output of cat command on /etc/default/fs
//
I intentionally vomitted -F option because extendfs will determine what type of filesystem it was. This is already a vxfs filesystem and you are only extending it.
What you said is correct when you are "creating" the filesystem.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2004 12:06 AM
06-06-2004 12:06 AM
Re: extending /var and /opt file system
Am I missing something here?
The extendfs man page says:
The command-line parameter special specifies the device special file
of either a logical volume or a disk partition. The special must be
un-mounted before extendfs can be run (see mount(1M)).
Whereas, Sridhar and others are suggesting to mount the filesystem before lvextend and extendfs. Is this correct?
I always umount filesystems and lvextend+extendfs and then mount them again.
Correct me if I am wrong.
Cheers,
Mohan.
(Joseph hope you enjoyed your Dosai and parata:))
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2004 02:58 AM
06-06-2004 02:58 AM
Re: extending /var and /opt file system
Kaps