* -G to smaller doesn't move superblock... is there _any_ way to shrink?
@ 2009-11-06 12:53 Thomas Arthur Oehser
2009-11-06 19:14 ` NeilBrown
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Arthur Oehser @ 2009-11-06 12:53 UTC (permalink / raw)
To: linux-raid
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".
-Tom
--
"Let us do our duty in our shop or our kitchen, the market, the street, the
office, the school, the home, just as faithfully as if we stood in the front
rank of some great battle, and we knew that victory for mankind depended upon
our bravery, strength, and skill. When we do that the humblest of us will be
serving in that great army which achieves the welfare of the world."
--Theodore Parker
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: -G to smaller doesn't move superblock... is there _any_ way to shrink?
2009-11-06 12:53 -G to smaller doesn't move superblock... is there _any_ way to shrink? Thomas Arthur Oehser
@ 2009-11-06 19:14 ` NeilBrown
2009-11-06 22:37 ` Michael Evans
0 siblings, 1 reply; 3+ messages in thread
From: NeilBrown @ 2009-11-06 19:14 UTC (permalink / raw)
To: Thomas Arthur Oehser; +Cc: linux-raid
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: -G to smaller doesn't move superblock... is there _any_ way to shrink?
2009-11-06 19:14 ` NeilBrown
@ 2009-11-06 22:37 ` Michael Evans
0 siblings, 0 replies; 3+ messages in thread
From: Michael Evans @ 2009-11-06 22:37 UTC (permalink / raw)
To: NeilBrown; +Cc: Thomas Arthur Oehser, linux-raid
> 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
That's one more reason to use the 1.1 or 1.2 format for everything
except /boot .
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-11-06 22:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-06 12:53 -G to smaller doesn't move superblock... is there _any_ way to shrink? Thomas Arthur Oehser
2009-11-06 19:14 ` NeilBrown
2009-11-06 22:37 ` Michael Evans
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).