Re: Migrate to different FS layout of OpenBSD
On Sun, 07 Apr 2024 12:02:05 +0200, Stuart Henderson wrote: > > softraid doesn't allow creating a 'degraded mirror' i.e. a single drive > that you can later add another drive to make a RAID1. You would need at > least one spare drive to do what you want. > Thanks, that is a kind of inside which I've been looking for. -- wbr, Kirill
Re: Migrate to different FS layout of OpenBSD
On 2024-04-06, Kirill A Korinsky wrote: > On Sat, 06 Apr 2024 23:14:39 +0200, > Peter Hessler wrote: >> >> RAID0 is called that because zero is what you'll recover if you lose a >> disk. This is amazingly dangerous, and you're going to have a bad time. >> >> Do a backup, then restore from backup. >> > > I was totally misslead. I mean that I have RAID1 which is know as mirror. > > To be clear: here a two identical servers where I'd like to change FS > layout, and before I go to reinstall everything, I can try this approach. softraid doesn't allow creating a 'degraded mirror' i.e. a single drive that you can later add another drive to make a RAID1. You would need at least one spare drive to do what you want. -- Please keep replies on the mailing list.
Re: Migrate to different FS layout of OpenBSD
On Sat, 06 Apr 2024 23:14:39 +0200, Peter Hessler wrote: > > RAID0 is called that because zero is what you'll recover if you lose a > disk. This is amazingly dangerous, and you're going to have a bad time. > > Do a backup, then restore from backup. > I was totally misslead. I mean that I have RAID1 which is know as mirror. To be clear: here a two identical servers where I'd like to change FS layout, and before I go to reinstall everything, I can try this approach. -- wbr, Kirill
Re: Migrate to different FS layout of OpenBSD
Kirill A. Korinsky writes: > Folks, > > I'm looking for a way to migrate to different layout some OpenBSD systems. > > So, questions: > 1. Has anyone done something like this before? > 2. Do you have any instruction or that to expect? Yes. What to expect? There is a very good chance data will be lost, so before you proceed back everything up. Of course no backup is complete without testing that it can be restored, so verify that you can turn your backup back into a working system. Because you now have a backup abandon the idea of doing shenanigans that will probably go wrong and install OpenBSD fresh on a set of discs formatted however you like then restore your backup. Matthew
Re: Migrate to different FS layout of OpenBSD
RAID0 is called that because zero is what you'll recover if you lose a disk. This is amazingly dangerous, and you're going to have a bad time. Do a backup, then restore from backup. On 2024 Apr 06 (Sat) at 22:43:05 +0200 (+0200), Kirill A. Korinsky wrote: :Folks, : :I'm looking for a way to migrate to different layout some OpenBSD systems. : :All of them has RAID0 and as far as I think I may something like this: : :1. Remove second disk from RAID. :2. Build a new RAID0 on the second disk. :3. Make desires layout on the second RAID. :4. dump | restore :5. Boot from the second RAID. :6. Add the first disk to the second RAID. : :I have re-read https://www.openbsd.org/faq/faq14.html a few times and I :feel that this is quite risky. : :So, questions: :1. Has anyone done something like this before? :2. Do you have any instruction or that to expect? : :Thanks in advance. : :-- :wbr, Kirill : -- Celebrate Hannibal Day this year. Take an elephant to lunch.
Migrate to different FS layout of OpenBSD
Folks, I'm looking for a way to migrate to different layout some OpenBSD systems. All of them has RAID0 and as far as I think I may something like this: 1. Remove second disk from RAID. 2. Build a new RAID0 on the second disk. 3. Make desires layout on the second RAID. 4. dump | restore 5. Boot from the second RAID. 6. Add the first disk to the second RAID. I have re-read https://www.openbsd.org/faq/faq14.html a few times and I feel that this is quite risky. So, questions: 1. Has anyone done something like this before? 2. Do you have any instruction or that to expect? Thanks in advance. -- wbr, Kirill