General
cancel
Showing results for 
Search instead for 
Did you mean: 

How to remount and umount the directory

SOLVED
Go to solution
DnD_1
Regular Advisor

How to remount and umount the directory

hi guys,

i have the following problem.

on our directory /home, it supposed to connect under to /data

charging1:/home$df -k .
/data (/dev/vg01/lvol1 ) : 70591984 total allocated Kb
43190208 free allocated Kb
27401776 used allocated Kb
38 % allocation used
charging1:/home$

but apparently in other server, it didnt

charging2:/home$df -k .

/ (/dev/vg00/lvol3 ) : 147072 total allocated Kb
6654 free allocated Kb
140418 used allocated Kb
95 % allocation used
charging2:/home$

anyone can tell how can i do that ? to connect the /home under /data ? since i cant extend the spaces in /home..

thanks !!

4 REPLIES
Ninad_1
Honored Contributor
Solution

Re: How to remount and umount the directory

Hi

Can you post the output of
ls -ld /home on both the servers.
Is /home a soft link to /data on your server charging1 ?

Regards,
Ninad
DnD_1
Regular Advisor

Re: How to remount and umount the directory

Hi ninad,

For charging1,

charging1:/home$ll /
total 8030
-rw-r--r-- 1 root sys 0 Jun 11 2002 0
drwxr-xr-x 2 root sys 96 Jan 5 2005 BackupStore
drwxrwxrwx 3 root sys 96 Mar 29 2006 DATA-PROTECTOR
drwx------ 2 root sys 96 Oct 8 2003 Mail
drwxr-xr-x 2 root sys 96 Mar 30 2001 SD_CDROM
drwxr-x--- 2 root sys 96 Sep 5 2007 baba_programs
-rw-r--r-- 1 root sys 446480 Oct 19 2005 bhdetect
lr-xr-xr-t 1 root sys 8 Jun 11 2002 bin -> /usr/bin
-rw-r--r-- 1 mduser sys 1525 Oct 20 2005 copylogfiles.sh
-rw-r--r-- 1 mduser sys 1616 Oct 20 2005 copyoutput.sh
-rw------- 1 root sys 1631916 Jul 19 00:37 core
-rw-r--r-- 1 root sys 84 Aug 11 2003 cron.root
drwxrwxr-x 5 root users 8192 Jul 2 09:46 data
dr-xr-xr-x 18 bin bin 5120 Oct 10 10:28 dev
dr-xr-xr-x 29 bin bin 6144 Jul 31 11:24 etc
lrwxr-xr-x 1 root sys 10 Oct 28 2003 home -> /data/home
-r--r--r-- 1 root sys 33798 Apr 3 2003 hp-unix
-rw-rw-rw- 1 root sys 12023 Sep 19 2002 hpinvent
lr-xr-xr-t 1 root sys 8 Jun 11 2002 lib -> /usr/lib
drwxr-xr-x 2 root root 96 Nov 15 2000 lost+found
-rw-r--r-- 1 root sys 572 Oct 8 2003 mbox
drwxr-xr-x 2 root sys 96 Apr 23 2002 net
-rw-r--r-- 1 root sys 26685 Oct 31 2002 nettl.trace
-rw-rw-rw- 1 root root 11432 Jan 12 2007 null
drwxr-xr-x 2 root sys 96 Oct 28 2003 old.home
dr-xr-xr-x 37 bin bin 1024 Jul 24 10:17 opt
dr-xr-xr-x 12 bin bin 3072 Jun 11 2002 sbin
dr-xr-xr-x 10 bin bin 1024 Jul 5 2006 stand
drwxr-xr-x 5 mduser users 8192 Nov 7 2007 storage
-rw-r----- 1 root sys 6018 Sep 19 2002 temp
drwxrwxrwx 6 bin bin 1527808 Oct 10 10:55 tmp
dr-xr-xr-x 2 root root 96 Nov 15 2000 tmp_mnt
-rw-r--r-- 1 root sys 360672 Oct 19 2005 traffic
dr-xr-xr-x 24 bin bin 1024 Jun 11 2002 usr
dr-xr-xr-x 27 bin bin 1024 Dec 8 2005 var


and charging2

charging2:/home/mduser$ll /
total 928
lrwxr-xr-x 1 root sys 17 Oct 7 09:09 -> /d_cfg_mnt_sb61/.
-r-xr-xr-x 1 bin bin 20480 Jan 19 2001 %monitor_bpr
drwx------ 2 root sys 96 Oct 15 2003 Mail
drwxr-xr-x 2 root sys 96 Mar 30 2001 SD_CDROM
drwxr-xr-x 3 root sys 96 Dec 19 2002 backup
lrwxr-xr-x 1 root sys 8 Oct 7 09:14 bin -> /usr/bin
drwxr-xr-x 2 root sys 96 Oct 16 2002 cdr
-r-xr-xr-x 1 bin bin 421888 Jan 19 2001 configure3
drwxr-xr-x 6 root root 96 Jul 31 12:37 data
dr-xr-xr-x 17 bin bin 5120 Oct 9 14:05 dev
dr-xr-xr-x 29 bin bin 6144 Oct 10 10:05 etc
drwxr-xr-x 8 root root 1024 Oct 7 10:31 home
lrwxr-xr-x 1 root sys 8 Oct 7 09:14 lib -> /usr/lib
drwxr-xr-x 2 root root 96 Nov 15 2000 lost+found
-rw-r--r-- 1 root sys 0 Dec 19 2002 lvol1
drwxr-xr-x 2 root sys 96 Jul 26 2001 net
dr-xr-xr-x 42 bin bin 4096 Jul 31 11:48 opt
dr-xr-xr-x 12 bin bin 3072 Jul 18 17:03 sbin
dr-xr-xr-x 10 bin bin 1024 Oct 9 14:04 stand
drwxr-xr-x 5 root root 8192 Jul 31 13:09 storage
drwxrwxrwx 7 bin bin 2048 Oct 10 10:54 tmp
dr-xr-xr-x 2 root root 96 Nov 15 2000 tmp_mnt
dr-xr-xr-x 25 bin bin 1024 Oct 16 2002 usr
dr-xr-xr-x 25 bin bin 1024 Jul 18 17:03 var

Ninad_1
Honored Contributor

Re: How to remount and umount the directory

Hi,

As I suspected and mentioned earlier - your /home is a soft link in your server charging1
the entry for /home shows as
/home -> /data

whereas in your server charging2 /home a normal directory.
What you can do is - on charging2 - if /home is empty do
rmdir /home
ln -s /data /home

This will create /home as a soft link to /data.
If /home is not empty - you may want to move the contents/backup and then delte it forcibly as
rm -rf /home
Then create the soft link as
ln -s /data /home


Regards,
Ninad
DnD_1
Regular Advisor

Re: How to remount and umount the directory

hi ninad,

thanks !!!!!!! you're the best !!!