- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Extending root filesystem
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
тАО07-09-2008 12:41 AM
тАО07-09-2008 12:41 AM
Re: Extending root filesystem
Thanks for ur reply
yes /tmp2 is not usable but have some tmp files in it
and there is no mirror of the disk only single disk is in the VG00 now after this activity we will go for mirroring customer is buying the disk for mirroing
now plz confirm
first i will creat an new lvol
2ndly i will create file system on it
then i will unmount the /tmp2
and will mount it to the new lvol for this i do not need to take copy off the tmp2 contents coz i should have tape backup of vg00
then i will remove the lvol4 and extend the root file system
these steps are ok
??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2008 12:42 AM
тАО07-09-2008 12:42 AM
Re: Extending root filesystem
The root partition, /dev/vg00/lvol3, must consist of physically continous extents. The first new extent must therefore have the first number that is bigger than the last extent of the existing volume used for /dev/vg00/lvol3. An example for a lvol3 root file system:
# lvdisplay -v /dev/vg00/lvol3
................
Ignore this and look only at the last line....
................
00023 /dev/dsk/c1t2d0 00317 current /dev/dsk/c1t0d0 00317 current
00024 /dev/dsk/c1t2d0 00318 current /dev/dsk/c1t0d0 00318 current
The last extent used in the example was no. 24, and if this root-lvol should ever be extended, the first extension would have to be no. 25.
The reason why Ivan suggests that you break /tmp2 is its name, /dev/vg00/vol4, which suggests that /tmp2 uses the first (and following) needed extents for extending /dev/vg00/lvol3 - but you have to make sure first yourself that this is actually the case.
And plenty of backups are always nice to have...
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2008 01:00 AM
тАО07-09-2008 01:00 AM
Re: Extending root filesystem
See example:
#lvdisplay -v /dev/vg00/lvol3 | grep current | tail -2
00034 /dev/dsk/c2t1d0s2 01346 current /dev/dsk/c2t0d0s2 01346 current
00035 /dev/dsk/c2t1d0s2 01347 current /dev/dsk/c2t0d0s2 01347 current
#lvdisplay -v /dev/vg00/lvol4 | grep current | head -2
00000 /dev/dsk/c2t1d0s2 01348 current /dev/dsk/c2t0d0s2 01348 current
00001 /dev/dsk/c2t1d0s2 01349 current /dev/dsk/c2t0d0s2 01349 current
After that you can do the tricks with /tmp2.
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2008 01:06 AM
тАО07-09-2008 01:06 AM
Re: Extending root filesystem
Basic point.
root fs is not for file storage. There should be folders and mounted file systems and some configuration files such as found in /etc
Root FS can not be extended because HP-UX requires it to be contiguous.
So I suggest:
1) Move files that don't belong. Make sure there are not files in folders that have mounted filesystems as they will be invisible but still take up space.
2) do an Ignite make_tape_recovery, boot off it recover the system, intervening to set a large root fs size if you must. This is the only supported way of "extending" the root fs.
1 is way easier than 2.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-09-2008 06:09 AM
тАО07-09-2008 06:09 AM
Re: Extending root filesystem
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 143360 68099 70560 49% /
/dev/vg00/lvol1 83733 34750 40609 46% /stand
/dev/vg04/lvol2 2560000 2253953 296703 88% /www
/dev/vg00/lvol8 1433600 1168366 251855 82% /var
/dev/vg00/lvol12 2048000 870765 1107288 44% /var/adm/sw
/dev/vg00/lvol6 2097152 1541468 521400 75% /usr
/dev/vg04/lvol9 38912000 35283643 3402831 91% /usr/pvcs
/dev/vg01/lvol6 3145728 2133724 948769 69% /usr/local/oracle7
/dev/vg01/lvol8 3145728 2447493 672684 78% /usr/local/oracle
/dev/vg02/lvol1 8388608 2909188 5313594 35% /u21
/dev/vg04/lvol12 5120000 13862 4798475 0% /u03
/dev/vg06/lvol1 5238784 4574889 622422 88% /u02
/dev/vg04/lvol3 25600000 24038886 1512400 94% /u01
/dev/vg00/lvol5 1536000 10390 1435676 1% /tmp
/dev/vg08/lvol1 19968000 14153584 5723592 71% /software
/dev/vg02/lvol2 4096000 1025985 2878238 26% /rateload
/dev/vg05/lvol1 10485760 6433054 3972996 62% /oralogs
/dev/vg04/lvol1 103424000 81796408 21289720 79% /oradata4
/dev/vg04/lvol4 10240000 5597054 4499070 55% /oradata3
/dev/vg04/lvol5 71680000 59354856 12256096 83% /oradata2
/dev/vg04/lvol6 90112000 55861016 33986896 62% /oradata1
/dev/vg00/lvol7 2097152 1600426 467315 77% /opt
/dev/vg05/lolv3 3145728 1861266 1204626 61% /opt/tug
/dev/vg04/lvol7 5242880 4509129 689416 87% /opt/rc
/dev/vg01/lvol9 2097152 1618144 449140 78% /opt/pvcs/tracker/backup
/dev/vg04/lvol8 3145728 2659218 456135 85% /opt/mtmc
/dev/vg04/lvol13 1048576 502884 511626 50% /opt/gentran
/dev/vg02/lvol4 512000 66054 418077 14% /opt/fax
/dev/vg05/lvol4 1048576 328078 675506 33% /opt/ess
/dev/vg00/lvol4 3072000 1802681 1196319 60% /home
/dev/vg05/lvol2 1048576 43929 941882 4% /history
/dev/vg02/lvol3 512000 58125 430490 12% /edi315
/dev/vg07/lvol1 52416512 28867672 23375424 55% /backup
Point is. Find what is writing to / and stop it immediately. Move what needs moved. I would not boot from tape and extend unless it is a last option, simply due to potential issues that can come from it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2008 01:30 AM
тАО07-10-2008 01:30 AM
Re: Extending root filesystem
Using an ignite will allow you to resize your filesystem to your current needs and keeping in mind of any future requirements.
To Ignite I used = make_tape_recovery -x inc_entite=vg00 -I -v -a /dev/rmt/0mn
hope this helps...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2008 01:48 AM
тАО07-10-2008 01:48 AM
Re: Extending root filesystem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-10-2008 02:14 AM
тАО07-10-2008 02:14 AM
Re: Extending root filesystem
just checkout this forum link. follow the steps carefully.
http://forums12.itrc.hp.com/service/forums/questionanswer.do?threadId=940172
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2008 01:21 AM
тАО07-18-2008 01:21 AM
Re: Extending root filesystem
A lot of inventive ways to increase the rootfilesystem, but doing it via ignite is still the only HP recommended way for increasing the rootfilesystem.
Also all this "alternative" are limited in some way or another, some will work only for 1 volumemanager, some will only work with a particular HP-UX OS version, some require additionals disks/diskspace etc.., while ignite will work with any volumemanager, with any HP-UX OS and doesnt require extra disks/more diskspace, beyond what you need extra for the increase of the rootfilesystem.
And as you do it with ignite, you are sure that you have taken a backup, that the system will be able to boot afterwards and you have done a disaster/recovery exercise all in one go. ;)
Greetz,
Chris
PS.
to create a (tape) ignite backup :
make_tape_recovery -v -x inc_entire=vg00 -a _tapedevicefile_
to create youre bigger root filesystem.
boot from the ignite backup tape.. select install HP-UX OS, adapt the rootfilesystem to the correct size, start the ignite restore.. done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-23-2008 11:13 PM
тАО07-23-2008 11:13 PM
Re: Extending root filesystem
thanks for your prompt response and support
i solved the problem using iginte
thanks Any ways
Regards
Masood Asif