Article
Problem:
NCP volume creation on OES 2.0 server is failing by giving error as "Volume NCP could not be created, error 22."
Solution:
You will be trying to create a NCP volume which was exiting before assuming you have removed the volume by deleting the path to which it was mounted.
E.G.: run ncpcon volume on the linux console, you will see both NSS and NCP volumes existing on that server. Assume there is a ncp volume by name the NCP existing.
path /ncp/ is mounted to NCP volume. (NCP is a volume name)
remove /ncp/ by running command rm -fr /ncp/
Now, if you run the ncpcon volume command, you will not be able to see NCP under volumes since the mount point is removed.
Since the volume name does not exists in the list, if you try to create a volume with the same name as NCP you will get the above error:
The solution is to remove the volume by running:
ncpcon remove volume <ncp volume name>
command from the linux console. Once it deletes the volume successfully, try to create the same.
Please see the example for detailed info.
Example:
systst-ts-164:/ # ncpcon volume
... Executing " volume"
Mounted Volumes
SYS
NCPVOL1
_ADMIN
COOL
FUN
NSS
NSS1
NSS2
NSS3
9 volumes mounted.
... completed OK [elapsed time = 1 msecs 462 usecs]
======> In the above command NCP is not listed since I have
removed the path to which it was mounted.
Now I am trying to create the volume. Note the error ...
systst-ts-164:/ # ncpcon create volume NCP /ncp/
... Executing " create volume NCP /ncp/"
Volume NCP could not be created, error 22.
... completed OK [elapsed time = 809 usecs]
=========> Now I am try to remove the volume
systst-ts-164:/ # ncpcon remove volume NCP
... Executing " remove volume NCP"
Volume NCP has been removed.
... completed OK [elapsed time = 27 msecs 335 usecs]
========> Now I am creating the volume again.
systst-ts-164:/ # ncpcon create volume NCP /ncp/
... Executing " create volume NCP /ncp/"
Volume NCP has been created.
... completed OK [elapsed time = 1 Second 41 msecs 597 usecs]
==========> Listing the volumes.
systst-ts-164:/ # ncpcon volume
... Executing " volume"
Mounted Volumes
SYS
NCPVOL1
_ADMIN
COOL
FUN
NSS
NCP
NSS1
NSS2
NSS3
10 volumes mounted.
=========> NCP got created.
... completed OK [elapsed time = 752 usecs]
systst-ts-164:/ #
Related Articles
User Comments
- Be the first to comment! To leave a comment you need to Login or Register
- 5527 reads


0