[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Endre størrelsen på /dev/vg_data og /dev/vg_system



fredag 26. november 2004, 20:23, skrev Axel Bojer:
> | [Axel Bojer]
> | > /dev/ide/host2/bus0/target0/lun0/part1 - main  partition 462,78MB
> | > /dev/ide/host2/bus0/target0/lun0/part2 - main  partition, 36,82MB
> | > /dev/ide/host2/bus0/target0/lun0/part5 - extended partition, 8,33
> | > /dev/ide/host2/bus0/target0/lun0/part6 - extended partition, 24,6
(...)
> Jonas wrote:
>
> So what you need to do is the following:
>
> 1) shrink e2fs partitions on vol_too_large using e2fsadm
>
> Would this mean for instance:
> e2fsadmin -L -5GB  /dev/ide/host2/bus0/target0/lun0/part6 ?
>
> 2) add temporary partition (big enough to replace) to vol_too_large
>
> Ok, this means, I suppose:
> lvcreate MY_NEW_PARTITION /dev/ide/host2/bus0/target0/lun0/part6
> (that is on vg_data, that is «vol_too_large»)
>
> 3) remove original physical partition from vol_too_large
> how?
>
> 4) repartition physical disk to split the now free partition in two
>
> I suppose you mean using cfdisk or something?
> Can someone guide me a bit closer on this?
> I do not want to damage anything ...
>
> 5) reboot to make the system recognize new partitioning names
>
> OK
>
> 6) add first half of divided physical partition to vol_too_large
>
> How can i make sure i am using the right part?
> I suppose again you mean using cfdisk or something?
> (By the way, perhaps partitionmagic can do, we have a CD here, but it did
> not start up as i tested it, our server is capable of starting from a cd,
> so this shhould not be the point though ... I also have some floppies for
> PM ...)
>
> 7) remove temporary partition
>
> Ditto?
>
> 8) add second half of divided physical partition to vol_too_small
>
> lvcreate? e2fsadm?
>
> 9) extend e2fs partitions on vol_too_small using e2fsadm
>
> for instance
> e2fsadm -L + 5G /dev/vg_system/lv_var
> ??

Quick summary: 
The problems was our HD is divided in two, and we wanted to use the unused 4GB 
in the on partition on the second. I found no way to do this with VM, 
although I was told it ought to be possible, Jonas sent the above included 
solution.

We solved this different: We made a new partition out of the remnaining 4 GB 
(hde7), and this way gave the server/us access to the the last unused parts 
of our harddisk.

Regards 
Axel



Reply to: