- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to increase root filesystem size.
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
Discussions
Discussions
Forums
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
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
тАО03-22-2006 06:15 PM
тАО03-22-2006 06:15 PM
I have installed HP-UX on a machine. But, by mistake i made root (/) very small about 500 MB.
I have about 9GB unallocated.
Is there any way to increase the size of the root filesystem.
I need to unmount the filesystem which we want to increase, but I can not unmount root.
So pl. can any one help me ?
I do not want to reinstall OS again, Is there any way around?
Thanks & regards.
Prasad
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2006 06:24 PM
тАО03-22-2006 06:24 PM
Re: How to increase root filesystem size.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2006 06:55 PM
тАО03-22-2006 06:55 PM
Re: How to increase root filesystem size.
To increase root (/), only way around is to Re-ignite the system. You can't extend it by anyother way.
But, 500MB will be sufficient unless or untill you dont start cluttering /.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2006 06:57 PM
тАО03-22-2006 06:57 PM
Re: How to increase root filesystem size.
Or else allocated that space to new lovl. Create file system and use that for operation.
Or extend some other file system like /root or other to occupy that space.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2006 06:59 PM - last edited on тАО02-11-2024 11:01 PM by Sunitha_Mod
тАО03-22-2006 06:59 PM - last edited on тАО02-11-2024 11:01 PM by Sunitha_Mod
Re: How to increase root filesystem size.
Hi Prasad,
This topic has been discussed in the past. You can take a look at these threads for more information, http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=865252http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=97821
More generic, http://www1.itrc.hp.com/service/james/search.do?todo=search&searchtext=extend+root+file+system&from=forums&origin=0&submit.x=0&wpa=forums1.itrc.hp.com%3A80&submit.y=0&searchcategory=ALL&hpl=1&searchcriteria=allwords&rn=25&source=7000&chkServStor=on&presort=rank&esc=us.support.itrc.hp.com&admit=-682735245+1143100669037+28353475
-Arun
[Moderator edit: The above links are no longer valid.]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2006 08:47 PM
тАО03-22-2006 08:47 PM
Re: How to increase root filesystem size.
I tried this.
bash-2.02# vgdisplay -v vg00
--- Physical volumes ---
PV Name /dev/dsk/c2t0d0
PV Status available
Total PE 4340
Free PE 1135
Autoswitch On
bash-2.02# ioscan -fnC disk
disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE TEAC DV-28E-C
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 36 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 36.4GMAU3036NC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 40 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 36.4GMAU3036NC
I have created VG on
/dev/dsk/c2t0d0
I do have on more disk /dev/dsk/c2t0d0
Now, can I do this
1. Mirror c2t0d0 to c2t0d0
2. while mirroring increase root volume
3. make c2t0d0 as my new primary
Pl send replay, i need help.
Thanks a lot.
Thanks & regards.
Prasad.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2006 09:00 PM - last edited on тАО02-11-2024 11:02 PM by Sunitha_Mod
тАО03-22-2006 09:00 PM - last edited on тАО02-11-2024 11:02 PM by Sunitha_Mod
Re: How to increase root filesystem size.
Prasad,
Read Bhavin's reply in this thread, http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=785327
-Arun
[Moderator edit: The above link is no longer valid.]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2006 12:59 AM
тАО03-23-2006 12:59 AM
Re: How to increase root filesystem size.
hp is recommending only one option for this purpose ,take the ignite backup using make_tape_recovery command and make the boot tape ,reboot the machine and boot it from this recovery tape while restoring please go through advanced option you can modify any file system under volume group vg00 and restore the entire os ,every thing will fine
regards
BAIJU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2006 02:19 AM
тАО03-23-2006 02:19 AM
SolutionHowever.....when you look at the way a standard vg00 volume group is laid out by HP, extending the root filesystem is not particularly difficult from a technical standpoint.
HP-UX requires that /stand, your swap volume and root (/), all be contiguous, with /stand needing to be on the first logical volume on the disk.
/dev/vg00/lvol1 --> /stand
/dev/vg00/lvol2 --> swap
/dev/vg00/lvol3 --> /
/dev/vg00/lvol4 --> /tmp
A typical server configuration then has /tmp mounted on the 4th logical volume.
$pvdisplay -v /dev/dsk/c1t2d0
01146 current /dev/vg00/lvol3 00047
01147 current /dev/vg00/lvol3 00048
01148 current /dev/vg00/lvol3 00049
01149 current /dev/vg00/lvol4 00000
01150 current /dev/vg00/lvol4 00001
01151 current /dev/vg00/lvol4 00002
01152 current /dev/vg00/lvol4 00003
There are no requirements for /tmp to be on a contiguous volume (or even needing it to exist!). So, to extend the root logical volume, just create a new volume for /tmp (e.g. /dev/vg00/lvoltmp), and move any data from the old volume to the new one. You are then free to remove /dev/vg00/lvol4. Then when issuing the lvextend command for lvol3, since the free extents are allocated based on their order on disk, the newly freed extents get used up...
$ pvdisplay -v /dev/dsk/c1t2d0
01146 current /dev/vg00/lvol3 00047
01147 current /dev/vg00/lvol3 00048
01148 current /dev/vg00/lvol3 00049
01149 current /dev/vg00/lvol3 00050
01150 current /dev/vg00/lvol3 00051
01151 current /dev/vg00/lvol3 00052
01152 current /dev/vg00/lvol3 00053
So, the typical process would be as follows (your logical volume sizes may vary...)
1) Backup /tmp
2) Un-mirror all vg00 logical volumes
3) Reboot server to single-user mode
4) lvremove /dev/vg00/lvol4
5) lvextend -L 300m /dev/vg00/lvol3
6) lvcreate -n lvol4 vg00
7) lvextend -L 2048m /dev/vg00/lvol4
8) newfs -F vxfs -o largefiles /dev/vg00/rlvol4
9) init 1
10) fsadm -F vxfs -b $((300*1024)) /
11) init 3
12) re-mirror vg00 logical volumes
On step 10, you may need to use the extendfs command instead, if you do not have OnlineJFS.
I would recommend working through this on a box you can "destroy" and rebuild at will, in order to familiarize yourself with all the commands involved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2006 02:37 AM
тАО03-23-2006 02:37 AM
Re: How to increase root filesystem size.
Before starting any fixes, analyze the directories:
du -kx / | sort -rn | head
The 3 largest directories will be / (of course), /sbin and /etc. The units of measure are Kbytes (the -k option). Here are a series of possible problems and fixes:
1. /dev is large. /dev should be 15k to 30k but if it is larger, there are misplaced files in the directory. Since /dev ONLY contains directories and device files, any ordinary files must be moved or removed. The most common problem is mispelling a device file for a backup program like tar:
tar -cvf /dev/rmt/om /
tar -cvf /dev/rmt/0m /
See the subtle spelling error (om vs. 0m)? The spelling error will create massively large file called /dev/rmt/om. To find all the bad files:
find /dev -type f
If anything is shown, it must be removed.
2. Any directory that is more than 10-20megs
(10000+) that is not in /sbin or /etc is suspect. This can be caused by bad install programs or logfiles that should never be in /. Move these directories to more appropriate directories (applications = /opt, logfiles = /var/adm)
3. If the first line in the du listing (/) is much larger than the next largest directory, then the / directory is full of junk. Find the biggest files like this:
ll | sort -rnk5 | head
The default location for root's home is /, a very bad default. All sysadmins will agree that always defaulting to / when root logs in is very risky. So root-droppings (tempfiles, test data, etc) will fill up the / directory. A well-managed / directory will have NO files! It will only contain directories, some of which are mountpoints.
One of the other problems in making / bigger is that it will never be large enough unless you manage the volume. Mistakes should be corrected rather than just making more disk space.
Bill Hassell, sysadmin