Operating System - HP-UX
1822743 Members
4136 Online
109645 Solutions
New Discussion юеВ

symbolic link ln or mount??

 
amonamon
Regular Advisor

symbolic link ln or mount??

Hello..
I have my /home dir filled to 95% but other partition other disk

/my/other/disk has only 2% data on it..

how to say from now on when writing anything to /home that would write to /my/other/disk

I tried with symbolic link something..
or can I mount some directory to other on other disk??

Can U help me out with these concepts..

Thanks in advance..
3 REPLIES 3
Court Campbell
Honored Contributor

Re: symbolic link ln or mount??

I would just create another logical volume in a volume group. Then mount that lvol and copy your /home directory data to the new mount point. When you are done you can then umount the new home lvol and umount /home and mount /home to the new lvol. Also make sure to update your /etc/fstab file.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
MarkSyder
Honored Contributor

Re: symbolic link ln or mount??

Is your /home directory used for users' home accounts? If so, you might like to move them to a new lvol on the second disc. E.g. /home/user1 could be a filesystem in its own right, which means when user1 creates a file it does not take up any room in /home.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Sundar_7
Honored Contributor

Re: symbolic link ln or mount??

I am not sure if I understand "can I mount some directory to other on other disk??". But, one parition/LV can only be mounted on one mountpoint at any given time, unless you use the LOFS filesystem type.

If you umount /home and create a symbolic link for /home from /my/other/disk , then ofcourse you will not see the old contents of /home.

Find out who is the user occupying more space in /home and have them perform housekeeping on the directories.

# cd /home
# du -sk * | sort -n

If possible, you should also look in to extending the filesystem. In my opinion, that is the cleanest way to address this problem.
Learn What to do ,How to do and more importantly When to do ?