LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-17-2019, 02:54 AM   #1
iannbrown
LQ Newbie
 
Registered: Feb 2019
Posts: 7

Rep: Reputation: Disabled
HELP NEEDED - Can't mount RAID volume after changing failed boot drive


Hi

I am a Linux newbie. I'm trying to help a friend who's boot disk died on a Fedora installation which is used as a Plex server.

I've replaced the main drive and re-installed Fedora fine.
I've re-inserted the 2 RAID1 disks and they are detected, and then after much reading used mdadm to scan and assemble the disks so the RAID volume shows in disks, however it won't display and gives the following error

Unable to Access Location
Error mounting /dev/md0p1 at run/media/plex/_mnt_md0: cannot
mount; probably corrupted filesystem on dev/md0p1

The RAID volume is 2 x 3Tb drives which contains all their Plex media,so I am desparate to access it.

I need to either:

Be able to fix the array so it is readable

or

Simply be able to read one of the disks so that I can copy the data off to another drive.

Any suggestions welcomed. Thanks

Last edited by iannbrown; 02-17-2019 at 02:58 AM.
 
Old 02-17-2019, 03:05 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Let's see this - use [code] tags (Advanced button, then "#").
Code:
lsblk -f
 
1 members found this post helpful.
Old 02-17-2019, 03:57 AM   #3
iannbrown
LQ Newbie
 
Registered: Feb 2019
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thanks syg00 for the help.

Code:
[plex@plexbox-localdomain ~]$ lsblk -f
NAME FSTYPE LABEL              UUID                                   MOUNTPOINT
sda                                                                   
├─sda1
│    ext4                      815ac1df-32a2-4fa0-8f83-efd78a74e080   /boot
└─sda2
     LVM2_m                    p0c6TD-gs93-IJwh-tF7r-PLa9-heKX-1x0izS 
  ├─fedora-root
  │  ext4                      d9f4e14b-c109-4874-b409-6a76dbd7e2b8   /
  ├─fedora-swap
  │  swap                      f714f7a2-0304-44ea-b49d-44528d393264   [SWAP]
  └─fedora-home
     ext4                      f7e6eed9-c9c5-48c4-abab-10920020a298   /home
sdb  linux_ localhost.localdomain:0
│                              a1fd7767-cf9d-1516-46cc-ab84258d3507   
└─md0
                                                                      
  └─md0p1
     xfs    /mnt/md0           83c6e4bf-cfcf-4856-a91f-2cc38e01d06e   
sdc  linux_ localhost.localdomain:0
│                              a1fd7767-cf9d-1516-46cc-ab84258d3507   
└─md0
                                                                      
  └─md0p1
     xfs    /mnt/md0           83c6e4bf-cfcf-4856-a91f-2cc38e01d06e

/sdb and /sdc are the two raid disks

Last edited by iannbrown; 02-17-2019 at 04:37 AM.
 
Old 02-17-2019, 04:01 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Ugh - edit that, and change the [quote] tags to [code]. That way we might be able to read it.
 
Old 02-17-2019, 04:39 AM   #5
iannbrown
LQ Newbie
 
Registered: Feb 2019
Posts: 7

Original Poster
Rep: Reputation: Disabled
done
 
Old 02-17-2019, 05:15 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Much better ....
How about
Code:
cat /proc/mdstat
 
Old 02-17-2019, 05:17 AM   #7
iannbrown
LQ Newbie
 
Registered: Feb 2019
Posts: 7

Original Poster
Rep: Reputation: Disabled
Code:
plex@plexbox-localdomain ~]$ cat /proc/mdstat
Personalities : [raid1] 
md0 : active raid1 sdb[1] sdc[0]
      2930135488 blocks super 1.2 [2/2] [UU]
      bitmap: 0/22 pages [0KB], 65536KB chunk

unused devices: <none>
 
Old 02-17-2019, 05:47 AM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
That all looks ok, what nodes have been created ?.
Code:
ls /dev/md*
 
Old 02-17-2019, 05:07 PM   #9
iannbrown
LQ Newbie
 
Registered: Feb 2019
Posts: 7

Original Poster
Rep: Reputation: Disabled
Code:
[plex@plexbox-localdomain ~]$ ls /dev/md*
/dev/md0  /dev/md0p1

