From: kalinix <calin.kalinix.cosma@gmail.com>
To: dermot@sciencephoto.co.uk
Cc: linux-admin@vger.kernel.org
Subject: Re: Expand a raid volume
Date: Sat, 20 May 2006 14:35:28 +0300 [thread overview]
Message-ID: <1148124928.18694.13.camel@mobilelinux> (raw)
In-Reply-To: <446B17BD.16798.2610C166@dermot.sciencephoto.com>
On Wed, 2006-05-17 at 12:31 +0100, Dermot Paikkos wrote:
> So from what I've read so far, there is no way to do an on-line
> expansion of the filesystem, I have to destroy the current
> filesystem, create it a new and restore the data. Not what I had
> hoped for when I bought a RAID card that does on-line expansion!
>
> > > It I do fdisk /dev/sda5 doesn't show me the same information, and
> > > doesn't list any size. The filesystem is ext3.
>
> As I don't seem to have a choice and I have to re-create the volume,
> would it be possible to use LVM on that that volume alone
> (/dev/sda5)?
>
> I was under the impression that LVM was a software RAID system and I
> wanted to use hardware RAID, did I get that wrong too?
>
> Here's my current filesystem:
> /dev/sda2 26G 11G 14G 45% /
> /dev/sda1 104M 17M 82M 17% /boot
> /dev/shm 1.1G 0 1.1G 0% /dev/shm
> /dev/sda6 107M 0 107M 0% /dos
> /dev/sda5 681G 611G 35G 95% /data
>
> OS: Fedora Core release 4 (Stentz)
>
> The plan is to slowly increase the available size on this server so I
> want to swap the 174GB SCSI disks for 300GB ones.
>
> Should I recreate the whole system from scratch and use LVM?
>
> Sorry I am looking for a few quick answers before reading all of
> http://www.tldp.org/HOWTO/LVM-HOWTO/index.html
>
> TIA.
> Dp.
>
>
>
>
>
> On 16 May 2006 at 14:24, Tom Callahan wrote:
>
> > Is partition 5 the last partition on that disk? If it is, you
> > theoretically can just delete partition 5, and then recreate it with a
> > bigger size. MAKE SURE TO TAKE A BACKUP FIRST....JUST IN CASE.
> >
> > This is why LVM is your friend....If you had /dev/sda as a PV, and
> > then multiple VG's under that, with LV's under that....You could add
> > the disk, resize the PV, resize the VG and LV's and then resize the
> > filesystem, without making changes to the partition tables.
> >
> > Thanks,
> > Tom Callahan
> >
> >
> >
> > > On Tue, 2006-05-16 at 13:43 -0400, Dermot Paikkos wrote:
> > > > Hi Admins,
> > > >
> > > > I have a server with an Adaptec 2120S Raid controller. There are
> > > > were 6 x 174GB disks and one hot spare. I moved the hotspare into
> > > > the RAID 5 volume and the Adaptec Storage Manager shows the volume
> > > > has grown from 681 to 821GB.
> > > >
> > > > My problem is that the OS doesn't see it that way. If I remount
> > > > the volume it is still seen as a 681Gb volume.
> > > >
> > > > /dev/sda5 681G 608G 38G 95% /data
> > > >
> > > > It I do fdisk /dev/sda5 doesn't show me the same information, and
> > > > doesn't list any size. The filesystem is ext3.
> > > >
> > > > Disk /dev/sda5: 705.4 GB, 705416431104 bytes
> > > > 255 heads, 63 sectors/track, 85761 cylinders
> > > > Units = cylinders of 16065 * 512 = 8225280 bytes
> > > >
> > > > Device Boot Start End Blocks Id System
> > > >
> > > > When I tried to write the new disk label it failed
> > > >
> > > > Calling ioctl() to re-read partition table.
> > > >
> > > > WARNING: Re-reading the partition table failed with error 22:
> > > > Invalid argument. The kernel still uses the old table.
> > > >
> > > > Does anyone know what I need to do to expand the current volume?
> > > > Is it possible?
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
Maybe ext2online could help.
Calin
=================================================
Slous' Contention: If you do a job too well, you'll get stuck with it.
next prev parent reply other threads:[~2006-05-20 11:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-16 17:43 Expand a raid volume Dermot Paikkos
[not found] ` <1147803062.6153.7.camel@callahan_lt.tessco.com>
2006-05-16 18:24 ` Tom Callahan
2006-05-17 11:31 ` Dermot Paikkos
2006-05-20 11:35 ` kalinix [this message]
2006-05-20 20:02 ` urgrue
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=1148124928.18694.13.camel@mobilelinux \
--to=calin.kalinix.cosma@gmail.com \
--cc=dermot@sciencephoto.co.uk \
--cc=linux-admin@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;
as well as URLs for NNTP newsgroup(s).