Operating System - HP-UX
1833038 Members
2290 Online
110049 Solutions
New Discussion

Re: LVM ount point manipulation

 
SOLVED
Go to solution
Kwahae_1
Regular Advisor

LVM ount point manipulation

I need to rename two mount points on two different volume groups. See attached. Is there a command just to rename the moun point tempstuff as tmp or I have to go thru deleting both and recreating the file systems?
5 REPLIES 5
V. Nyga
Honored Contributor
Solution

Re: LVM ount point manipulation

Hi,

you can change the mount points in /etc/fstab and reboot the system.
So 'tempstuff' to 'tmp' and 'tmp to ''.

Volkmar
*** Say 'Thanks' with Kudos ***
melvyn burnard
Honored Contributor

Re: LVM ount point manipulation

mount points have nothign to do with the file systems, theyare just "hooks" or connectors" that you "connect" your file system to.

In your case, you can either do:
umount /tmpstuff
mkdir /
mount /dev// /
e.g. mkdir /newstuff
mount /dev/vg01/lvol1 /newstuff

Then modify the entry in /etc/fstab to reflect the new mount point for the next boot.

OR
just mkdir the new mount point, and modify the /etc/fstab file to refelect the new mopunt point, and wait for the nextsystem boot.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
lawrenzo_1
Super Advisor

Re: LVM ount point manipulation

first of all I would not rename the mountpoint /tmp as the system will use this for some temporary files.

the oratmp logical volume cannot have the same mount point as /tmp because to logical volumes cannot share the same mount point.

what are you trying to achieve?

if you want all oratmp stuff to go into /tmp it may be worth just changeing the /tmpstuff mount point to /tmp/tmpstuff

tar the data in /tmpstuff

unmount /tmpstuff (only can be done if there are no active processes or app is down)

mount /dev/vgxx/oratmp /tmp/tmpstuff

then untar the data into /tmp/tmpstuff

finally edit /etc/fstab so the filesystem will mount during boot.
hello
V. Nyga
Honored Contributor

Re: LVM ount point manipulation

It seems like you want to increase the tmp-directory - by taking a new disk.
As said before it's almost impossible to umount /tmp when the system is running, because there are always files used in /tmp.
So you've to reboot it or at least go into single user mode and unmount /tmp.

HTH
Volkmar
*** Say 'Thanks' with Kudos ***
Kwahae_1
Regular Advisor

Re: LVM ount point manipulation

Thanks all will play with file /etc/fstab and reboot.