View Single Post

   
  #2 (permalink)  
Old 01-16-2008, 03:32 PM
Logan Shaw
 
Posts: n/a
Default Re: partition changes

BN wrote:
> Part Tag Flag Cylinders Size Blocks
> 0 root wm 0 - 11892 16.06GB (11893/0/0) 33680976
> 1 swap wu 11893 - 12616 1001.16MB (724/0/0) 2050368
> 2 backup wm 0 - 12624 17.05GB (12625/0/0) 35754000
> 3 unassigned wm 0 0 (0/0/0) 0
> 4 unassigned wm 0 0 (0/0/0) 0
> 5 unassigned wm 0 0 (0/0/0) 0
> 6 unassigned wm 0 0 (0/0/0) 0
> 7 unassigned wm 12617 - 12624 11.06MB (8/0/0) 22656
>
>
> Is there anyway to cannibalize space from the swap partition (partition
> 2) and give it to partition 7 in this case?
>
> I only want to add another 10M to partition 7 so that I can add meta
> device database replica for the LVM.


Yes, that should be possible since they're contiguous. Partition 1
ends at cylinder 12616 and partition 7 begins at 12617.

If you can unmount everything on the drive, do that and then use
"swap -d" to turn off that swap area. Then just use format, make
partition 1 10MB smaller, make partition 7 begin at the the cylinder
after parition 1, then make partition 7 as big as possible.

By doing this, you will lose all the data on partitions 1 and 7.
That doesn't matter for partition 1 since it's just swap, but if
you have anything important on partition 7, you need to make
arrangements for that.

- Logan
Reply With Quote