Operating System - HP-UX
1753774 Members
6788 Online
108799 Solutions
New Discussion юеВ

Re: how to move the some contents in /opt/vertex to a separate logical volume.

 
SOLVED
Go to solution
Narendra Uttekar
Regular Advisor

how to move the some contents in /opt/vertex to a separate logical volume.

Hi,
I am running out of space on /opt mount point...I don't have any enough space left on VG00 to etxend the file system. But i had created the other logical volume. And now i want to move the contents of /opt/vertex to this new logical volume. So that when i try to access the /opt/vertex it should point to new logical volume not to VG00.
Please tell me the steps how to proceed...

Thanks,
Narendra
3 REPLIES 3
Pete Randall
Outstanding Contributor

Re: how to move the some contents in /opt/vertex to a separate logical volume.

1. mkdir /some_other_place/vertex
2. mv /opt/vertext /some_other_place/vertex
3. ln -s /some_other_place/vertext /opt/vertex


Pete

Pete
johnsonpk
Honored Contributor
Solution

Re: how to move the some contents in /opt/vertex to a separate logical volume.

Hi Narendra,

here is the steps

1)first create a tar ball of /opt/vertex
cd /opt/vertex
tar -cvf /var/adm/crash/vertex_bkup.tar *

(assuming /var/adm/crash has enough free space)
2)rename the directory
mv /opt/vertex /opt/vertex.old
3)create a new vertex directory
#mkdir /opt/vertex
4)mount the newly created lvol on /opt/vertex
(assuming you have done with the lv creation)
mount /dev/vg01/vertex_lvol /opt/vertex
5)give the permission and ownership as same
as the old vertex directory
#chown user:group /opt/vertex
#chmod /opt/vertex
6)untar the vertex backup on to new filesytem
#cd /opt/vertex
#tar -xvf /var/adm/crash/vertex_bkup.tar
7)confirm the access and files
8)delete the old vertex dir
rm -R /opt/vertex.old
9)edit the fstab with new lvol info
#vi /etc/fstab
/dev/vg01/vertex_lvol /opt/vertex vxfs defaults 02

U are done

Thanks!!
Johnson
Narendra Uttekar
Regular Advisor

Re: how to move the some contents in /opt/vertex to a separate logical volume.

Thanks for the solution.