Operating System - HP-UX
1751970 Members
4726 Online
108783 Solutions
New Discussion юеВ

Re: umount error - cannot umount : block device required

 
Shawn Miller_2
Frequent Advisor

umount error - cannot umount : block device required

I get this error when trying to umount /v01.
I show it mounted in /etc/mnttab. If I run bdf I can see it as one of the file systems mounted. However if I run bdf /v01 then it shows up under /, which implies it is just a directory. If I cd into /v01 there is nothing in it. However, when you run the bdf (for everything) /v01 will show about 50k of data. I need to export the volume group but I can not until I get this 'unmounted'.
10 REPLIES 10
Steven E. Protter
Exalted Contributor

Re: umount error - cannot umount : block device required

if /v01 shows up on bdf

fuser -cuk /v01

kills all processes on the filesystem.

Now you can umount.

You can not umount a filesystem while your session is sitting in it.

cd out of the directory first.

IF that doesn't work, consider reboot.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Shawn Miller_2
Frequent Advisor

Re: umount error - cannot umount : block device required

The problem is not that the file system is busy. There is no processes running. I ran a fuser -cu /v01. When I go to umount I get the error can not umount, block device required. It 'sort of' shows up under bdf. I can run bdf on /v02 and it shows /v02, I can also run bdf|grep v02 and it shows up the same way. However, with /v01 I run bdf /v01 and it shows up as /. If I run bdf|grep v01 then it shows up as /v01.
Jeff Schussele
Honored Contributor

Re: umount error - cannot umount : block device required

HI Shawn,

I'd suspect the mnttab file is corrupt.
Move or rename it & run mount - that'll rebuild it.
It sures sounds like it's not physically mounted other than the mnttab entry.

HTH,
Jeff

PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Shawn Miller_2
Frequent Advisor

Re: umount error - cannot umount : block device required

That did not help.

Here is what I am seeing and this is after removing /etc/mnttab and running mount:

miux06:root-/# umount /v01
umount: cannot unmount /v01 : Block device required
miux06:root-/# vgchange -a n vg_v01
vgchange: Couldn't deactivate volume group "vg_v01":
Device busy
miux06:root-/# bdf|grep v01
/dev/vg_v01/lv_v01 524288 47324 447167 10% /v01
miux06:root-/# bdf /v01
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 524288 47324 447167 10% /
miux06:root-/# grep v01 /etc/mnttab
/dev/vg_v01/lv_v01 /v01 vxfs log,nodatainlog 0 0 1098763841
Jeff Schussele
Honored Contributor

Re: umount error - cannot umount : block device required

What does
mount -v
show about this vg - if anything?

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Shawn Miller_2
Frequent Advisor

Re: umount error - cannot umount : block device required

Here is what mount -v shows in reference to this file system.

/dev/vg_v01/lv_v01 on /v01 type vxfs log,nodatainlog on Tue Oct 26 00:10:41 2004
John Kittel
Trusted Contributor

Re: umount error - cannot umount : block device required

did a block special device file for a PV in vg_v01 get removed?

vgdisplay to see PVs in vg_v01, then ll on the PV names ( /dev/dsk/cxtxdx ).

- John
Shawn Miller_2
Frequent Advisor

Re: umount error - cannot umount : block device required

It shows up in vgdisplay and the device is created. There are several logical volumes associated with this volume group and using the same disk. There is no issue with any of those logical volumes.

John Kittel
Trusted Contributor

Re: umount error - cannot umount : block device required

... 'nother idea,

try umount dev/vg_v01/lv_v01