Linux RAID subsystem development
 help / color / mirror / Atom feed
From: Janek Kozicki <janek_listy@wp.pl>
To: linux-raid@vger.kernel.org
Subject: Using 2.6.31 liveCD to grow (reshape) raid5 into raid6, then bacck to old kernel?
Date: Thu, 12 Nov 2009 22:03:51 +0100	[thread overview]
Message-ID: <20091112220351.22a2ad1b@atak.bl.pg.gda.pl> (raw)

Hi,

I have an old debian etch backup server. It has 5 drives in raid4.
I want to add a sixth drive to jump to raid6. I don't want to upgrade
debian etch, because the server is working real fine, and doing an
upgrade would be too much problems.

Here it is:

  backup:~# uname -a
  Linux backup 2.6.24-etchnhalf.1-686 #1 SMP Sat Aug 15 16:51:49 UTC 2009 i686 GNU/Linux

  backup:~# mdadm -D /dev/md1
/dev/md1:
        Version : 01.01.03
  Creation Time : Fri Nov  2 23:35:37 2007
     Raid Level : raid5
     Array Size : 1933614592 (1844.04 GiB 1980.02 GB)
    Device Size : 966807296 (461.01 GiB 495.01 GB)
   Raid Devices : 5
  Total Devices : 5
Preferred Minor : 1
    Persistence : Superblock is persistent

  Intent Bitmap : Internal

    Update Time : Thu Nov 12 21:59:15 2009
          State : active
 Active Devices : 5
Working Devices : 5
 Failed Devices : 0
  Spare Devices : 0

         Layout : left-symmetric
     Chunk Size : 128K

           Name : backup:1  (local to host backup)
           UUID : 22f22c35:99613d52:31d407a6:55bdeb84
         Events : 718938

    Number   Major   Minor   RaidDevice State
       5      22        3        0      active sync   /dev/hdc3
       1       8        3        1      active sync   /dev/sda3
       3       3        3        2      active sync   /dev/hda3
       4       8       35        3      active sync   /dev/sdc3
       6       8       19        4      active sync   /dev/sdb3
backup:~# 


And so my plan is to get some liveCD with 2.6.31 (or maybe 2.6.32 ?).
Connect the sixth drive, boot liveCD, perform the migration:

mdadm --add /dev/md2 /dev/sdd3
mdadm --grow /dev/md2 --level=raid6 --raid-disks=6

Then reboot back into linux 2.6.24.

Will this work?

Will 2.6.24 understand such raid6 ?

thanks a lot for your help
-- 
Janek Kozicki                                                         |

             reply	other threads:[~2009-11-12 21:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-12 21:03 Janek Kozicki [this message]
2009-11-12 21:06 ` Using 2.6.31 liveCD to grow (reshape) raid5 into raid6, then bacck to old kernel? Janek Kozicki
2009-11-12 21:14 ` Robin Hill
2009-11-13  4:37 ` Neil Brown
2009-11-13  9:08   ` Janek Kozicki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091112220351.22a2ad1b@atak.bl.pg.gda.pl \
    --to=janek_listy@wp.pl \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox