Author Archives: Dave - Page 3

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!

Shutdown omnios

sudo shutdown -y -i5 -g0

Restart SSH Omnios

svcadm restart ssh

Create ZFS RAID 10 with mirror ZIL

zpool create tank mirror c13t0d0 c13t0d1 mirror c13t0d6 c13t0d7
zpool add tank log mirror c4t0d0 c4t1d0

Static Networking Omnios

svcadm enable svc:/network/physical:default
ipadm create-addr -T static -a 192.168.0.124/24 igb0/v4static
route -p add default 192.168.0.1
svcadm restart svc:/network/physical:default

add hostname + ip in:
vi /etc/hosts

add nameservers in
vi /etc/resolv.conf
cp /etc/nsswitch.dns /etc/nsswitch.conf