Greetings all,
thank you all for your answers, which I appreciate very much. Just so we are on the same page, let me restate what I understand your answers to be.
gkontos,
from your last post I understand that you now believe that the procedure will work. Please note that I am offlinig the md2 once I have created the zpool.
# zpool create -m /mnt newpool raidz2 disk{2,3,4,5,6,md2}
# zpool newpool offline /dev/md2
usdmatt,
thank you for the confirmation and the suggested:
# truncate -s 1t /tmp/disk.img
I am not familiar with the command, do I use it instead of my proposed:
# dd if=/dev/zero of=/tmp/disk.img bs=1024k seek=149k count=1
and
# mdconfig -a -t vnode -f /tmp/disk.img md2
wblock@,
I am confused by your assertion:
In theory, sparse files for md(4) should work. In reality, problems are reported often enough that it should be avoided.
The md2 is used merely as a placeholder for creating the zpool. Since after the zpool creation the md2 is offlined, it will never be written to. Essentially, as I understand it, the
zfs now thinks that the zpool is degraded.
Or, did I misread your concern?
kpa,
like with wblock@, I am maybe missing your point made:
No, you can't build a raidz vdev from a single disk by attaching more disks. You must have the exact number of disks present when you create the vdev.
I am building the
raidz2 from five physical disks and md2. Consequently, I have 6 disks.
Also, the old contents of the disks that make up the vdev are destroyed at creation.
There is no content on the devices. This is the reason I modified Sebulon's procedure, which used one of the original mirror's devices. In my case, the mirror remains intact. The degraded zpool has one disk redundancy. Even if, after I break the mirror and use one of the disk's in the zpool, if something goes wrong, I still have the data on the second mirrored disk.
After creation of the raidz vdev it can not be modified in any way.
I do not believe that offlining is modification in that the
zfs thinks that the zpool contains the correct number of devices, yet due to one device being offline, the zpool is degraded.
Please do not hesitate to correct me if I made a false conclusion, I would hate to make an irreversible mistake despite the mirror being still intact.
Kindest regards,
M