Can't open /dev/sdc1 exclusively. Mounted filesystem?
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can't open /dev/sdc1 exclusively. Mounted filesystem?
Hello Everyone
Im working on a RHEL 5.4 x64 system.
I have 2 internal drives on a RAID configuration to support my / partition and swap.
On the other hand i have and old storage IBM EXP400 on a raid 5 with 1449 GB holding my /home in a VG.
Due to my /home partition was almost reaching full capacity i decided to add an extra storage, this time with a newer storage model , IBM DS4700 with a raid 5 with 2047 GB.
The DS4700 is a FC dual controller, so i had to add a dual FC hba emulex to the system as well as the RDAC driver to make multipath available.
At the time i try to configure my newly device (/dev/sdc) im not able to mount it or format it , either as a lvm or as a common ext2 or 3 type
Any thoughts on why the system keeps saying the partition is in use? i have tried fuser -ck /dev/sdc1 and still im unable to mount it, also i partioned once sdc as a lvm and tried to create a pv with sdc and has a similar message to format one: Can't open /dev/sdc1 exclusively. Mounted filesystem?
The Storage controller does have firmware and software to manage the disks, This is the way the array and mapping was done to the server, the problem seems to be now at the OS level which sees the new device as it is used when it is a 100% new device
I agree that sda and sdb dpesmt looks like sdc1, the problem is that i didnt set those values, so How can i possibly change them? im stuck since i dont know if this is a problem with my storage or with my fc card config, or The OS, i have done this before with qlogic adapters, and devices works just fine, by reading the RDAC driver documentation it says Emulex hbas should work as well so, no way to go by now, i could say i ve tried almost anything and im just able to see my device is present but not configurable at all
Any thoughts on why the system keeps saying the partition is in use? i have tried fuser -ck /dev/sdc1 and still im unable to mount it, also i partioned once sdc as a lvm and tried to create a pv with sdc and has a similar message to format one: Can't open /dev/sdc1 exclusively. Mounted filesystem?
Hi, seems you got the same problem I am solving right now ...
The problem here is (I think) that OS Multipath is "stealing" the (already multipathed device created by RDAC) and trying to make another failover layer/device ...
If you take a look at /dev/mpath/* and you see some device[s] that means that this is the case, right now Im in the proces of analyzing why the heck it is doint it.
Simple solution is disabling the devices created by OS multipath, the the MPP device is free again and you can work with it normaly ...
# pvcreate /dev/sdb
Can't open /dev/sdb exclusively. Mounted filesystem?
# dmsetup status
RootVG-swap: 0 8192000 linear
RootVG-root: 0 10223616 linear
RootVG-root: 10223616 31457280 linear mpath8: 0 584888320 multipath 2 0 0 0 1 1 A 0 1 0 8:16 A 0
RootVG-tmp: 0 10223616 linear
RootVG-usr: 0 10223616 linear
RootVG-var: 0 10223616 linear
Well this was quite easy ... one has to blacklist the mpath in its configuration file (simple remove from init doesnt do the job since it is started by device-mapper anyway). So ...
/etc/multipathd.conf:
blacklist {
devnode "*"
}
Since MPIO and RDAC cant cooexist I blacklisted all devices ...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.