![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
![]() |

|
| OS tutorials All Knowledge Info and links to posted here |
![]() |
|
Linux RAID - recreate from scratch
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Administrator
Posts: 876
Join Date: Oct 2005
Rep Power: 10
IM:
|
I recently had to boot a system from alternate media to repair some configuration problems on the system. The disks are LVM on top of software RAID 1. The rescue media didn't detect or recreate the RAID devices so the LVM volumes (and thus the system data) were not available. To recreate the RAID partition, use the mdadm command like this (only do this if /etc/mdadm/mdadm.conf is empty or isn't working). echo DEVICE partitions > /etc/mdadm/mdadm.conf /sbin/mdadm --examine --scan >> /etc/mdadm/mdadm.conf /sbin/mdadm --assemble --scan Then, LVM will work with just a couple more commands. Note that vgscan writes the lvmtab files to /etc and about 500KB per volume group will be required. This was an issue on my Knoppix 3.2 rescue platform. vgscan Code:
vgchange -ay To list the logical volumes use Code:
sudo /usr/sbin/lvm lvscan |
|
|
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Creating an animated scratch card effect to reveal a photo | Iphone | Graphic tutorials | 0 | 08-May-2007 02:44 AM |
| Digital Portrait - Learn how to make a beautiful reallife women out of scratch! | Iphone | Graphic tutorials | 0 | 16-Apr-2007 11:18 PM |
| Creating WinXP Themes from scratch | Anilrgowda | Microsoft Windows xp error | 1 | 15-Feb-2007 02:56 AM |
| Linux RAID - recreate from scratch | Admin | OS tutorials | 0 | 03-Dec-2006 11:08 PM |
| How to Format (start over from scratch) | Anilrgowda | OS tutorials | 0 | 03-Dec-2006 09:37 AM |