raid1 (dmraid) - bad sectors - mount - smartd - complicated!


 
Thread Tools Search this Thread
Operating Systems Linux raid1 (dmraid) - bad sectors - mount - smartd - complicated!
# 1  
Old 08-09-2012
Network raid1 (dmraid) - bad sectors - mount - smartd - complicated!

Hello,

i'm running a server with two disks in raid1.. it seems that some bad sectors have recently appeared on one of the disks.

Code:
Aug  9 08:26:19 linux smartd[3454]: Device: /dev/sda, FAILED SMART self-check. BACK UP DATA NOW!
Aug  9 08:26:19 linux smartd[3454]: Device: /dev/sda, 2 Currently unreadable (pending) sectors

Sadly it has affected my SVN repo and two important revisions are not accessible anymore! The moment I try to access those revisions the server hangs itself.

Now I am hoping that a good copy of those revisions is still on the second disk (sdb).

I have to keep the server online and cannot do a real maintenance at the time, so is there a way to maybe do a 1:1 image of sdb and mount it elsewhere ? Or while still running raid1 (also without getting the server offline), can I maybe simultaneously somehow mount sdb in read-only and try to access the missing svn revisions and backup it?


Some info (if you guys need any more detailed info, just let me know):

ps. thanks alot!

Code:
linux:/etc # cat /etc/SuSE-release
openSUSE 11.0 (i586)
VERSION = 11.0



linux:/etc # uname -r
2.6.25.20-0.4-pae


linux:/var/log # dmraid -s -s
*** Active Set
name   : lsi_bhgdabdbca
size   : 160836352
stride : 128
type   : mirror
status : ok
subsets: 0
devs   : 2
spares : 0

linux:/var/log # df -h
Dateisystem          GröÃe Benut  Verf Ben% Eingehängt auf
/dev/mapper/lsi_bhgdabdbca_part6
                       20G   11G  8,1G  57% /
udev                  315M  152K  315M   1% /dev
/dev/mapper/lsi_bhgdabdbca_part5
                       69M   18M   48M  28% /boot
/dev/mapper/lsi_bhgdabdbca_part7


linux:/etc # fdisk -l

Platte /dev/sda: 82.3 GByte, 82348277760 Byte
255 Köpfe, 63 Sektoren/Spuren, 10011 Zylinder
Einheiten = Zylinder von 16065 Ã 512 = 8225280 Bytes
Disk identifier: 0x000a7b81

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sda1               1         129     1036161   82  Linux Swap / Solaris
/dev/sda2   *         130       10011    79377165    f  W95 Erw. (LBA)
/dev/sda5             130         138       72261   83  Linux
/dev/sda6             139        2749    20972826   83  Linux
/dev/sda7            2750       10011    58331983+  83  Linux

Platte /dev/sdb: 82.3 GByte, 82348277760 Byte
255 Köpfe, 63 Sektoren/Spuren, 10011 Zylinder
Einheiten = Zylinder von 16065 Ã 512 = 8225280 Bytes
Disk identifier: 0x000a7b81

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sdb1               1         129     1036161   82  Linux Swap / Solaris
/dev/sdb2   *         130       10011    79377165    f  W95 Erw. (LBA)
/dev/sdb5             130         138       72261   83  Linux
/dev/sdb6             139        2749    20972826   83  Linux
/dev/sdb7            2750       10011    58331983+  83  Linux

Platte /dev/dm-0: 82.3 GByte, 82348277248 Byte
255 Köpfe, 63 Sektoren/Spuren, 10011 Zylinder
Einheiten = Zylinder von 16065 Ã 512 = 8225280 Bytes
Disk identifier: 0x000a7b81

     Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/dm-0p1               1         129     1036161   82  Linux Swap / Solaris
/dev/dm-0p2   *         130       10011    79377165    f  W95 Erw. (LBA)
/dev/dm-0p5             130         138       72261   83  Linux
/dev/dm-0p6             139        2749    20972826   83  Linux
/dev/dm-0p7            2750       10011    58331983+  83  Linux

Platte /dev/dm-1: 1061 MByte, 1061028864 Byte
255 Köpfe, 63 Sektoren/Spuren, 128 Zylinder
Einheiten = Zylinder von 16065 Ã 512 = 8225280 Bytes
Disk identifier: 0x00000000

Festplatte /dev/dm-1 enthält keine gültige Partitionstabelle
omitting empty partition (6)

Platte /dev/dm-2: 81.2 GByte, 81282216960 Byte
255 Köpfe, 63 Sektoren/Spuren, 9882 Zylinder
Einheiten = Zylinder von 16065 Ã 512 = 8225280 Bytes
Disk identifier: 0x00000000

     Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/dm-2p1               1           9       72261   83  Linux
/dev/dm-2p2              10        2620    20972857+   5  Erweiterte
/dev/dm-2p5              10        2620    20972826   83  Linux

