umount error - cannot umount : block device required (548 Views)
Reply
Frequent Advisor
Shawn Miller_2
Posts: 102
Registered: ‎12-26-2000
Message 1 of 11 (548 Views)

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'.
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 2 of 11 (548 Views)

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
Frequent Advisor
Shawn Miller_2
Posts: 102
Registered: ‎12-26-2000
Message 3 of 11 (548 Views)

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.
Honored Contributor
Jeff Schussele
Posts: 6,795
Registered: ‎02-18-2002
Message 4 of 11 (548 Views)

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!
Frequent Advisor
Shawn Miller_2
Posts: 102
Registered: ‎12-26-2000
Message 5 of 11 (548 Views)

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
Honored Contributor
Jeff Schussele
Posts: 6,795
Registered: ‎02-18-2002
Message 6 of 11 (548 Views)

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!
Frequent Advisor
Shawn Miller_2
Posts: 102
Registered: ‎12-26-2000
Message 7 of 11 (548 Views)

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
Trusted Contributor
John Kittel
Posts: 402
Registered: ‎07-14-2003
Message 8 of 11 (548 Views)

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
Frequent Advisor
Shawn Miller_2
Posts: 102
Registered: ‎12-26-2000
Message 9 of 11 (548 Views)

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.

Trusted Contributor
John Kittel
Posts: 402
Registered: ‎07-14-2003
Message 10 of 11 (548 Views)

Re: umount error - cannot umount : block device required

... 'nother idea,

try umount dev/vg_v01/lv_v01
Frequent Advisor
Shawn Miller_2
Posts: 102
Registered: ‎12-26-2000
Message 11 of 11 (548 Views)

Re: umount error - cannot umount : block device required

The problem was that there was a symbolic link that pointed to /home/v01 and the symbolic link was removed while in use. By running a find / -type M I saw that /home/v01 was mounted. This was a mistake. So I recreated the symbolic link then umounted /v01. Then I removed the link and mounted the logical volume to /v01. Thanks
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.