Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AIX mount error "A file or directory in the path name does not exist."

Status
Not open for further replies.

ObibiniKwasi

IS-IT--Management
Nov 16, 2012
5
CA
Hello people,
I successfully created a new volume using "smitty mklv" command with the name u20. Running the "lslv u20" command shows the following:

# lslv u20
LOGICAL VOLUME: u20 VOLUME GROUP: altbckupandexpo
LV IDENTIFIER: 00c9fa2000004c000000013b0aa4ffc0.1 PERMISSION: read/write
VG STATE: active/complete LV STATE: closed/syncd
TYPE: jfs2 WRITE VERIFY: off
MAX LPs: 1021 PP SIZE: 1024 megabyte(s)
COPIES: 1 SCHED POLICY: parallel
LPs: 1021 PPs: 1021
STALE PPs: 0 BB POLICY: relocatable
INTER-POLICY: minimum RELOCATABLE: yes
INTRA-POLICY: middle UPPER BOUND: 16
MOUNT POINT: N/A LABEL: /u20
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes
Serialize IO ?: NO


How can I specify a mount point for this volume in order to successfully mount it?


looking forward to your suggestions... thanks
 
when I run the "mount /u20" command I the following:
mount: 0506-324 Cannot mount /dev/fslv00 on /u20: A file or directory in the path name does not exist.
 
Obi,
What are you doing, that is wrong, you are trying to mount a LV on another LV!
/dev/fslv00 is a LV which might have a mount point and u20 is another LV.

See the output of your lslv command
MOUNT POINT: N/A --> which means there is no mount point defined, so how could you read it?

Here is what you do,
You created a LV, now you need a mount point in order to read/write in that LV.

Since you are done with mklv command. Now you have to create a file system for the LV.
Select a file system name that you feel is relevant, you can also select u20 as your FS

crfs -v jfs2 -d u02 -m /<FileSystem name> -Ay
I am selecting FS type as jfs2 and -Ay= automatic mount is yes.

So # crfs -v jfs2 -d u02 -m /u20 -Ay


SARFARAZ AHMED SYED,
Sr. Systems Engineer
 
iggsterman, pardon me (I am new to AIX) if the folder exists, where would it be? in other words, how can I verify that it actually exist?


AIXLogician, when I run "crfs -v jfs2 -d u02 -m /u20 -Ay" command, I get the following

crfs: 0506-909 /u20 file system already exists.


Thanks for all your support so far.
 
You just need to verify:
ls -l /u20
If you have to create it run:
mkdir /u20

Better yet, just do this:
smitty crjfs2lvstd
This will bring you to the menu to add a filesystem to a previously defined logical volume.

For the future, do not create an LV if your sole purpose is to create a filesystem. Just create the filesystems and it will perform mklv on the background.

Hope this helps.
 
Thanks a lot for all your help... I successfully mounted my LUN... Oh, and thanks a lot for the tip. I'll make sure I remember that next time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top