Operating System - HP-UX
1830705 Members
3796 Online
110015 Solutions
New Discussion

not mounted fs .. complains that it is mounted.

 
rleon
Regular Advisor

not mounted fs .. complains that it is mounted.

# mount /dev/appvg01/applv01 /opt/redprairie
vxfs mount: /dev/appvg01/applv01 is already mounted, /opt/redprairie is busy,
or allowable number of mount points exceeded

But the fs is not mounted.
root@phgp1001-/opt/redprairie
# bdf .
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol6 4096000 2283664 1798200 56% /opt
root@phgp1001-/opt/redprairie
#

10 REPLIES 10
John Guster
Trusted Contributor

Re: not mounted fs .. complains that it is mounted.

remove mount point rmdir /opt/redprairie, create it again: mkdir /opt/redprairie, make sure the ownership of the directory is right, then mount the volume again.
rleon
Regular Advisor

Re: not mounted fs .. complains that it is mounted.

Already did that. Even created a /tmp/mnt and I get the same error.

# mount /dev/appvg01/applv01 /tmp/mnt
vxfs mount: /dev/appvg01/applv01 is already mounted, /tmp/rl is busy,
or allowable number of mount points exceeded
John Guster
Trusted Contributor

Re: not mounted fs .. complains that it is mounted.

what are output of fuser /opt/redprairie and fuser /dev/appvg01/applv01?
Patrick Wallek
Honored Contributor

Re: not mounted fs .. complains that it is mounted.

If you are cd'ed into the /opt/redprairie directory then the mount won't work.

# cd /
# mount /dev/appvg01/applv01 /opt/redprairie
rleon
Regular Advisor

Re: not mounted fs .. complains that it is mounted.

# fuser /opt/redprairie
/opt/redprairie:

Patrick I was not in the dir when i tried to mount it.

I did cd into the dir when I did the bdf.

=)
rleon
Regular Advisor

Re: not mounted fs .. complains that it is mounted.

now this is weird. I did

vgchange -c n

vgchange -a y


# mount /dev/appvg01/applv01 /tmp/rl
/dev/appvg01/applv01: No such device or address

# ll /dev/appvg01/applv01
brw-r----- 1 root sys 64 0x010001 Oct 2 2006 /dev/appvg01/applv01

# vgdisplay -v appvg01
--- Volume groups ---
VG Name /dev/appvg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 2
Open LV 2
Max PV 128
Cur PV 2
Act PV 2
Max PE per PV 4400
VGDA 4
PE Size (Mbytes) 16
Total PE 2156
Alloc PE 672
Free PE 1484
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/appvg01/applv01
LV Status available/syncd
LV Size (Mbytes) 10240
Current LE 640
Allocated PE 640
Used PV 1


created a tmp lv




# mount /dev/appvg01/tmplv1 /tmp/rl
# bdf /tmp/rl
Filesystem kbytes used avail %used Mounted on
/dev/appvg01/tmplv1
524288 1229 490375 0% /tmp/rl
John Guster
Trusted Contributor

Re: not mounted fs .. complains that it is mounted.

strings /etc/lvmtab to see if this vg has been imported.
John Guster
Trusted Contributor

Re: not mounted fs .. complains that it is mounted.

you may need create a map file of this vg, export it, then reimport it.
Ninad_1
Honored Contributor

Re: not mounted fs .. complains that it is mounted.

Can you run
mount | egrep '/dev/appvg01/applv01|/opt/redprairie'

to check that your system does not see either the lvol / the directory as being used for already mounted FS.

Regards,
Ninad
sreekanthtm
Trusted Contributor

Re: not mounted fs .. complains that it is mounted.

Iam confused with the vgdisplay -v output.

There is no applv01.

Post the complete output of following....

# bdf
# vgdisplay -v /dev/appvg01
# lvdisplay /dev/appvg01/applv01

Rgds
Sreekanth