Operating System - HP-UX
1827286 Members
3760 Online
109717 Solutions
New Discussion

Re: var missing after new install

 
joe_91
Super Advisor

var missing after new install

/var is not found as a filesystem after fresh 11.0 install. I am sure i gave the size of /var when installing. But anyway i do not have /var as a filesystem. what should i do now?

Thanks

Joe
10 REPLIES 10
twang
Honored Contributor

Re: var missing after new install

- create a new LV with propose size the /var will be
- logon to single user mode
- mount the new-created LV using a temp mount point such as /tmpvar
- copy all files on /var to the /tmpvar
- rename the /var directory on /
- edit/add the /etc/fstab to reflect the change you want to do, in this case you want to automount the /var
- reboot the server
A. Clay Stephenson
Acclaimed Contributor

Re: var missing after new install

Do you have a var directory under /? If so is it populated? If that is the case then you need to make a new LVOL and create a filesystem on it and mount it as /tmpvar. You then copy all the files under /var to this location. Next create an fstab for this new filesystem as /var. You should then come up in single-user mode and mv /var /var.orig; and then mv /tmpvar /var.
Now bring the system up multi-user. When you are satified, you can then remove the files under /var.orig to reclaim the space and then rm the directory.
If it ain't broke, I can fix that.
joe_91
Super Advisor

Re: var missing after new install

It is strange i find only adm and stm and sw directory under var. what are my options?

Thanks

Joe
joe_91
Super Advisor

Re: var missing after new install

Can i copy the /var directory from another 11.0 Machine? i think i used the same CD to install in that machine also?

Thanks

Joe
twang
Honored Contributor

Re: var missing after new install

If the machines are same model & config, and both of the machines are new installed.
I think you may use ignite-ux to make a backup of vg00. And use the backup tape to rebuild the OS on the problem box.
Do you install ignite-ux, download it here:
http://www.software.hp.com/products/IUX/index.html
twang
Honored Contributor

Re: var missing after new install

One more thing, if you use ignite-ux backup tape to rebuild OS, remember to change the hostname and ip address after recovery using set_parms. Hope it can helps.
Steven E. Protter
Exalted Contributor

Re: var missing after new install

You can copy a /var directory from another machine.

After you create one, give it space and get it into /etc/fstab so it always mounts.

I've never had a system install without a /var filesystem.

I think the problem with copying is you'll get a sd/ux database that does not reflect the patches already on the system.

The best thing to do is to redo the system installation.

Since you are starting, consider 11i v1 instead of 11.00 if your applications support it. Support will last longer in that case. Patches, lots of benefits.

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
Patrick Wallek
Honored Contributor

Re: var missing after new install

Check /etc/fstab and see if there is a /var mount point defined there. If so issue a 'mount /var' command and see if it works. If it is not there then something is definitely not right with the install.

If this machine is not critical, I would try reinstalling and see if it gets created this time.
Gerhard Roets
Esteemed Contributor

Re: var missing after new install

Hi Joe

If you copied /etc/fstab back. It should point to /dev/vg00/lvol7 for /var

HTH
Gerhard
Gerhard Roets
Esteemed Contributor

Re: var missing after new install

Hi Joe

You should obviously copy those files under the var directory before the mount to a temporary space and then onto the mounted var. Be sure to keep you permissions and ownership correct.

All of this should be done in single user mode.

This might work no garuantees by definition.


Regards
Gerhard