Platte /dev/dm-3: 73 MByte, 73995264 Byte
255 Köpfe, 63 Sektoren/Spuren, 8 Zylinder
Einheiten = Zylinder von 16065 Ã 512 = 8225280 Bytes
Disk identifier: 0x00000000

Festplatte /dev/dm-3 enthält keine gültige Partitionstabelle

Platte /dev/dm-4: 21.4 GByte, 21476173824 Byte
255 Köpfe, 63 Sektoren/Spuren, 2610 Zylinder
Einheiten = Zylinder von 16065 Ã 512 = 8225280 Bytes
Disk identifier: 0x00000000

Festplatte /dev/dm-4 enthält keine gültige Partitionstabelle

Platte /dev/dm-5: 59.7 GByte, 59731951104 Byte
255 Köpfe, 63 Sektoren/Spuren, 7261 Zylinder
Einheiten = Zylinder von 16065 Ã 512 = 8225280 Bytes
Disk identifier: 0x00000000

Festplatte /dev/dm-5 enthält keine gültige Partitionstabelle


Last edited by TehOne; 08-09-2012 at 05:11 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Moving to RAID1

Is there an easy, safe way to move the system to RAID1 on sparc solaris 10? (without reinstalling). thanks. (6 Replies)
Discussion started by: orange47
6 Replies

2. Linux

If i don't have raid disks can i shut down dmraid device-mapper?

hello my centOS newly installed system loading dmraid modules on startup I did remove all LVM/raid things from system installation menus and after installation too but dmraid is still there and he says: no raid disks found also I did modprobe -r dm_raid45 and it do remove it but only until... (7 Replies)
Discussion started by: tip78
7 Replies

3. Debian

Grub2 (dual boot, dmraid) cannot run Debian6

Hello, firstly excuse for my poor english. I have a busybox error when I try to run Debian 6. It's like Grub cannot find root (initramfs) My system is: - RAID0 with dmraid - /boot ext2 (from moonOS installation --ubuntu based--) - ext4 (moonOS wich have the Grub2 installation, where I... (0 Replies)
Discussion started by: neutralTTY
0 Replies

4. Filesystems, Disks and Memory

Solaris 10 Raid1

does anyone k ow the answer to this? OS solaris 10 using the command raidctl -c c1t0d0 c1t1d0, this took about 4 mins to return to the prompt with "Volume c1t0d0 is created successfully!" then using format I saw AVAILABLE DISK SELECTIONS: 0. c1t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>... (1 Reply)
Discussion started by: powerrack
1 Replies

5. AIX

rootvg and hardware raid1

Good Morning, We have a JS22 blade that we will be loading AIX5.3 onto it. We just discovered that the JS22 will only support one drive, so we are planning on booting this blade from the Fiber Channel SAN. Orginally we used 2 physical drives and set up RAID 1 and presented the logical drive... (0 Replies)
Discussion started by: brachinus
0 Replies

6. OS X (Apple)

Can't Mount Disk / Image after bad unmount

I have had a little issue with one of my disks, the usb cacble was pulled out and one of the external drives on it would no longer mount. I used First Aid and it verified and repaired both OK / nothing to do). After lots of messing around and not being able to mount I used Drive Genius 2 and that... (1 Reply)
Discussion started by: Cranie
1 Replies

7. Solaris

RAID1 and LDoms

I have a Netra T5220 Solaris 10 server with LDoms installed and enabled. RAID1 is enabled in the control domain with the following slices: d50 -m d51 d52 1 d51 1 1 c1t0d0s5 d52 1 1 c1t1d0s5 d10 -m d11 d12 1 d11 1 1 c1t0d0s0 d12 1 1 c1t1d0s0 d20 -m d21 d22 1 d21 1 1 c1t0d0s1 d22 1 1... (14 Replies)
Discussion started by: StarSol
14 Replies

8. Linux

Service smartd Problem

Hi guys, please help me out my smartd service is not being up. $ sudo /sbin/service smartd restart Shutting down smartd: Starting smartd: $ Take a look of /etc/smartd.conf /dev/sda -H -m... (1 Reply)
Discussion started by: daya.pandit
1 Replies

9. Red Hat

smartd problem

Hi guys, i am facing this problem, I had configured NIS server in my network and it was ruing good.. but once i changed my IP after this problem started... please help me out..!! Oct 25 15:01:01 kickstart-server smartd: smartd shutdown failed Oct 25 15:01:01 kickstart-server smartd:... (1 Reply)
Discussion started by: daya.pandit
1 Replies

10. UNIX for Advanced & Expert Users

smartd is using a deprecated SCSI ioctl, please convert it to SG_IO

Hi All, I have installed GNU Red Hat Linux on my server. The installation is successful except that it gives out a display as following: program smartd is using a deprecated SCSI ioctl, please convert it to SG_IO Please let me know if anyone has come across such an error and know the... (1 Reply)
Discussion started by: nua7
1 Replies
Login or Register to Ask a Question