- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to extendfs'ing /var (or /usr etc..)
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
11-05-2001 09:05 PM
11-05-2001 09:05 PM
How does one extend a filesystem such as /var or /usr - i.e. one that is an 'important' to the system? (is there a better term for these?)
Single user mode is slapping me in the face but to possibly avoid having to shutting down...
Thx,
Mark
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2001 09:17 PM
11-05-2001 09:17 PM
Re: how to extendfs'ing /var (or /usr etc..)
How about moving/deleting some files of /var ?
http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x3feac6af36b7d5118ff10090279cd0f9,00.html
Another solution is online JFS.
Regards
Animesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2001 09:27 PM
11-05-2001 09:27 PM
Re: how to extendfs'ing /var (or /usr etc..)
If you have advanced JFS installed on the
system, you can extend the FS on the fly.
Decide on the new Size(in MB) you want. Then do,
#lvextend -L
#blocks=newsize*1024
#fsadm -F vxfs -b
Now the filesystem is with the new size.
All done without unmounting it.
If you do not have JFS, then you would need
to boot in single user mode and
run lvextend & extendfs.
-raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2001 09:28 PM
11-05-2001 09:28 PM
Re: how to extendfs'ing /var (or /usr etc..)
/var and /usr are system related file systems, you can't increase/decrease their size without getting into single user mode(since they were under use all the time).
reboot the machine(#reboot) when the sysem ask to press amy key within 10 secs.press any key, which gives a prompt. If you know the boot device in which /usr and /var needs to be increased type
prompt> boot Px
interact with ISL? press Y. his gives you the ISL prompt
ISL> hpux -iS
takes you to single user mode
#mount -a
note the /dev/vgxx/lvolx for /usr /var
#umount /usr /var
#lvextend -L size(in MB) /dev/vgxx/lvolx
#exendfs -F vxfs /dev/vgxx/rlvolx
#mount /dev/vgxx/lvolx /usr or /var
(where vgxx is the respective vg for /usr or /var, lvolx for lv for /usr or /var. you need to repeat the procedure twice.once each for /usr and /var)
# init 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2001 09:33 PM
11-05-2001 09:33 PM
Re: how to extendfs'ing /var (or /usr etc..)
Unless you have on-line JFS product you find great
difficulty in doing without being in single
user mode. I have not seen one instance
where it has been done in multi-user as the
system depends so much on files being open.
You best bet is to boot the system into
single-user mode, 'lvextend' the logical volume
and run 'extendfs' on it. Extending '/' '/stand' or your primary swap 'lvol2' you will need to do
these from an ignite tape as these volumes must
be contiguous.
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2001 09:48 PM
11-05-2001 09:48 PM
Re: how to extendfs'ing /var (or /usr etc..)
As mentioned already, Online JFS is the product you need to be able to extend/reduce filesystems on the fly. Otherwise you are stuck with booting to single user mode to maintain these filesystems.
NOTE: You can extend a logical volume in multi-user mode, but you have to be in single user mode to extend the filesystem.
Regards,
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2001 11:03 AM
11-06-2001 11:03 AM
Re: how to extendfs'ing /var (or /usr etc..)
Online JFS product will be really helpful for such on-fly extension of file systems (vxfs), except fot the /stand, which being hfs the way to extend is after booting machine at single user mode.
Thanks.
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2001 03:30 PM
11-06-2001 03:30 PM
Re: how to extendfs'ing /var (or /usr etc..)
I should clarify my previous comment regarding booting to single user mode. To extend a filesystem (extendfs), the filesystem needs to be unmounted (if you don't have Online JFS). So for a non-root filesystem you don't need to boot to single user mode, simply shutdown any processes that would be using that filesystem (can use fuser to check) and then unmount it to extend it. Obviously this is an interruption to your customers business needs so you would need to do this out of hours.
Filesystems, such as, /var, /usr, /tmp and /opt are typically in use by many root processes, so the safest way is to boot the server to single user mode. That way these filesystems are not mounted and therefore not in use, so can be extended safely.
Regards,
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2001 06:29 PM
11-06-2001 06:29 PM
Solutioninit s (nope, that only shuts down a few processes in the inittab table and anything owned by init that is not listed in inittab.
shutdown 0 (nope, although it used to work really well to bypass the machine's selftest. Now, it often leaves /var, /usr and even /opt mounted)
shutdown -r 0 (then interrupt the boot process as mentioned by others. This always works. Verify that /var and /usr are not mounted...note that bdf won't work since /usr should be mounted. Use just: mount to report the current munt points.
Bill Hassell, sysadmin