LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-30-2011, 05:19 PM   #1
lopinhos
LQ Newbie
 
Registered: Mar 2011
Posts: 1

Rep: Reputation: 0
Problems upgrade debian lenny to squeeze (RAID1)


After upgrading the debian server failed to start. I now try to recover the boot through the rescue system, tried to mount / dev/md1 on / mnt/md1 but there are folders that are empty, such as root, etc, proc.

root@teste:/# cat /proc/mdstat
Personalities : [raid1] [raid0] [raid6] [raid5] [raid4]
md0 : active raid1 sdb1[0] sda1[1]
97536 blocks [2/2] [UU]

md1 : active raid1 sda3[1]
296993088 blocks [2/1] [_U]

unused devices: <none>


######################################

root@teste:/# mdadm --detail /dev/md0
/dev/md0:
Version : 00.90.03
Creation Time : Thu Jan 27 16:55:06 2011
Raid Level : raid1
Array Size : 97536 (95.27 MiB 99.88 MB)
Used Dev Size : 97536 (95.27 MiB 99.88 MB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Wed Mar 30 19:10:44 2011
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

UUID : adbe2b1b:4917a312:7792c71e:7dc17aa4
Events : 0.44

Number Major Minor RaidDevice State
0 8 17 0 active sync /dev/sdb1
1 8 1 1 active sync /dev/sda1
######
root@xteste:/# mdadm --detail /dev/md1
/dev/md1:
Version : 00.90.03
Creation Time : Thu Jan 27 16:55:06 2011
Raid Level : raid1
Array Size : 296993088 (283.23 GiB 304.12 GB)
Used Dev Size : 296993088 (283.23 GiB 304.12 GB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 1
Persistence : Superblock is persistent

Update Time : Wed Mar 30 19:09:54 2011
State : clean, degraded
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 0

UUID : 5c8e4766:9653e87b:7792c71e:7dc17aa4
Events : 0.15600

Number Major Minor RaidDevice State
0 0 0 0 removed
1 8 3 1 active sync /dev/sda3
root@teste:/#

###############

root@teste:/# fdisk -l
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000b01cb
Device Boot Start End Blocks Id System
/dev/sda1 1 13 97656 fd Linux raid autodetect
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 137 1000000 82 Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/sda3 137 37111 296993164 fd Linux raid autodetect
Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000b32a6
Device Boot Start End Blocks Id System
/dev/sdb1 1 13 97656 fd Linux raid autodetect
Partition 1 does not end on cylinder boundary.
/dev/sdb2 13 137 1000000 82 Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/sdb3 137 37111 296993164 fd Linux raid autodetect
Disk /dev/md1: 304.1 GB, 304120922112 bytes
2 heads, 4 sectors/track, 74248272 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0x00000000
Disk /dev/md1 doesn't contain a valid partition table
Disk /dev/md0: 99 MB, 99876864 bytes
2 heads, 4 sectors/track, 24384 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0x00000000
Disk /dev/md0 doesn't contain a valid partition table
root@teste:/#


what should I do to solve the problem of raid1?
 
Old 04-18-2011, 11:58 AM   #2
xaminmo
LQ Newbie
 
Registered: Feb 2010
Location: TX
Distribution: Debian
Posts: 10

Rep: Reputation: 4
Looks like you've lost /dev/sdb3.

Try re-adding /dev/sdb3 back to /dev/md1

Let it finish syncing, then set the array readwrite
then vgscan, vgchange -ay $vgname
Then mount up your / filesystem on /mnt
then do mdadm --scan --detail and save that info into /mnt/etc/mdadm.conf
then unmount /mnt and reboot.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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] After Debian upgrade from Lenny to Squeeze, MySQL will not start fireball1974 Linux - Server 3 03-20-2011 08:28 PM
LXer: How To Upgrade Debian Lenny (Debian 5.0) To Squeeze (Debian 6.0) On Xen VPS LXer Syndicated Linux News 0 03-09-2011 06:20 AM
trying to upgrade lenny to squeeze keymoo Debian 6 02-11-2011 06:45 AM
LXer: Upgrade Debian Lenny To Squeeze In A Few Simple Steps LXer Syndicated Linux News 1 02-08-2011 02:17 PM
Opinions on Best Way to upgrade from Lenny/Lenny Backports to Squeeze?? linus72 Debian 7 12-26-2009 10:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:03 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