Can't access to disk

General support questions
Post Reply
Cyberika
Posts: 27
Joined: 2015/08/28 19:52:01
Location: Barcelona, Spain

Can't access to disk

Post by Cyberika » 2020/06/27 10:19:25

I have 2 physical HDD installed on my machine. On first one I have installed Centos 7 and on another one Centos 8. The problem is accessing the Centos 8 HDD from Centos 7. Vice versa I can do this operation. I mean When boot Centos 8 I can access Cento 7 HDD. Here is the error I get:

Code: Select all

Error mounting /dev/dm-4 at /rn/media/user_name/bla-bla-bla: Wrong fs type, /dev/dm-4 has an invalid superblock or missing helper program.
.

Code: Select all

--- Logical volume ---
  LV Path                /dev/centos/home
  LV Name                home
  VG Name                centos
  LV UUID                wXg1MV-YGHh-gd79-0W14-h4Qk-NfJR-fM4Yti
  LV Write Access        read/write
  LV Creation host, time irexserver.home, 2020-02-09 16:05:54 +0100
  LV Status              available
  # open                 1
  LV Size                1.60 TiB
  Current LE             419431
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:5
   
  --- Logical volume ---
  LV Path                /dev/centos/root
  LV Name                root
  VG Name                centos
  LV UUID                G6JAuz-EXFd-LOTI-9v7t-qhdd-cUkQ-m7xyPM
  LV Write Access        read/write
  LV Creation host, time irexserver.home, 2020-02-09 16:06:00 +0100
  LV Status              available
  # open                 1
  LV Size                <208.61 GiB
  Current LE             53404
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
   
  --- Logical volume ---
  LV Path                /dev/centos/swap
  LV Name                swap
  VG Name                centos
  LV UUID                Yb4k6j-6wqq-VxvN-me6z-89g0-6wfV-SEBf6C
  LV Write Access        read/write
  LV Creation host, time irexserver.home, 2020-02-09 16:06:01 +0100
  LV Status              available
  # open                 2
  LV Size                <15.00 GiB
  Current LE             3839
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1
   
  --- Logical volume ---
  LV Path                /dev/cl_workstation/swap
  LV Name                swap
  VG Name                cl_workstation
  LV UUID                tyWf4O-FK3X-hzhC-tVWc-i0mn-njh8-j4qy9W
  LV Write Access        read/write
  LV Creation host, time workstation.home, 2020-06-20 02:24:24 +0200
  LV Status              available
  # open                 0
  LV Size                15.72 GiB
  Current LE             4025
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:2
   
  --- Logical volume ---
  LV Path                /dev/cl_workstation/root
  LV Name                root
  VG Name                cl_workstation
  LV UUID                NwNygK-riLT-Bmvp-5B9g-rrpl-k4JE-Y9tyRf
  LV Write Access        read/write
  LV Creation host, time workstation.home, 2020-06-20 02:24:24 +0200
  LV Status              available
  # open                 0
  LV Size                200.00 GiB
  Current LE             51200
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:3
   
  --- Logical volume ---
  LV Path                /dev/cl_workstation/home
  LV Name                home
  VG Name                cl_workstation
  LV UUID                zEA2VE-7ATJ-x2j2-PW2Q-m4iY-70IX-9AYe0V
  LV Write Access        read/write
  LV Creation host, time workstation.home, 2020-06-20 02:24:25 +0200
  LV Status              available
  # open                 0
  LV Size                <1.61 TiB
  Current LE             421450
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:4 

User avatar
jlehtone
Posts: 3050
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Can't access to disk

Post by jlehtone » 2020/06/27 13:24:58

The error mentions /dev/dm-4. The other info does not seem to tell what dm-4 is.

User avatar
TrevorH
Forum Moderator
Posts: 29502
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Can't access to disk

Post by TrevorH » 2020/06/27 13:45:51

That looks like whatever filesystem is on that device not compatible with CentOS 7. That does happen sometimes - kernel gets changed, features are added to the filesystem, new bits added in the superblock that are not backwards compatible.

What's the output from file -s /dev/dm-4 ?
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Cyberika
Posts: 27
Joined: 2015/08/28 19:52:01
Location: Barcelona, Spain

Re: Can't access to disk

Post by Cyberika » 2020/06/27 17:51:59

Thanks for reply

Code: Select all

/dev/dm-4: SGI XFS filesystem data (blksz 4096, inosz 512, v2 dirs)
is the output of file -s /dev/dm-4.

Cyberika
Posts: 27
Joined: 2015/08/28 19:52:01
Location: Barcelona, Spain

Re: Can't access to disk

Post by Cyberika » 2020/06/27 18:20:14

TrevorH wrote:
2020/06/27 13:45:51
That looks like whatever filesystem is on that device not compatible with CentOS 7. That does happen sometimes - kernel gets changed, features are added to the filesystem, new bits added in the superblock that are not backwards compatible.

What's the output from file -s /dev/dm-4 ?
So this could be normal behavior?

User avatar
TrevorH
Forum Moderator
Posts: 29502
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Can't access to disk

Post by TrevorH » 2020/06/28 00:32:29

So now run xfs_info /dev/dm-4 and see what's listed there. If you have an xfs file system on CentOS 7 that can be read then run it against that too and compare the outputs.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Cyberika
Posts: 27
Joined: 2015/08/28 19:52:01
Location: Barcelona, Spain

Re: Can't access to disk

Post by Cyberika » 2020/06/29 14:45:22

Ok. Thanks!

Post Reply

Return to “CentOS 7 - General Support”