- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: root extend
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-26-2007 11:33 PM
11-26-2007 11:33 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2007 11:39 PM
11-26-2007 11:39 PM
Re: root extend
First, run
"lvextend -L
to extend the logical volume. This can always be done while the filesystem is mounted.
If you have OnlineJFS installed, you can then run
"fsadm -F vxfs -b
to extend the filesystem without umounting it.
If you don't have OnlineJFS, you'll have to umount the filesystem, run
"extendfs /dev/vgNAME/lvolX"
and then mount the filesystem again.
Thanks,
Srikanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2007 11:43 PM
11-26-2007 11:43 PM
Re: root extend
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2007 11:51 PM
11-26-2007 11:51 PM
Re: root extend
The first, and best, way is to use an Ignite make_tape_recovery tape to re-create vg00. This involves booting the machine from the tape drive, sizing your vg00 LVM layout, and restoring vg00 from the tape.
The second way is to shrink the file system that immediately follows lvol3, possibly /home, depending on your layout, then extending lvol3 and extending the file system.
Quite possibly the best way of dealing with this is to address why you would need to expand the / filesystem in the first place. It should be capable of being quite small and very static. If either of these conditions are not being met, then the filesystem is being mis-used. Clean out large files, core dumps, /tmp files, etc., etc. Check the /dev directory for regular files - there should be none.
In short, address the reason for the growth first before you consider growing the file system.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2007 11:51 PM
11-26-2007 11:51 PM
Re: root extend
unfortunatly / (usually /dev/vg00/lvol3) MUST have contiguous extends.
Unless you have only /stand, swap and / on one disk of vg00 and others LV on an other disk, you CAN'T extend lvol3 in the way describes above.
The supported way to do this is to reinstall your system with an fresh ignite image.
Here is an idea to it online if you have sufficient free space on the disk in vg00. But probably an usupported way ;-)
- add a temporary disk in vg00
- with "pvmove", transfer all LV but lvol1, lvol2 and lvol3 to this new disk. (that is don't move lvol1, lvol2 and lvol3)
- extend lvol3 with "lvextend" and "fsadm -b"
- bring back all LV from the new disk to the main one.
- with vgreduce remove the temporary disk from vg00.
I think it should work
Hope this will help
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2007 12:51 AM
11-27-2007 12:51 AM
Re: root extend
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2007 01:05 AM
11-27-2007 01:05 AM
Re: root extend
Since root lv is contiguous in nature , it cannot be extended easily. However there are some alternative methode to acheive this.
Make sure that u have "Online JFS installed" and working properly. Then execute "pvdisplay -v
#pvmove -n
This will relase some contiguous space for root LVOL and can be extended using "lvextend" and "fsadm" command.
#lvextend -L
#fsadm -b
After this you can move back the "pvmoved" lvol to the original disk using pvmove command by altering the source and destination disk.
Regards !
Jijeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2007 01:13 AM
11-27-2007 01:13 AM
Re: root extend
Sorry, I missed the root disk information. (1) Intrupt boot sequence to goto single user mode.
(2) copy the /etc/fstab to /etc/fstab.backup.
(3) Either create a larger lvol and then copy the contents of existing root file system mount point as given in the below thread
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1130122&admit=-682735245+1196172097189+28353475
or
you can try the following
fsck -y /dev/vg00/lvol7
mount /dev/vg00/lvol7 /usr
lvextend -L <10000> /dev/vg00/lvol3
extend the fs
extendfs -F vxfs /dev/vg00/rlvol3
mount -a
reboot -rqs
Thanks,
Srikanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2007 01:43 AM
11-27-2007 01:43 AM
Solutionthe link given by Srikanth CAN'T work as the goal in this thread was to extend /opt, not /
More, the procedure he gives will not work as you have probably no extends available behind lvol3 ... you must free some space before.
If you want more details on the way to achieve online reconfiguration of lvol3, as I have suggested before, take a look at
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1096861
You can find more threads with "advanced search", then search for "pvmove lvol3", in HP-UX forums
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2007 02:11 AM
11-27-2007 02:11 AM
Re: root extend
tnks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2007 07:05 AM
11-27-2007 07:05 AM
Re: root extend
Geoff Wild have made a site for tips and tricks:
http://www.met.ca/itrc/
And this is the trick you need:http://www.met.ca/itrc/index.php?option=com_content&task=view&id=89&Itemid=2
This does not shed new light on the issue but anyway.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2007 07:09 AM
11-27-2007 07:09 AM
Re: root extend
http://www.met.ca/itrc/index.php?option=com_content&task=view&id=89&Itemid=2
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2007 07:20 AM
11-27-2007 07:20 AM
Re: root extend
Also, here was I believe the first post I did on how to extend root live:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1081666
Rgds....Geoff