Re: -G to smaller doesn't move superblock... is there _any_ way to shrink?

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

 



On Fri, November 6, 2009 11:53 pm, Thomas Arthur Oehser wrote:
>
> So, I thought the logical sequence was:
>
> 	resize2fs <smaller>
> 	mdadm -G -z <smaller>
> 	fdisk <smaller>
>
> ... but ...
>
> the mdadm -G -z <smaller> seems to leave the superblock at the end of the
> partition...
>
> Is there _any_ way to do what I'm trying to do?  I don't see options to
> tell it I want
> the superblock to be at offset X or that the partition is "going to be"
> smaller... and
> I don't see options for switching the superblock format and moving stuff
> around... and
> I'm really not wanting to do --create and cross my fingers that everything
> "just works".

Other than using --create, which isn't much of a risk, the only
way to do what you want is to fail and remove each device
from the array, resize the device, add it back to the array, then
when recovery completes, move on to the next device.

NeilBrown

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux