Quoting Luca Berra <[EMAIL PROTECTED]>:
> Leave miguel patch alone, look for ext2resize
>
> On Wed, Aug 23, 2000 at 06:38:15PM +0200, Turbo Fredriksson wrote:
> >
> > I got a existing RAID/Linear setup with 3 partitions. Have been
> > running very smoothly for more than a year or so. Now it's getting
> > full, and I have a free 4Gb disk that I'd like to add to this setup...
Oki, trying on a new system...
/dev/md0 = /dev/hda3 /dev/hda4
Now I'd like to add /dev/hdb1 to the linear disk.
1. umount /dev/md0
2. stop raid
3. remove /etc/mdtab
4. mdcreate -c4k linear /dev/md0 /dev/hda3 /dev/hda4 /dev/hdb1
5. calculate sizes like this
man sfdisk:
List Sizes
sfdisk -s partition gives the size of partition in blocks.
This may be useful in connection with programs like mkswap
or so. Here partition is usually something like /dev/hda1
or /dev/sdb12, but may also be an entire disk, like
/dev/xda.
gw-air2net:~# sfdisk --show-size /dev/hda3
3903795
gw-air2net:~# sfdisk --show-size /dev/hda4
15743700
gw-air2net:~# sfdisk --show-size /dev/hdb1
10000431
3903795+15743700+10000431 = 29647926
6. start raid
gw-air2net:~# cat /proc/mdstat
Personalities : [1 linear] [2 raid0]
read_ahead 128 sectors
md0 : active linear hda3 hda4 hdb1 29647920 blocks 4k rounding
md1 : inactive
md2 : inactive
md3 : inactive
7. ext2resize /dev/md0 29647926
gw-air2net:~# ext2resize /dev/md0 29647926
ext2_resize_fs
ext2_resize_fs: your container (i.e. the file or partition
the filesystem) is in is not big enough for
a filesystem of 29647926 blocks (it's only
7411980 blocks)
direct hits 0 indirect hits 0 misses 0
(almost) exactly 4 times as small... What did I miss?
----- s n i p -----
gw-air2net:~# uname -a
Linux gw-air2net 2.2.17-DragonNFS #2 SMP Mon Sep 11 17:57:40 CEST 2000 i686 unknown
gw-air2net:~# dpkg -l ext2resize | grep ^ii
ii ext2resize 1.0.6-1 an ext2 filesystem resizer
gw-air2net:~# cat /etc/debian_version
2.2
----- s n i p -----
--
KGB Clinton Marxist PLO ammonium Kennedy domestic disruption Uzi
Albanian iodine SDI FSF security Serbian $400 million in gold bullion
[See http://www.aclu.org/echelonwatch/index.html for more about this]
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to [EMAIL PROTECTED]