Boot/root disk with ext2/ext3, scsi and aacraid driver?
Michael E Brown
michael_e_brown at dell.com
Thu Apr 25 13:22:05 CDT 2002
You forgot a couple of steps:
0) Back up the system
0.5) Back up the system again.
0.75) test backups on separate system
On Thu, 25 Apr 2002, Roddy McColl wrote:
> Does anyone have such a beast? Why do I need it you ask?
> Well I have a 4400 which arrived without OS, put RH 7.1 via Kickstart
> then upgraded to 7.2, then added some more disk and now I have two
> containers which are much larger than the filesystems. There are
> procedures to expand ext2 filesystems, no problem there, but first I
> need to create larger partitions and my first disk looks like this
> (courtesy of the Kickstart install I guess) :-
> Filesystem 1k-blocks Used Available Use% Mounted on
> /dev/sda2 46668 12481 31778 29% /boot
> /dev/sda5 2838216 2666072 27964 99% /usr
> /dev/sda6 521748 173880 321364 36% /
> /dev/sda8 3146652 1175184 1811624 40% /var
> /dev/sda9 3138720 596928 2382352 21% /home
> /dev/sda10 69973 8686 57674 14% /tmp
> fdisk /dev/sda gives :-
> Disk /dev/sda: 255 heads, 63 sectors, 2173 cylinders
> Units = cylinders of 16065 * 512 bytes
> Device Boot Start End Blocks Id System
> /dev/sda1 1 4 32098+ de Dell Utility
> /dev/sda2 * 5 10 48195 83 Linux
> /dev/sda3 11 1305 10402087+ 5 Extended
> /dev/sda5 11 369 2883636 83 Linux
> /dev/sda6 370 435 530113+ 83 Linux
> /dev/sda7 436 501 530113+ 82 Linux swap
> /dev/sda8 502 899 3196903+ 83 Linux
> /dev/sda9 900 1296 3188871 83 Linux
> /dev/sda10 1297 1305 72261 83 Linux
> So after expanding the container, I have 2173 cylinders, but the
> extended partition (sda3, which has all the logical partitions) only
> goes up to 1305. And the root and user partitions are logical
> partitions inside the extended partition! I don't believe it is
> possible to remove an extended partition without first removing all
> the logical partitions, so.......
> I was thinking of the following way to get at the other space on this
> disk/container :-
> 1) Boot from the boot/root disk.
> 2) Take all ext3 filesystems in the extended partition down to ext2,
> and run fsck on all.
> 3) Delete all the logical partitions, then the extended partition.
> 4) Add back the extended partition to end at 2173 instead of 1305.
> 5) Add back all the logical partitions with same start, end, except
> for the end of the last one, which can be made much bigger.
> 6) Remount all the filesystems.
> 7) Expand the last one using resize2fs.
> 8) Bring them all back to ext3.
> I would really appreciate any comments on the sense of nonsense of
> this approach!
> Roddy McColl PhD roddy at mri.swmed.edu
> UT Southwestern (214) 648-2910
> Linux-PowerEdge mailing list
> Linux-PowerEdge at dell.com
> Please read the FAQ at http://lists.us.dell.com/faq or search the list archives at http://lists.us.dell.com/htdig/
Michael E. Brown, RHCE, MCSE+I, CNA
Dell Linux Solutions
If each of us have one object, and we exchange them,
then each of us still has one object.
If each of us have one idea, and we exchange them,
then each of us now has two ideas.
More information about the Linux-PowerEdge