/dev/md:
localhost.localdomain:0  localhost.localdomain:0p1
 
Old 02-18-2019, 05:35 AM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
I would try something like the following to mount what appears t be the reconstructed RAID.
Code:
sudo mkdir /mnt/tempry
sudo mount /dev/md0p1 /mnt/tempry
df -hT
 
Old 02-19-2019, 02:10 AM   #11
iannbrown
LQ Newbie
 
Registered: Feb 2019
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thanks for continuing to help.

This failed after step 2, see below

Code:
[plex@plexbox-localdomain ~]$ sudo mkdir /mnt/tempry
[sudo] password for plex: 
[plex@plexbox-localdomain ~]$ sudo mount /dev/md0p1 /mnt/tempry
mount: /mnt/tempry: cannot mount; probably corrupted filesystem on /dev/md0p1.
This is the same general error I get when mounting through the Disks utility.

Also, I'm happy to give you TeamViewer access to this machine if you would like, maybe it would be quicker and less tedious for you?

thanks again
 
Old 02-20-2019, 01:55 PM   #12
Peverel
Member
 
Registered: May 2009
Location: Chelmsford, England
Distribution: OpenSuse 12.2 and 13.2, Leap 4.2
Posts: 128

Rep: Reputation: 24
If you run:

fsck -n /dev/md0p1

you should get an error list without risking damage to the files: if you left out the -n then it would try to correct them. No guarantees, though.
 
Old 02-20-2019, 05:02 PM   #13
iannbrown
LQ Newbie
 
Registered: Feb 2019
Posts: 7

Original Poster
Rep: Reputation: Disabled
Code:
[plex@plexbox-localdomain ~]$ sudo fsck -n /dev/md0p1
[sudo] password for plex: 
fsck from util-linux 2.32.1
If you wish to check the consistency of an XFS filesystem or
repair a damaged filesystem, see xfs_repair(8).
so then...

Code:
[plex@plexbox-localdomain ~]$ sudo xfs_repair -n /dev/md0p1
Phase 1 - find and verify superblock...
Phase 2 - using internal log
        - zero log...
ALERT: The filesystem has valuable metadata changes in a log which is being
ignored because the -n option was used.  Expect spurious inconsistencies
which may be resolved by first mounting the filesystem to replay the log.
        - scan filesystem freespace and inode maps...
sb_fdblocks 266982522, counted 266990714
        - found root inode chunk
Phase 3 - for each AG...
        - scan (but don't clear) agi unlinked lists...
        - process known inodes and perform inode discovery...
        - agno = 0
        - agno = 1
        - agno = 2
        - agno = 3
        - process newly discovered inodes...
Phase 4 - check for duplicate blocks...
        - setting up duplicate extent list...
        - check for inodes claiming duplicate blocks...
        - agno = 0
        - agno = 1
        - agno = 2
        - agno = 3
No modify flag set, skipping phase 5
Phase 6 - check inode connectivity...
        - traversing filesystem ...
        - traversal finished ...
        - moving disconnected inodes to lost+found ...
Phase 7 - verify link counts...
No modify flag set, skipping filesystem flush and exiting.

Last edited by iannbrown; 02-20-2019 at 05:07 PM.
 
Old 02-20-2019, 10:15 PM   #14
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
So when the original system died it broke the XFS filesystem. See the manpage for xfs_repair; notably the "-L" option.
Read the warnings, and the section "Dirty Logs" at the end. Your (friends) call, but essentially you probably have no option. Even if you lose some files, not the end of the world I guess.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to increase logical volume to match physical volume, after increasing size of virtualbox virtual drive mjl3434 Linux - General 4 02-10-2016 08:29 AM
[SOLVED] unable to mount a usb flash drive and an SD card after changing mount directory name remn Linux - Newbie 24 10-24-2015 03:04 PM
GNU RAID 1 "Data volume failed to mount" LoneTiger Linux - Newbie 20 05-24-2015 09:39 AM
LVM Mount Physical Volume/Logical Volume without a working Volume Group mpivintis Linux - Newbie 10 01-11-2014 07:02 AM
changing "mute" from 0-volume to "tiny" volume SaintDanBert Linux - Software 3 03-15-2013 05:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration