Operating System - HP-UX
1836596 Members
2511 Online
110102 Solutions
New Discussion

Is sort working in this case.

 
Prasad Joshi
Regular Advisor

Is sort working in this case.

Hi all,

I want to run command cfsumount on some nested mount points.

I did this.

bash-2.02# mount | sort -rk1 | awk '/nmnt/ {print $1}'
/nmnt4dg1v4/nmnt4dg2v4/nmnt4dg3v4
/nmnt4dg1v4/nmnt4dg2v4
/nmnt4dg1v4
/nmnt3dg1v3/nmnt3dg2v3/nmnt3dg3v3/nmnt3dg4v3
/nmnt3dg1v3/nmnt3dg2v3/nmnt3dg3v3
/nmnt3dg1v3/nmnt3dg2v3
/nmnt3dg1v3
/nmnt2dg1v2/nmnt2dg2v2/nmnt2dg3v2/nmnt2dg4v2
/nmnt2dg1v2/nmnt2dg2v2/nmnt2dg3v2
/nmnt2dg1v2/nmnt2dg2v2
/nmnt2dg1v2
/nmnt1dg1v1/nmnt1dg2v1/nmnt1dg3v1/nmnt1dg4v1
/nmnt1dg1v1/nmnt1dg2v1/nmnt1dg3v1
/nmnt1dg1v1/nmnt1dg2v1
/nmnt1dg1v1

I want to unmount (cluster wide) all of them.
so i am executing following command.

bash-2.02# cfsumount `mount | sort -rk1 | awk '/nmnt/ {print $1}'`
Error: V-35-42: System [/nmnt4dg1v4/nmnt4dg2v4] not part of the Cluster OR invalid system name.

I am not getting 2 thinks.
1. Why "/nmnt4dg1v4/nmnt4dg2v4" is selected first. It should be "/nmnt4dg1v4/nmnt4dg2v4/nmnt4dg3v4" as this is what is shown by previous command output.

2. /nmnt4dg1v4/nmnt4dg2v4 is part of the cluster then why it is showing that it is not part of the cluster.

Thnaks in advance.
Regards.
Prasad
4 REPLIES 4
Prasad Joshi
Regular Advisor

Re: Is sort working in this case.

Some body please give me solution. I urgently require it.

Thnaks a lot
Prasad Joshi
Regular Advisor

Re: Is sort working in this case.

Thanks a lot.
Peter Godron
Honored Contributor

Re: Is sort working in this case.

Prasad,
what was the answer to the problem?
This will help future users with the same problem.
Prasad Joshi
Regular Advisor

Re: Is sort working in this case.

Hi Peter,

Actually reason is way cfsumount is designed.
See, its syntax ==>

cfsumount mount_point < ...>
cfsumount mount_point


It expects only one mount point, next all are considered as systems.

That is why I got error message =====>
System [/nmnt4dg1v4/nmnt4dg2v4] not part of the Cluster OR invalid system name.

Thanks for your replay.
Very sorry I wasted your time

Thanks & regards.
Prasad