Operating System - HP-UX
1833827 Members
2082 Online
110063 Solutions
New Discussion

Re: mounting and umount filesystems

 
SOLVED
Go to solution
Paul Clark_9
Advisor

mounting and umount filesystems

I have 2 sub directories on mount points
/opt/ai/live
/opt/ai/test
and /opt/ai on a mounted directory.

I umount'ed /opt/ai/live and /opt/ai/test
then umount'ed /opt/ai

I then removed mount point /opt/ai
and tried to re mount /opt/ai/live and /opt/ai/test, but I get this message

"mount: /opt/ai/test: No such file or directory"

any ideas how I can re-mount the filesystem/logical volume I have before.

Really need help on this one guys
6 REPLIES 6
Steven E. Protter
Exalted Contributor
Solution

Re: mounting and umount filesystems

Shalom Paul,

To mount /opt/ai/live

The path must exist.

Part of the process of creating the mount point is:

mkdir /opt/ai/live
mkdir /opt/ai/test

Retry the mount.

It will work now.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Mauro Gatti
Valued Contributor

Re: mounting and umount filesystems

Did you try
mkdir -p /opt/ai/live
mkdir -p /opt/ai/test
mount /your_lv_1 /opt/ai/test
mount /your_lv_2 /opt/ai/live ?

RGDS
Mauro

Ubi maior, minor cessat!
Robert-Jan Goossens_1
Honored Contributor

Re: mounting and umount filesystems

did you create mountpoints for /opt/ai/live and /opt/ai/test ?

mkdir /opt/ai/live
mkdir /opt/ai/test

try to remount them again.

Best regards,
Robert-Jan
Steven E. Protter
Exalted Contributor

Re: mounting and umount filesystems

Shalom Paul,

To mount /opt/ai/live

The path must exist.

Part of the process of creating the mount point is:

mkdir /opt/ai/live
mkdir /opt/ai/test

Retry the mount.

It will probably work now.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
DCE
Honored Contributor

Re: mounting and umount filesystems

When you created /opt/ai/live and /opt/ai/test, they were created on the lvol for /opt/ai. Once you removed /opt/ai, you also removed the directories for for /opt/ai/tes/and /opt/ai/live.

Since you are now trying to mount them on another logical volume (/opt) you need to recreate the directories /opt/ai/live and /opt/ai/test before you remount them.

A cautionary word - if you remount /opt/ai without first unmounting /opt/ai/test, the /opt/ai/test that appears on the system will be empty - because it will be off of the /opt/ai mount point, not the /opt mount point
Paul Clark_9
Advisor

Re: mounting and umount filesystems

MAny thanks guys, I'll never make that mistake again. School boy error.
You saved my bacon bigtime.

Paul