zfs set compression=lz4 <dataset>
enable lz4 compression on pool
ZFS Feature Flags
zpool set feature@lz4_compress=enabled tank
New Omnios Stable!
RPOOL Mirror
we need to fdisk the partition of the second drive with:
pfexec fdisk -B c13t1d1s0
Copy label from the original rpool member
pfexec prtvtoc /dev/rdsk/c13t1d0s0 | pfexec fmthard -s - /dev/rdsk/c13t1d1s0
Attach mirror drive to the pool
zpool attach -f rpool c13t1d0s0 c13t1d1s0
Install grub on the second drive.
installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c13t1d1s0
Zpool creations
Raid 10 with spare
zpool create tank mirror c13t1d2 c13t1d3 mirror c13t1d4 c13t1d5 zpool add tank spare c13t1d6
raidz1 with zil and l2arc
zpool create -f tank1 raidz1 c13t1d7 c13t2d0 c13t2d1 c13t2d2 c13t2d3 c13t2d4 c13t2d5 c13t2d6 c13t2d7 c13t3d1 c13t3d2 c13t3d3 c13t3d4 c13t3d5
zpool add tank1 log c13t4d0 zpool add -f tank1 cache c13t3d6
Resize XFS partition.
Unmount device
umount /mnt/nfs
load block device into parted
parted /dev/xvdc
change units to ‘s’
unit s
remove partition
rm 1
Recreate new partition
(parted) mkpart
Partition type? primary/extended? primary
File system type? [ext2]? xfs
Start? 2048s
End? -1
(parted) p
Model: Xen Virtual Block Device (xvd)
Disk /dev/xvdc: 251658240s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
remount device
mount /dev/xvdc1 /mnt/nfs
grow filesystem
xfs_growfs /mnt/nfs
meta-data=/dev/xvdc1 isize=256 agcount=4, agsize=6553452 blks
= sectsz=512 attr=2, projid32bit=0
data = bsize=4096 blocks=26213807, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0
log =internal bsize=4096 blocks=12799, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
great success.
monitor disk io wait omnios
iostat -xn
monitor cpu performance OMNIOS
sar -u 10 60
omnios iscsi
iscsi target isn’t configured out of the box with omnios, you need to install the target:
root@omnios:~# pkg install pkg:/network/iscsi/target
then enable
root@omnios:~# svcadm enable stmf
omnios showmount: RPC: Program not registered
On a vanilla install of omnios, shutdown command fails due to the system being unable to execute showmount.
To resolve this issue you must enable NFS which also requires that you share a directory, below are the steps involved:
echo 'share -F nfs -o ro=test -d "test directory" /export/home' >> /etc/dfs/dfstab
svcadm enable network/nfs/server
to ensure this has worked correctly execute
showmount
this should not return any errors.. simply execute shutdown and you should be back on your way!
Recent Comments