Sponsored Content
Operating Systems Linux SuSE SLES11 - RAID6 all disks marked as Spare Post 302324170 by xavix on Wednesday 10th of June 2009 06:58:48 AM
Old 06-10-2009
SLES11 - RAID6 all disks marked as Spare

Hello,

After a replacement of the motherboard of my server, all disks belonging to a raid6 are now marked as spare.

Is there any way to mark those disks as active and restore the raid6?

Code:
$ cat /proc/mdstat 
Personalities : [raid1] [raid0] [raid6] [raid5] [raid4] 
md1 : inactive sda1[1](S) sdk1[11](S) sdj1[10](S) sdi1[9](S) sdh1[8](S) sdg1[7](S) sdf1[6](S) sde1[5](S) sdd1[4](S) sdc1[3](S) sdb1[2](S)
      10744359296 blocks
       
md0 : active raid1 sdm1[0] sdn1[1]
      2096384 blocks [2/2] [UU]
      
md2 : active raid1 sdm3[0] sdn3[1]
      104864192 blocks [2/2] [UU]
      
unused devices: <none>

All disks show the same info:
Code:
$ mdadm -E /dev/sdb1 
/dev/sdb1:
          Magic : a92b4efc
        Version : 0.90.00
           UUID : d293389b:7b11f66f:33b8bc9f:5417f8db
  Creation Time : Tue Dec  9 20:52:05 2008
     Raid Level : raid6
  Used Dev Size : 976759936 (931.51 GiB 1000.20 GB)
     Array Size : 9767599360 (9315.11 GiB 10002.02 GB)
   Raid Devices : 12
  Total Devices : 12
Preferred Minor : 1

    Update Time : Wed Jun  3 09:34:06 2009
          State : active
Active Devices : 12
Working Devices : 12
Failed Devices : 0
  Spare Devices : 0
       Checksum : 4c480fd3 - correct
         Events : 505329

     Chunk Size : 128K

      Number   Major   Minor   RaidDevice State
this     1       8       17        1      active sync   /dev/sdb1

   0     0       8        1        0      active sync   /dev/sda1
   1     1       8       17        1      active sync   /dev/sdb1
   2     2       8       33        2      active sync   /dev/sdc1
   3     3       8       49        3      active sync   /dev/sdd1
   4     4       8       65        4      active sync   /dev/sde1
   5     5       8       81        5      active sync   /dev/sdf1
   6     6       8       97        6      active sync   /dev/sdg1
   7     7       8      113        7      active sync   /dev/sdh1
   8     8       8      129        8      active sync   /dev/sdi1
   9     9       8      145        9      active sync   /dev/sdj1
  10    10       8      161       10      active sync   /dev/sdk1
  11    11       8      177       11      active sync   /dev/sdl1

UUID of all disks are the same as in mdadm.conf
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

file marked unretrievable

Hi When i try to ftp download a file from a Solaris 10 server, it returns the error "is marked unretrievable" how can i get around this to download the file? (2 Replies)
Discussion started by: arielgoldberg
2 Replies

2. Solaris

Hot Spare replacement

Hi Guys, Can Someone pls let me know the thorough process for Hot spare replacement as current Hot spare slice has broken down . :mad: Thanks ---------- Post updated at 06:34 PM ---------- Previous update was at 05:21 PM ---------- Update : Its a solaris 10 box (1 Reply)
Discussion started by: Solarister
1 Replies

3. SuSE

XEN and SLES11

Good morning, Server:HP ProLiant DL165 G7 diskless with Disc on Storage OS:SLES11 SP1 and xen-3.3.1_18546_12-3.1 iSCSI:INTEL Gigabit ET Dual Port Server Adapter 825768 When I start SLES11 with Xen in boot-loader menu, then the boot will stop because linux could'nt find the iscsi interface... (0 Replies)
Discussion started by: hiddenshadow
0 Replies

4. Shell Programming and Scripting

GnuPlot-area marked by filledcurve

Hi ! I try to highlight data. therefor i want du emphasize a rectangle area in the background by filledcurves inbetween to limits. #Sektor Inden --> Anfang <--> Ende SIa(x)=212 SIe(x)=252 SHa(x)=64 SHe(x)=122 plot 'PATH/mete.txt' using 1:3 t 'WR' w l lt 3 lw 1 lc rgbcolor "#0000ff", \ ... (1 Reply)
Discussion started by: IMPe
1 Replies

5. Solaris

How to get spare disks working

Dears how can i make this spare disks working online to replace a defective disks vxdisk list DEVICE TYPE DISK GROUP STATUS c0t10d0s2 sliced - - error c0t11d0s2 sliced disk08 rootdg online c1t16d0s2 sliced ... (3 Replies)
Discussion started by: thecobra151
3 Replies

6. Linux

Apache2-mpm-itk installation SLES11

Hi, do anyone know how to apply the corresponding apache2-mpm-itk patches to an already installed apache2 on a SLES11 machine? This is the link to the module: apache2-mpm-itk And this is the link to the patches: Index of /apache2.2-mpm-itk-2.2.17-01 Thanks (0 Replies)
Discussion started by: asanchez
0 Replies

7. UNIX for Advanced & Expert Users

Superblock marked dirty

