LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-24-2023, 09:26 AM   #1
rshepard
Member
 
Registered: Oct 2007
Location: Troutdale, Oregon
Distribution: Slackware
Posts: 435

Rep: Reputation: 28
Recovering logical volume,/dev/md0


Slackware64-14.2 still running on this desktop.

I turned off the desktop and removed the power cord to replace the video
card. The MediaSonic Probox also powered down. When I plugged in the desktop
and turned it on, along with the Probox, the two single drives in the Probox
(/data2 and /data3) automatically mounted, but the 2-drive logical volume,
/dev/md0 did not mount. When I try to mount it manually I find that it
doesn't exist.

I've gone through this video card swapping several times this week with the
LV mounting, either automatically of when I do so manually.

Where do I start looking for the reason it's not now seen?
 
Old 03-24-2023, 10:24 AM   #2
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,177

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
The naming is confusing. Do you have MD Raid set up ? I would expect a software Raid device to be designated md0, unless you have LVM configured in a Raid array?
 
Old 03-24-2023, 10:33 AM   #3
ctrlaltca
Member
 
Registered: May 2019
Location: Italy
Distribution: Slackware
Posts: 323

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
I'd start with

Code:
cat /proc/mdstat
dmesg
The first command should tell you the status of the array (if any found)
In the second command output you can search for any error about those drives or why the md is not starting.
 
Old 03-24-2023, 11:19 AM   #4
rshepard
Member
 
Registered: Oct 2007
Location: Troutdale, Oregon
Distribution: Slackware
Posts: 435

Original Poster
Rep: Reputation: 28
Gerard/ctrlaltra: I need to rebuild the raid1 array, the virtual groups and the virtual array. When I check /dev/sde and /dev/sdf with cfdisk they're both marked as free space rather than ext4.

Somehow, those two disks were FUBAR'd. So, I start from scratch and rebuld them because the lV is mounted as /media/backup/ and I'll have lost the previous ones. Sigh.

Thanks,

Rich
 
Old 03-24-2023, 05:28 PM   #5
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,177

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by rshepard View Post
Gerard/ctrlaltra: I need to rebuild the raid1 array, the virtual groups and the virtual array. When I check /dev/sde and /dev/sdf with cfdisk they're both marked as free space rather than ext4.

Somehow, those two disks were FUBAR'd. So, I start from scratch and rebuld them because the lV is mounted as /media/backup/ and I'll have lost the previous ones. Sigh.

Thanks,

Rich
Again, it's not clear. Are /dev/sde and/dev/sdf the two components of the software Raid array? If so, they shouldn't be formatted with any file system if you're going to put Logical Volumes on top of that array. If you're using MD and LVM you would normally create the Raid array and then add that to a Volume Group. Then you would create Logical Volumes in that group and format those volumes with your file system of choice.

In terms of naming, it's likely that your Raid array will take md0, so you should name your volume group and logical volumes something else -- lvgroup, lvvol00, lvvol01, and so on.
 
  


Reply

Tags
logical volume, restore



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
Having some problems mounting /dev/md0 device (it's mdadm stripping volume) trancephorm Linux - Software 1 08-30-2015 01:47 PM
LVM Mount Physical Volume/Logical Volume without a working Volume Group mpivintis Linux - Newbie 10 01-11-2014 07:02 AM
After creating raid6 array, mkfs.jfs /dev/md0, then cannot mount /dev/md0 artagel Debian 4 12-06-2009 08:30 AM
Extending logical volume LogVol01 Insufficient allocatable logical exte swap space umeshsharma Linux - Newbie 4 06-22-2009 12:26 PM
How To Clone Single Drive To Raid 1+0 (copy /dev/sde to /dev/md0)? alfista Linux - Server 5 03-18-2008 10:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:26 AM.

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