I found this on opensolaris forums…. A nice way to increase your swap without the need for a reboot.
First check your current swap size and details;
swap -lh
or
zfs list
Then create a temp swap zfs store and delete and increase swap
zfs create -V <old size> rpool/swp
swap -a /dev/zvol/dsk/rpool/swp
swap -d /dev/zvol/dsk/rpool/swap
zfs destroy rpool/swap
zfs create -V <new size> rpool/swap
swap -a /dev/zvol/dsk/rpool/swap
swap -d /dev/zvol/dsk/rpool/swp
zfs destroy rpool/swp
Done.
If you are happy to reboot…
zfs set volsize=8G rpool/swap
reboot
I ran through a pkg verify the other day and came across a lot of errors. Running the subsequent pkg fix command presented me with this…
pkg: Requested “install” operation would affect files that cannot be modified in live image.
Please retry this operation on an alternate boot environment.
This is the fix….
mkdir /mnt/osol-134fix
beadm create osol-134fix
beadm mount osol-134fix /mnt/osol-134fix
pkg -R /mnt/osol-134fix fix –accept
beadm activate osol-134fix
Then reboot your machine into the new boot image
Errr, I cant find the CIFS service in the 134 build.
I know it was renamed to as per below but still cant see it anywhere?
> system/file-system/smb (was SUNWsmbfs*)
> service/file-system/smb (was SUNWsmbs*)
Anyone have any ideas?
pkg search *smb gets me these… but i cant install them.
require depend service/file-system/smb@0.5.11-0.134 pkg:/redistributable@0.1-0.134
require depend service/file-system/smb@0.5.11-0.134 pkg:/storage/storage-server@0.1-0.134
require depend service/file-system/smb@0.5.11-0.134 pkg:/system/security/kerberos-5@0.5.11-0.134
require depend service/file-system/smb@0.5.11-0.134 pkg:/storage/storage-nas@0.1-0.134
require depend system/file-system/smb@0.5.11-0.134 pkg:/redistributable@0.1-0.134
require depend system/file-system/smb@0.5.11-0.134 pkg:/storage/storage-server@0.1-0.134
require depend system/file-system/smb@0.5.11-0.134 pkg:/slim_install@0.1-0.134
pkg install system/file-system/smb
No updates necessary for this image.
pkg install service/file-system/smb
Creating Plan
pkg: The following pattern(s) did not match any packages in the current catalog.
Try relaxing the pattern, refreshing and/or examining the catalogs:
service/file-system/smb
Update 23/05/2010
Problem was due to errors within package manager — see this post
Want iSCSI in opensolaris?
Grab SUNWiscsitgt via package manager.
enable the server via svcadm;
svcadm enable iscsitgt
create your zfs iscsi pool; (this command will limit iscsi drive to 500GB in size)
zfs create -V 500G tank/iscsi
set isci on via zfs command;
zfs set shareiscsi=on tank/iscsi
check that target is up and running;
iscsitadm list target -v
Done. Should be able to connect via ip from another machine. I have not covered CHAP or any client side configuration. Assumed isolated LAN.