Good morning! I met a problem on a FS with AIX 5.3 It's not possible to mount the FS because of a dirty superblock. I tried few things without success. I need your help to solve my problem guys. Do you have any idea please? Thanks a lot drp01,/home/root # mount /GSPRES/data Replaying... (9 Replies)
Discussion started by: Castelior
9 Replies

8. SuSE

Network issue in SLES11.2

I had installed suse linux 11.2 . I had some strange problem with my network , after configuring it showing some error like tulip_stop_rxtx() failed . The server is not reachable from outside. Could some one help me with it. (1 Reply)
Discussion started by: nanduri
1 Replies

9. Web Development

Mysql table is marked as crashed and should be repaired

140312 13:43:54 /usr/libexec/mysqld: Table './***/phpbb_posts' is marked as crashed and should be repaired Its mysqld.log in var/log alot of messages, but before around hour i tried to "repaid table" from within phpmyadmin, but appears it has no effect.. why? How to fix? (1 Reply)
Discussion started by: postcd
1 Replies

10. Solaris

How to determine if i have spare disks in Solaris?

Hi Guys, obviously new to SOLARIS SUN SPARC 5.10 I would really appreciate if you help me see how to find free disks available in my system. Like i am a linux admin. If i want to grow a file system in linux. I would first have a look at my volume groups to see if they have free PEs if not then... (2 Replies)
Discussion started by: aiqbal
2 Replies
vxdarestore(1M) 														   vxdarestore(1M)

NAME
vxdarestore - restore simple or nopriv disk access records SYNOPSIS
/etc/vx/bin/vxdarestore DESCRIPTION
The vxdarestore utility is used to restore persistent simple or nopriv disk access (da) records that have failed due to changing the naming scheme used by vxconfigd from c#t#d#-based to enclosure-based. The use of vxdarestore is required if you use the vxdiskadm command to change from the c#t#d#-based to the enclosure-based naming scheme. As a result, some existing persistent simple or nopriv disks go into the "error" state and the VxVM objects on those disks fail. vxdarestore may be used to restore the disk access records that have failed. The utility also recovers the VxVM objects on the failed disk access records. Note: vxdarestore may only be run when vxconfigd is using the enclosure-based naming scheme. Note: You can use the command vxdisk list da_name to discover whether a disk access record is persistent. The record is non-persistent if the flags field includes the flag autoconfig; otherwise it is persistent. The following sections describe how to use the vxdarestore utility under various conditions. Persistent Simple/Nopriv Disks in the rootdg Disk Group If all persistent simple or nopriv disks in the rootdg disk group go into the "error" state, use the following procedure: 1. Use the vxdiskadm command to change back to the c#t#d# based naming scheme. 2. Either shut down and reboot the host, or run the following command: vxconfigd -kr reset 3. If you want to use the enclosure-based naming scheme, add a non-persistent simple disk to the rootdg disk group, use vxdiskadm to change to the enclosure-based naming scheme, and then run vxdarestore. Note: If not all the disks in rootdg go into the error state, simply running vxdarestore restores those disks in the error state and the objects that that they contain. Persistent Simple/Nopriv Disks in Disk Groups other than rootdg If all disk access records in an imported disk group consist only of persistent simple and/or nopriv disks, the disk group is put in the "online dgdisabled" state after changing to the enclosure-based naming scheme. For such disk groups, perform the following steps: 1. Deport the disk group using the following command: vxdg deport diskgroup 2. Run the vxdarestore command. 3. Re-import the disk group using the following command: vxdg import diskgroup NOTES
Use of the vxdarestore command is not required in the following cases: o If there are no persistent simple or nopriv disk access records on an HP-UX host. o If all devices on which simple or nopriv disks are present are not automatically configurable by VxVM. For example, third-party drivers export devices that are not automatically configured by VxVM. VxVM objects on simple/nopriv disks created from such disks are not affected by switching to the enclosure based naming scheme. The vxdarestore command does not handle the following cases: o If the enclosure-based naming scheme is in use and the vxdmpadm command is used to change the name of an enclosure, the disk access names of all devices in that enclosure are also changed. As a result, any persistent simple/nopriv disks in the enclosure are put into the "error" state, and VxVM objects configured on those disks fail. o If the enclosure-based naming scheme is in use and the system is rebooted after making hardware configuration changes to the host. This may change the disk access names and cause some persistent simple/nopriv disks to be put into the "error" state. o If the enclosure-based naming scheme is in use, the device discovery layer claims some disks under the JBOD category, and the vxdd- ladm rmjbod command is used to remove remove support for the JBOD category for disks from a particular vendor. As a result of the consequent name change, disks with persistent disk access records are put into the "error" state, and VxVM objects configured on those disks fail. EXIT CODES
A zero exit status is returned if the operation is successful or if no actions were necessary. An exit status of 1 is returned if vxdare- store is run while vxconfigd is using the c#t#d# naming scheme. An exit status of 2 is returned if vxconfigd is not running. SEE ALSO
vxconfigd(1M), vxdg(1M), vxdisk(1M), vxdiskadm(1M), vxdmpadm(1M), vxintro(1M), vxreattach(1M), vxrecover(1M) VxVM 5.0.31.1 24 Mar 2008 vxdarestore(1M)
All times are GMT -4. The time now is 06:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy