1833777 Members
1968 Online
110063 Solutions
New Discussion

Rename Mount Points

 
SOLVED
Go to solution
Jochen Speer
Occasional Contributor

Rename Mount Points

One of my mount points needs to be renamed from /data1 to /data, everything else (logical volume, data etc) can stay the same.
What steps do I need to take?

Thank you very much for your help
2 REPLIES 2
S.K. Chan
Honored Contributor

Re: Rename Mount Points

Assuming /dev/vg01/lvol2 is mounted on /data1 and you want to change that mount point to /data.

# cd /
# umount /data1
# rmdir data1
# mkdir data
# mount /dev/vg01/lvol2 /data
# vi /etc/fstab
==> edit fstab file to reflect the new mount point.
Michael Tully
Honored Contributor
Solution

Re: Rename Mount Points

Hi,

If /dev/vg01/lvol2 is already mounted at /data1
# umount /data1
# mkdir /data
# mount /dev/vg01/lvol2 /data
Change the mount point entry in the /etc/fstab file
Remove the old directory /data (if you choose)

If there are processes stopping you unmounting the existing filesystem, these can be identified using the 'fuser' command

# fuser /dev/vg01/lvol2

~Michael~
Anyone for a Mutiny ?