At the source server:
zfs snapshot zones/testzone@today
zfs send zones/testzone@today | gzip > /snappie.gz
At the destination server:
gzcat snappie.gz | zfs receive -F zones/testzone
some Unix notes
At the source server:
zfs snapshot zones/testzone@today
zfs send zones/testzone@today | gzip > /snappie.gz
At the destination server:
gzcat snappie.gz | zfs receive -F zones/testzone
# grep VOL vxdisplay_s.txt| awk '{print "vxassist -g rez2_datadg make "$3 " " int($(NF -1)*1024)"m" }'
# echo “PLATFORM_GROUP=sun4v” >> /var/sadm/system/admin/.platform
# nohup flarcreate -n `uname -n` -U “content_architectures=sun4u,sun4v” -c -S -R / /b/`uname -n`.flar &
# haconf -dump -makero
# hastop -all -force
# cd /etc/VRTSvcs/conf/config
# vi main.cf
# hacf -verify .
# hastart
If your server doesn’t have a CDOM, you could create one by running something like this (create_config.ksh):
ldm add-vdiskserver primary-vds0 primary ldm add-vconscon port-range=5000-5100 primary-vcc0 primary ldm add-vswitch net-dev=igb0 primary-vsw0 primary ldm add-vswitch net-dev=nxge0 primary-vsw1 primary ldm set-vcpu 4 primary ldm set-memory 1g primary ldm add-config initial ldm list-config
Reboot the server.
Now let’s say you want to create an LDOM in that server, login to the cdom and do something like this (create_myldom.ksh):
ldm add-domain myldom ldm set-vcpu 16 myldom ldm set-memory 13G myldom ldm add-vnet vnet1 primary-vsw0 myldom ldm add-vnet vnet2 primary-vsw1 myldom ldm add-vdsdev /dev/dsk/
c0t600601605A203100A44CDC74C08 2E211d0s2 vol2@primary-vds0 ldm add-vdisk vdisk0 vol2@primary-vds0 myldom ldm bind myldom ldm set-var auto-boot?=true myldom ldm start-domain myldom
If you want to find the lines “b” is missing from “a”
# fgrep -vxf b a
rsync -e "ssh -p 44" --progress -rtva myuser@myserver.x:/some/directory/ /somewhere/
The SheepShaver preferences file is in your user’s home, for instance mine is in /Users/robertodircio/.sheepshaver_prefs
the setting to enable fullscreen is:
screen dga/0/0
to have windowed mode, change that to:
screen win/800/600
if you want to clear the linux cached memory run “echo 3 > /proc/sys/vm/drop_caches”
root@pc:~# free total used free shared buffers cached Mem: 3951136 2979376 971760 0 29704 2488576 -/+ buffers/cache: 461096 3490040 Swap: 3050492 2268 3048224 root@pc:~# echo 3 > /proc/sys/vm/drop_caches root@pc:~# free total used free shared buffers cached Mem: 3951136 511264 3439872 0 1828 99752 -/+ buffers/cache: 409684 3541452 Swap: 3050492 2268 3048224
it clears it all 🙂
great for scripting 🙂
# ./emcgrab -quiet -legal