AIX mount error "A file or directory in the path name does not exist."
AIX mount error "A file or directory in the path name does not exist."
(OP)
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
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
RE: AIX mount error "A file or directory in the path name does not exist."
mount: 0506-324 Cannot mount /dev/fslv00 on /u20: A file or directory in the path name does not exist.
RE: AIX mount error "A file or directory in the path name does not exist."
RE: AIX mount error "A file or directory in the path name does not exist."
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
RE: AIX mount error "A file or directory in the path name does not 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.
RE: AIX mount error "A file or directory in the path name does not exist."
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.
RE: AIX mount error "A file or directory in the path name does not exist."