public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mark Knecht <markknecht@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Process to resize ext3 file system at the command line?
Date: Thu, 17 Nov 2011 16:33:27 -0800	[thread overview]
Message-ID: <CAK2H+ef4dssd=vasi4RmGz7zj1OZiLh=dcpcfEVXxm5yFNqJ5A@mail.gmail.com> (raw)
In-Reply-To: <20111118002143.09620c4b@zaphod.digimed.co.uk>

On Thu, Nov 17, 2011 at 4:21 PM, Neil Bothwick <neil@digimed.co.uk> wrote:
> On Thu, 17 Nov 2011 16:13:09 -0800, Mark Knecht wrote:
>
>> > Do you have separately partitioned drives with those partitions
>> > arranged into single-partition arrays, or do you have one RAID device
>> > that is then partitioned?
>> >
>> > If the latter, you should certainly work with the md device.
>> >
>> > I prefer to avoid all this confusion by creating a large, single
>> > partition array that I use an an LVM physical volume.
>>
>> Separately partitioned drives arranged into RAID arrays.
>
> So you have three partitions arranged into a single RAID5 partition,
> say /dev/md1?
>
> In that case, the size of /dev/md1 should already be correct and you only
> need to resize the filesystem and you should ignore my witterings about
> fdisk that filed to take into account your use of RAID.
> resize2fs /dev/md1 should be all you need, you shouldn't even need to
> unmount the filesystem.
>

I have 3 partitions which were previously RAID-1. I've already failed
one drive so at this moment it's a 2-drive RAID-1. I'm attempting to
get those two remaining 2 partitions converted to RAID-5 the command
suggested on the RAID list for doing that isn't working for me.

Once the 250GB RAID-1 is converted to RAID-5 i have to add a new drive
back in to become a 3-drive RAID-5. The drive I add will be the drive
I just failed.

c2stable ~ # mdadm --grow /dev/md6 --level=5
mdadm: /dev/md6: could not set level to raid5
c2stable ~ #

c2stable ~ # mdadm -D /dev/md6
/dev/md6:
       Version : 1.1
 Creation Time : Thu Apr 15 10:45:35 2010
    Raid Level : raid1
    Array Size : 247416933 (235.96 GiB 253.35 GB)
 Used Dev Size : 247416933 (235.96 GiB 253.35 GB)
  Raid Devices : 2
 Total Devices : 2
   Persistence : Superblock is persistent

   Update Time : Thu Nov 17 13:27:20 2011
         State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
 Spare Devices : 0

          Name : c2stable:6  (local to host c2stable)
          UUID : 249c7331:a8203540:c8f3b020:fb30a66b
        Events : 1039

   Number   Major   Minor   RaidDevice State
      0       8        6        0      active sync   /dev/sda6
      1       8       22        1      active sync   /dev/sdb6
c2stable ~ #



  reply	other threads:[~2011-11-18  0:34 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-17 17:01 [gentoo-user] Process to resize ext3 file system at the command line? Mark Knecht
2011-11-17 17:25 ` Neil Bothwick
2011-11-17 18:29   ` Mark Knecht
2011-11-17 18:43     ` Michael Mol
2011-11-17 18:59       ` Mark Knecht
2011-11-17 19:13         ` Michael Mol
2011-11-17 19:44           ` Mark Knecht
2011-11-17 19:51             ` Michael Mol
2011-11-17 19:47         ` Neil Bothwick
2011-11-17 20:34           ` Mark Knecht
2011-11-17 23:59             ` Neil Bothwick
2011-11-18  0:13               ` Mark Knecht
2011-11-18  0:21                 ` Neil Bothwick
2011-11-18  0:33                   ` Mark Knecht [this message]
2011-11-24  9:00                     ` J. Roeleveld
2011-11-23 14:02   ` J. Roeleveld

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='CAK2H+ef4dssd=vasi4RmGz7zj1OZiLh=dcpcfEVXxm5yFNqJ5A@mail.gmail.com' \
    --to=markknecht@gmail.com \
    --cc=gentoo-user@lists.gentoo.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