- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Extendfs /var filesystem.
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
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
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-17-2004 09:09 PM
04-17-2004 09:09 PM
Just straight SSH F-Secure or Telnet.
My plan is:-
Vi /etc/inittab
Change init default to 2 from 4
Vi /etc/fstab
#hash out the mounting of /var
reboot without mounting /var ?
or
unmount /var before killing of the process accessing the /var FS ?
extendfs /dev/vg00/rlvol7
mount /var cos /var/tmp spcae for vi ing.
edit /etc/fstab
#unhash the entry for /var mounting
vi /etc/inittab
default run-level from 2 to 4.
Questions:
Is my plan ok and will it work?
Cheers
Rich
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2004 11:27 PM
04-17-2004 11:27 PM
Solution1) If you have OnlineJFS, then you can do it on the fly w/o unmounting the /var file system.
2) If you can reboot the server ( in your action plan), then why not going to single user mode and extend the file system?
regards,
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2004 11:31 PM
04-17-2004 11:31 PM
Re: Extendfs /var filesystem.
1. You need to use following syntax
#extendfs -F vxfs (or hfs) /dev/vg00/rlvol7
2. Confirm with bdf that /var has been extended as desired.
The above is applicable if you don't have online JFS or in case of extending an HFS file system.
With online JFS product, you can extend a FS without unmounting as the following example shows:
#fsadm -F vxfs -b 32M /myfs2
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2004 12:10 AM
04-18-2004 12:10 AM
Re: Extendfs /var filesystem.
As far as I understand, you don't have online JFS on the server. In this case ( after make_recovery backup, naturally) you reboot the computer, stop normal start up and go to single user mode
hpux -is
In this mode you can extend the logical volume by
lvextend -L NEW_SIZE_MB /dev/vg00/lvol7
and extend the file system by:
extendfs -F vxfs /dev/vg00/rlvol7
and go to normal status by
init 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2004 12:26 AM
04-18-2004 12:26 AM
Re: Extendfs /var filesystem.
it shuold have work on single user mode ,
when you boot into single user mode only / file system is mount , a little advise , also do mount /usr to have all the command
that you will have the command vgdisplay and lvdisplay , just check to see current PE and Allocation PE , and if you have free PE just extendfs them , you can aslo use the command fs_wrapper that is the same as extendfs .
if you have an error reply it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2004 01:16 AM
04-18-2004 01:16 AM
Re: Extendfs /var filesystem.
1. You need to unmount /var to do this if you do not have Online JFS
2. To unmount /var , you will need to shutdown most of the subsystems and daemons which includes inetd, through which you are connected to the system (ssh/telnet)
Bring it to single user mod and do this.
Regds,
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2004 03:39 AM
04-18-2004 03:39 AM
Re: Extendfs /var filesystem.
Use cleanup command, do preview option first, Do man on cleanup for more options.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2004 04:20 AM
04-18-2004 04:20 AM
Re: Extendfs /var filesystem.
You cannot boot the system to multiuser mode without /var. So you have to boot the system in single user mode and extend /var if you don't have online JFS.
If you gave online JFS you can do this without a reboot using the fsadm command. IF not then reboot the system in single user mode and extend /var and then reboot in multiuser mode. No point in messing with fstab and inittab. It won't help.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2004 10:23 AM
04-18-2004 10:23 AM
Re: Extendfs /var filesystem.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 08:29 PM
04-19-2004 08:29 PM
Re: Extendfs /var filesystem.
Might create a Filesysem with an extra 500mb's more than /var. Directly copy the data from /var to over to the new filesystem.
Change the FSTAB to reflect the new lv/fs and reboot picking up the new lv/fs
I pressume that would work
Cheers
Rich
p.s.
Thanks for your help plus I will assign you all top marks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 09:15 PM
04-19-2004 09:15 PM
Re: Extendfs /var filesystem.
start the system in single user mode and unmount
the /var.
If u unable to unmount the /var file system then use the command
#exec umount /var
then extend the logical volume
#lvextend -L <
#extendfs /dev/vgXX/rlvolX
All the best
Thanx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2004 12:50 AM
04-20-2004 12:50 AM
Re: Extendfs /var filesystem.
du -kx /var | sort -rn | head
Usually, /var/adm/crash will pop to the top (if you had a system crash) so the contents can be removed. The other (relatively quiet) directory is /var/adm/sw and can be safely moved as long as you aren't running swinstall. Create another lvol, perhaps 500 to 1000 megs (can be on any VG but for consistency and use with Ignite/UX, try to use VG00), newfs the lvol and mount it to a temporary directory, as in:
lvcreate -L 1000 vg01
newfs /dev/vg00/lvol-whatever
mkdir /mnt1
mount /dev/vg00/lvol-whatever /mnt1
cd /var/adm/sw
find . | cpio -pudlmv /mnt1
Now you have a copy of /var/adm/sw. Just to make sure all has been copied, count the directories and files:
find /var/adm/sw -type f | wc -l
find /mnt1 -type f | wc -l
find /var/adm/sw -type d | wc -l
find /mnt1 -type d | wc -l
NOTE: There will be one more directory on the /mnt1 lvol (lost+found because it is a separate filesystem) which is normal. The counts are just to check that everything was copied. Note also that du will likely report a different total size for the two filesystems. This is due to sparse files and reduced directories (see http://www.interex.org/pubcontent/enterprise/jan99/10qa/10qa.html)
Now that you have a copy of /var/adm/sw, you can umount /mnt1. Since we need to remove the directory contents on /var/adm/sw, now is a good time to run an Ignite/UX backup
Then carefully type: cd /tmp ; rm -r /var/adm/sw/* (be very careful not to insert any spaces, especially before the *) Now you'll have an empty /var/adm/sw which is your new mountpoint. Edit /etc/fstab and create a new entry:
/dev/vg00/lvol-whatever /var/adm/sw vxfs nosuid,largefiles,rw,delaylog 0 4
then test that it works correctly with:
mount /var/adm/sw
I use this method (edit fstab, then mount with only 1 parameter) so fstab can be verified. You will now have some 200-400 megs of free space in /var and lost of room to grow in /var/adm/sw, all online with no reboot.
BTW: you can see the difficulty in remotely managing systems without true console access. You may want to look at a secure console server. If there are several machines (including network routers, firewalls, etc) at the remote site, take a look at Cyclades which can have from 1 to 48 serial port consoles all accessible through SSH protocol.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2004 12:53 AM
04-20-2004 12:53 AM
Re: Extendfs /var filesystem.
Bill Hassell, sysadmin