linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* upgrading the superblock version
@ 2011-07-21  9:06 Vasco Névoa
  2011-07-21 15:44 ` Vasco Névoa
  2011-07-31  4:47 ` Simon Matthews
  0 siblings, 2 replies; 3+ messages in thread
From: Vasco Névoa @ 2011-07-21  9:06 UTC (permalink / raw)
  To: linux-raid


Hello.

I'd like to know if it is possible to upgrade the superblock model  
version of an array, from 0.9 to 1.0 for example.

Theoretically it should be possible, I think. What would be the safe  
steps to do it?

I imagine something like:
- zeroing the current superblocks in all the array disks;
- (optionally) assembling the array in "build" mode, ignoring superblocks;
- updating the superblocks using the desired version.

If that isn't possible, then:
- zeroing the current superblocks in all the array disks;
- creating a new array with those disks, using the desired superblock  
version and --assume-clean;
- would this lead to the loss of the partition table inside the array?

Has anyone done such a thing?
How should I proceed?

Thanks,
Vasco.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: upgrading the superblock version
  2011-07-21  9:06 upgrading the superblock version Vasco Névoa
@ 2011-07-21 15:44 ` Vasco Névoa
  2011-07-31  4:47 ` Simon Matthews
  1 sibling, 0 replies; 3+ messages in thread
From: Vasco Névoa @ 2011-07-21 15:44 UTC (permalink / raw)
  To: linux-raid


I have read success reports that using "--create" on an array that  
already exists should preserve the disk data.
So to upgrade the superblock version one can simply do a --create with  
newer version requested?

What exactly happens to the partition and filesystem on the disk when  
one does mdadm --create or --zero-superblock?
Does it get altered at all?


Citando Vasco Névoa <vasco.nevoa@sapo.pt>:

>
> Hello.
>
> I'd like to know if it is possible to upgrade the superblock model  
> version of an array, from 0.9 to 1.0 for example.
>
> Theoretically it should be possible, I think. What would be the safe  
> steps to do it?
>
> I imagine something like:
> - zeroing the current superblocks in all the array disks;
> - (optionally) assembling the array in "build" mode, ignoring superblocks;
> - updating the superblocks using the desired version.
>
> If that isn't possible, then:
> - zeroing the current superblocks in all the array disks;
> - creating a new array with those disks, using the desired  
> superblock version and --assume-clean;
> - would this lead to the loss of the partition table inside the array?
>
> Has anyone done such a thing?
> How should I proceed?
>
> Thanks,
> Vasco.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: upgrading the superblock version
  2011-07-21  9:06 upgrading the superblock version Vasco Névoa
  2011-07-21 15:44 ` Vasco Névoa
@ 2011-07-31  4:47 ` Simon Matthews
  1 sibling, 0 replies; 3+ messages in thread
From: Simon Matthews @ 2011-07-31  4:47 UTC (permalink / raw)
  To: Vasco Névoa; +Cc: linux-raid

Vasco,

2011/7/21 Vasco Névoa <vasco.nevoa@sapo.pt>:
>
> Hello.
>
> I'd like to know if it is possible to upgrade the superblock model version
> of an array, from 0.9 to 1.0 for example.

See the discussion with the subject  "Can't start array and Negative
"Used Dev Size" in this mailing list. You will see that I was advised
to do this very thing and given instructions on how to do it. 0.9 to
1.0 is possible, but not to 1.1 or 1.2

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-07-31  4:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-21  9:06 upgrading the superblock version Vasco Névoa
2011-07-21 15:44 ` Vasco Névoa
2011-07-31  4:47 ` Simon Matthews

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).