Operating System - HP-UX
1851368 Members
2981 Online
104058 Solutions
New Discussion

resizing /usr without online jfs

 
Ravi Vyas
Occasional Contributor

resizing /usr without online jfs

Hi,
I need some space on /usr for installing mySQL. Currently, i have 704 MB on /usr
I allocated (using lvextend) 1200 MB for the logical volume on which /usr is mounted... forgetting the fact that it's pretty difficult to take /usr offline, I do not have vxfs, etc.
Is there a way out (single-user mode, copying the required files etc)? Please help. And please don't tell me to reinstall the core, it's too much of a headache...
8 REPLIES 8
DCE
Honored Contributor

Re: resizing /usr without online jfs


You could try single user mode

other options
make an mount point under /usr (/usr/myspace??)

make an ignite image of the system, and boot off of the tape and do an interactive restore - this will allow you to change the size of any/all mount points
A. Clay Stephenson
Acclaimed Contributor

Re: resizing /usr without online jfs

Since you have already run lvextend the rest is rather simple. Shutdown and bring the system up in single user mode by interrupting the normal boot.

At the firmware monitor/BCH prompt, enter:
BOOT PRI
Interact with ISL/IPL? Y
At the ISL/IPL prompt, enter
hpux -is

This will bring you up in single-user mode with only / and /stand mount. You will execute /sbin/extendfs to extend the /usr filesystem. Man extendfs sould you need to before shutting down as multi-user if you need to examine the options.

After running extendfs, shutdown and allow the box to boot up normally.
If it ain't broke, I can fix that.
Laurent Menase
Honored Contributor

Re: resizing /usr without online jfs

singe user is a way,

else the old fashion
the other is if you have the new size you need available.
Then you create a new lvol, then mount it to some /tmp/usr2
and then copy from one to the other
with some cd /usr ;find . | cpio -pd /tmp/usr2
modify fstab to point to the new lvol for usr,
reboot

Steven E. Protter
Exalted Contributor

Re: resizing /usr without online jfs

Shalom,

I don't know where you are getting mysql, but the version prepared by HP as part of Internet Express installs in the /opt filesystem.

Otherwise single user mode is the only way out of this situation.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jollyjet
Valued Contributor

Re: resizing /usr without online jfs

Ravi,

take a ignite backup and boot your system with single user mode and extend your file system
extendfs -F vxfs /dev/vg00/rlovl

then reboot your system.
Raj D.
Honored Contributor

Re: resizing /usr without online jfs

Ravi,
You have 2 option,

1. Try Single User--> extendfs /usr
2. or Ignite backup , while resoring specify a diffenrelt size for /usr.


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: resizing /usr without online jfs

Ravi,
You have 2 option,

1. Try Single User--> extendfs /usr
2. or Ignite backup , while resoring specify a different size for /usr.


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Ravi Vyas
Occasional Contributor

Re: resizing /usr without online jfs

First of all, thanks for all the replies. However, my problem seems to be quite deep.

1. The OS is HP-UX 11.00 (2-User Degrade).
2. Online JFS is absent. (I have the CD, but no codeword.)
3. Ignite-UX has not been installed. I have downloaded the depot, but I'm not sure if it needs to install into /, which is quite small (only 144 MB). The root filesystem can't be touched.
4. I need to install either Oracle or mySQL. I have the binaries for Oracle and also the recomended patches.

So, my idea is to get Oracle installed and working. I know it is not easy. I have the CDs for HP-UX 11i, but I don't have the codeword or customer ID or anything - just the original CDs in their packing. Can't even access it because I don't have the codeword...

Please help.