Thursday, Paul Archer wrote:
Tomorrow, Fajar A. Nugraha wrote:
There was a post from Ricardo on zfs-fuse list some time ago.
Apparently if you do a "zpool create" on whole disks, Linux on
Solaris behaves differently:
- solaris will create EFI partition on that disk, and use the partition as
vdev
- Linux will use the whole disk without any partition, just like with
a file-based vdev.
The result is that you might be unable to import the pool on *solaris or
*BSD.
The recommended way to create a "portable" pool is to create the pool
on a partition setup recognizable on all those OS. He suggested a
simple DOS/MBR partition table.
So in short, if you had created the pool on top of sda1 instead of
sda, it will work. I'm surprised though that you can "offlined sda and
replaced it with sda1" when previously you said "I see that if I try
to replace sda with sda1, zpool complains that sda1 is too small"
I was a bit surprised about that, too. But I found that a standard PC/Linux
partition reserves around 24MB at the beginning of the disk, and an EFI (or
actually, GPT) disklabel and partition only uses a few 100KB.
As I mentioned above, I created GPT disklabels and partitions on all my
disks, then one-by-one offlined the disk and replaced it with the
partition from the same disk (eg 'zpool replace datapool ad1 ad1p1').
I did the first replacement with Linux and zfs-fuse. The resilver took 32
hours. I did the rest in FreeBSD, which took 5-6 hours for each disk.
It was tedious, but the pool is available in Solaris (finally!), so
hopefully no more NFS issues or kernel panics. (I had NFS issues with
both Linux and BSD, and kernel panics with BSD.)
Paul
PS. Complicating matters was the fact that for some reason, BSD didn't
like my LSI 150-6 SATA card (which is the only one Solaris plays nice
with), so I had to keep switching cards every time I went from one OS to
the other. Blech. OTOH, here's to Live CDs!
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss