1752794 Members
6303 Online
108789 Solutions
New Discussion юеВ

Transfer file system

 
SOLVED
Go to solution
enrico.nic
Regular Advisor

Transfer file system

Hi

I have copied a file system from /opt to /opt2 (/opt2 resides on a new disk, and a new volume group). Now I wonder to mount on /opt the new disk, and on /opt2 the old partition.
Should I do this directly on /etc/fstab, or should I make something on volume groups ?

Thank you for your help

Enrico
7 REPLIES 7
Michael Schulte zur Sur
Honored Contributor

Re: Transfer file system

Hi,

Are we talking about TRU64 with LSM or HP-UX with LVM?

greetings,

Michael
enrico.nic
Regular Advisor

Re: Transfer file system

HP-UX with LVM, here is an output of the 2 filesystems:
# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg02/lvol1 4190208 4109306 75903 98% /opt2
/dev/vg00/lvol11 2854912 2056970 748832 73% /opt


Sorry for the un-specification

Enrico
Michael Schulte zur Sur
Honored Contributor

Re: Transfer file system

I thought so.
This is the TRU64 forum.

Michael
melvyn burnard
Honored Contributor
Solution

Re: Transfer file system

simply make the following changes
from
Filesystem kbytes used avail %used Mounted on
/dev/vg02/lvol1 4190208 4109306 75903 98% /opt2
/dev/vg00/lvol11 2854912 2056970 748832 73% /opt

to
Filesystem kbytes used avail %used Mounted on
/dev/vg02/lvol1 4190208 4109306 75903 98% /opt
/dev/vg00/lvol11 2854912 2056970 748832 73% /opt2
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Leif Halvarsson_2
Honored Contributor

Re: Transfer file system

Hi,
Change he fstab and reboot the system (normally you can't unmount /opt if the system is up).
Pete Randall
Outstanding Contributor

Re: Transfer file system

Enrico,

Simply unmount them (if you can unmount /opt without having to go to single user mode, that is) and remount them the way you want. Or, since you're probably going to have to reboot anyway, edit /etc/fstab, switch the two mount points and reboot.


Pete

Pete
enrico.nic
Regular Advisor

Re: Transfer file system

Hi

Sorry for having posted in the wrong place: the strange thing is that the already selected link in my browser is that of HP-UX system administration, not the Tru64 system administration.

Changing the mount points in /etc/fstab solved the problem.

Many thanks

Enrico