zones: Use a zpool or mount as a raw device?

Hi,

I need to create 4 zones.

I have an array with a RAID5 volume. I have exported 4 LUNS from the array. Now my host see the 4 LUNS as raw devices.

I am partitioning each LUN using format then mounting each slice on the global zone. Then I am using each slice as a file system for my non global zones.

Would it be better to export my RAID5 volume as one LUN. Then add it to a zpool and mkfile for each of my filesystems?

Thanks,

GL

None of those ways is very good in my opinion. When you create one big zpool, you don't have to use "mkfile" to create "filesystem files". Just create four ZFS filesystems with "zfs create". The other way to use zpools is to create separate zpool for each zone. Then it would be possible for you to quickly migrate single zone to different storage array or server.

1 Like

Great, thanks for the reply.

So I could add my 4 LUNS to 4 separate zpool, then use zfs create to make the zones file systems?

Exactly.