Skip to main content

1. Decide the mode you want to configure zpool in (normal, mirror, raidz) and prepare the disks accordingly.

2. Set all the disks label to GPT:

    parted /dev/sdX   # get disk-id or disk-path from /dev/disk/by-id or /dev/disk/by-path

    mklabel gpt

3. Create a new zpool with following command:

   zpool create -o ashift=12 -O atime=off -O canmount=off -O compression=lz4 data_pool /dev/disk/by-id/<disk-id>

   if in raidz mode, at least 3 disks are needed:

  zpool create -o ashift=12 -O atime=off -O canmount=off -O compression=lz4 data_pool   raidz /dev/disk/by-id/<disk1-id> /dev/disk/by-id/<disk2-id> /dev/disk/by-id/<disk3-id>

  in mirror mode, at least two disks are needed.

  zpool create -o ashift=12 -O atime=off -O canmount=off -O compression=lz4 data_pool mirror /dev/disk/by-id/<disk1-id> /dev/disk/by-id/<disk2-id>

4. Mount the pool to appropriate mountpoint:

   zfs create -o mountpoint=<mount_point>  <poolName>/<filesystemName>

eg.  zfs create -o mountpoint=/data/store  Tank1/primary

5. Add the mount point to repo path. From li-admin, run:

    repodir add <mount_point>

eg. repodir add /data/store

Be the first to reply!

Reply