Linux Partitioning Issue

Geofrey Rainey Geofrey.Rainey at tvnz.co.nz
Fri Dec 26 04:25:19 UTC 2008


It worked, thank you Barry!

Regards,
Geoff. 

-----Original Message-----
From: redhat-list-bounces at redhat.com
[mailto:redhat-list-bounces at redhat.com] On Behalf Of Barry Brimer
Sent: Thursday, 25 December 2008 5:42 p.m.
To: General Red Hat Linux discussion list
Subject: Re: Linux Partitioning Issue



On Thu, 25 Dec 2008, Geofrey Rainey wrote:

> I have a system with a raid 5 array which I have extended using HP 
> array Configuration utility tools. You can see from the output of 
> fdisk below That the disk has extra space:
>
> Disk /dev/cciss/c0d0: 366.8 GB, 366870733824 bytes
> 255 heads, 63 sectors/track, 44602 cylinders Units = cylinders of 
> 16065 * 512 = 8225280 bytes
>
>           Device Boot      Start         End      Blocks   Id  System
> /dev/cciss/c0d0p1   *           1          13      104391   83  Linux
> /dev/cciss/c0d0p2              14        2563    20482875   8e  Linux
> LVM
> /dev/cciss/c0d0p3            2564        2690     1020127+  82  Linux
> swap / Solaris
> /dev/cciss/c0d0p4            2691       26761   193350307+   5
Extended
> /dev/cciss/c0d0p5            2691       26761   193350276   8e  Linux
> LVM
>
> However because of the limited size of the extended partition I am 
> unable to use the extra space, I receive the following error:
>
> Command (m for help): n
> No free sectors available
>
> Command (m for help):
>
> Presumably I have to remove partition 5 and also the extended 
> partition 4, then resize the extended partition to use the extra 
> space. However I'm concerned that I'll loose all the data on partition

> 5, is there a way around this? I am wondering if I specify the start 
> and end cylinders of partition 5 to be the same size will the data be 
> preserved?

In my experience if you have the starting position as before, all should
be fine.  Delete partition 5, delete partition 4, create the new
partition 4, with the old start and the new end, create the new
partition 5 with the same start cylinder for partition 5 with a new end
cylinder and then run ext2online (RHEL/CentOS
4) or resize2fs (RHEL/CentOS 5) to extend the filesystem.  As always,
standard rules apply.  Backups are good, more backups on different
systems / disks are better.

Hope this helps.

Barry

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
==========================================================
For more information on the Television New Zealand Group, visit us
online at tvnz.co.nz 
==========================================================
CAUTION:  This e-mail and any attachment(s) contain information that
is intended to be read only by the named recipient(s).  This information
is not to be used or stored by any other person and/or organisation.





More information about the redhat-list mailing list