So I guess next version/update of Solaris will be released in August of 2011? Solaris 10 8/11 (update 10). Such a long wait, I was hoping to see it earlier. Wanted to play with zfs new features, especially dedupliication. Oh well, will have to wait since I cant move to either open solaris oe solaris express…
So Sun, ups, I think I should say Oracle released Solaris 10 U7. Here are the few things what I did find whats new:
•System Resources Enhancement
- Support Added for Using ZFS Clones When Cloning a Zone
- zoneadm attach -b Option. You can back out certain patches from update on attach
•System Administration Enhancements
- SMF Services for IPsec. IPsec is now managed by SMF services
•Security Enhancement
- NAT-Traversal for IPsec Key Management Developers
- Stronger Algorithms for IPsec. Three larger Diffie-Hellman integer-modulus groups (2048-bit, 3072-bit, and 4096-bit) as well as SHA2 including sha256, sha384, and sha512? SHA-2 using HMAC.
- SunSSH With OpenSSL PKCS#11 Engine Support
•Device Management Enhancements
- x86: T-State Support for Intel Based Processors
•System Performance Enhancements
- Large Segment Offload Support for Intel PCI Express 10Gb NIC Driver
- Solaris Power Aware Dispatcher and Deep C-State Support
•Developer Tools Enhancements
- SunVTS 7.0 Patch Set 5
- x86: CPU Performance Counter Updates for Intel Processors
- SUNWpatchutils Tool
•Driver Enhancements
- hermon Driver
- iSCSI Target – upgraded and several performance, scalability, interoperability, and reliability improvements.It´s not the COMSTAR target.
- x86: NetXen 10-GigE Device Driver
- Intel ICH10 and Hartwell NIC Support in E1000g Driver
- xge Driver Can Enable Multiple Receive Rings and MSI-X
•Other Enhancements
- New Locale Support for Kazakhstan and Ukraine
- SPARC: Fp-scrubber Daemon
Read more…
I have solaris 10 and I have test user, I have then direcotry created as events, when I do rm -r events I get the following error:
rm: cannot determine if this is an ancestor of the current working directory events
rm -rf does not even show me anything but directory is not being removed
One of the solutions that I’ve found in my case was to change user to root even though the owner of the diretories or files is test, of try the following comand:
find . -depth -exec rmdir {} \;
Some time ago there used to be UNIX magazine called Sys Admin, it was great and I did like it a lot, had lots of great articles and practical how-to’s, then it just did disapear. I did capture one of those articles which I found quite usefull in creating mysql cluster but also it has great exmple on solris 10 zones nd resource control. Hope its author will not mind, but if he does I can take it down.
Sys Admin MySQL 5 Cluster with Solaris(TM) 10 Zones-ZFS-Resource Control
Derek Crudgington
Read more…
Starting up opsware on solaris is not a problem and its done quite easily, now doing this on solaris 10 via smf is not that difficult either, I wish opsware did this out of the box, but still not a big deal. There used to be service called: es.opensolarisblog.org/easySMF where you could construct xml file quite easily for this. I cant find this URL to be working any longer so I wanted to make sure that I put all that stuff out what I have
First you need xml file. This is what I have that I was able to create back when that website was available:
$ cat smf_opsware.xml
<?xml version=”1.0″?>
<!DOCTYPE service_bundle SYSTEM “/usr/share/lib/xml/dtd/service_bundle.dtd.1″>
<!–
Read more…
In the past you had real CPU’s and it was not a problem to determine what exactly you had in your SPARC system, now days with multi core and multi threaded CPU’s its more and more difficult to figure out if you have just one socket (real CPU) or multiple cores or even threads as it is on T2000 series.
Easiest way is to take a look at the following command with -pv options:
# psrinfo -pv
The physical processor has 2 virtual processors (0 16)
UltraSPARC-IV+ (portid 0 impl 0×19 ver 0×22 clock 1500 MHz)
The physical processor has 2 virtual processors (2 18)
UltraSPARC-IV+ (portid 2 impl 0×19 ver 0×22 clock 1500 MHz)
# uname -a
SunOS server1 5.10 Generic_137111-08 sun4u sparc SUNW,Sun-Fire-V490
#
# psrinfo -pv
The physical processor has 16 virtual processors (0-15)
UltraSPARC-T1 (cpuid 0 clock 1000 MHz)
# uname -a
SunOS server2 5.10 Generic_137111-08 sun4v sparc SUNW,Sun-Fire-T200
#
Read more…
# cd
mount -F pcfs /dev/dsk/c2t0d0s2:c /rmdisk/noname
# rmformat
Looking for devices…
1. Volmgt Node: /vol/dev/aliases/cdrom0
Logical Node: /dev/rdsk/c1t0d0s2
Physical Node: /pci@7c0/pci@0/pci@1/pci@0/ide@8/sd@0,0
Connected Device: MATSHITA CD-RW CW-8124 DZ13
Device Type: DVD Reader
2. Volmgt Node: /vol/dev/aliases/rmdisk0
Logical Node: /dev/rdsk/c2t0d0s2
Physical Node: /pci@7c0/pci@0/pci@1/pci@0/usb@6/hub@1/storage@1/disk@0,0
Connected Device: KINGMAX USB2.0 Flashdisk 2.00
Device Type: Removable
#
# rmformat
Looking for devices…
1. Volmgt Node: /vol/dev/aliases/cdrom0
Logical Node: /dev/rdsk/c1t0d0s2
Physical Node: /pci@7c0/pci@0/pci@1/pci@0/ide@8/sd@0,0
Connected Device: MATSHITA CD-RW CW-8124 DZ13
Device Type: DVD Reader
2. Volmgt Node: /vol/dev/aliases/rmdisk0
Logical Node: /dev/rdsk/c2t0d0s2
Physical Node: /pci@7c0/pci@0/pci@1/pci@0/usb@6/hub@1/storage@1/disk@0,0
Connected Device: KINGMAX USB2.0 Flashdisk 2.00
Device Type: Removable
# umount /rmdisk/noname/
# rmmount /dev/dsk/c2t0d0s2 /rmdisk/noname/
# cd /rmdisk/noname/
# sc>
sc> console -f
Enter #. to return to ALOM.
y
y: not found
#
#
# bash
# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t0d0s0 20655025 4612555 15835920 23% /
/devices 0 0 0 0% /devices
ctfs 0 0 0 0% /system/contract
proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
swap 15060576 1216 15059360 1% /etc/svc/volatile
objfs 0 0 0 0% /system/object
/platform/SUNW,Sun-Fire-T200/lib/libc_psr/libc_psr_hwcap1.so.1
20655025 4612555 15835920 23% /platform/sun4v/lib/libc_psr.so.1
/platform/SUNW,Sun-Fire-T200/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
20655025 4612555 15835920 23% /platform/sun4v/lib/sparcv9/libc_psr.so.1
fd 0 0 0 0% /dev/fd
swap 15314840 255480 15059360 2% /tmp
swap 15059432 72 15059360 1% /var/run
/dev/dsk/c0t0d0s7 31333125 6780341 24239453 22% /export/home
mypool 70189056 24 47764727 1% /mypool
mypool/zones 70189056 29 47764727 1% /zones
mypool/zones/titan1 70189056 1448136 56539959 3% /zones/titan1
mypool/zones/william1
70189056 1365715 56610394 3% /zones/william1
/vol/dev/dsk/c1t0d0/sol_10_1106_sparc/s6
31 2 26 8% /cdrom/sol_10_1106_sparc/s6
/vol/dev/dsk/c1t0d0/sol_10_1106_sparc/s5
31 2 26 8% /cdrom/sol_10_1106_sparc/s5
/vol/dev/dsk/c1t0d0/sol_10_1106_sparc/s4
31 2 26 8% /cdrom/sol_10_1106_sparc/s4
/vol/dev/dsk/c1t0d0/sol_10_1106_sparc/s3
31 2 26 8% /cdrom/sol_10_1106_sparc/s3
/vol/dev/dsk/c1t0d0/sol_10_1106_sparc/s2
31 2 26 8% /cdrom/sol_10_1106_sparc/s2
/vol/dev/dsk/c1t0d0/sol_10_1106_sparc/s1
162303 146427 0 100% /cdrom/sol_10_1106_sparc/s1
/vol/dev/dsk/c1t0d0/sol_10_1106_sparc/s0
3929110 3929110 0 100% /cdrom/sol_10_1106_sparc/s0
mypool/zones/tomorrow1p_old
70189056 777574 47764727 2% /zones/tomorrow1p_old
mypool/zones/tomorrow1p
70189056 539870 47764727 2% /zones/tomorrow1p
/vol/dev/dsk/c2t0d0/noname:c
2014912 32 2014880 1% /rmdisk/noname
# cd /rmdisk/noname/
# ls -la
total 34
drwxrwxrwx 1 root root 16384 Dec 31 1969 .
drwxr-xr-x 3 root nobody 512 Jul 23 09:37 ..
# df -k .
Filesystem kbytes used avail capacity Mounted on
/vol/dev/dsk/c2t0d0/noname:c
2014912 32 2014880 1% /rmdisk/noname
# touch test
touchJul 23 10:18:35 nrhweb01 scsi: Device is gone
: test cannot create
Jul 23 10:18:35 nrhweb01 usba: WARNING: /pci@7c0/pci@0/pci@1/pci@0/usb@6/hub@1/storage@1 (scsa2usb0): Disconnected device was busy, please reconnect.
# Jul 23 10:18:35 nrhweb01 usba: WARNING: /pci@7c0/pci@0/pci@1/pci@0/usb@6/hub@1/storage@1 (scsa2usb0): Reinserted device is accessible again.
# cd /
# /etc/init.d/volmgt
volmgt volmgt.118833-36
# /etc/init.d/volmgt stop
# /etc/init.d/volmgt start
volume management starting.
#
#
#
# pwd
/
# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t0d0s0 20655025 4612380 15836095 23% /
/devices 0 0 0 0% /devices
ctfs 0 0 0 0% /system/contract
proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
swap 15060632 1216 15059416 1% /etc/svc/volatile
objfs 0 0 0 0% /system/object
/platform/SUNW,Sun-Fire-T200/lib/libc_psr/libc_psr_hwcap1.so.1
20655025 4612380 15836095 23% /platform/sun4v/lib/libc_psr.so.1
/platform/SUNW,Sun-Fire-T200/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
20655025 4612380 15836095 23% /platform/sun4v/lib/sparcv9/libc_psr.so.1
fd 0 0 0 0% /dev/fd
swap 15314896 255480 15059416 2% /tmp
swap 15059488 72 15059416 1% /var/run
/dev/dsk/c0t0d0s7 31333125 6780341 24239453 22% /export/home
mypool 70189056 24 47764727 1% /mypool
mypool/zones 70189056 29 47764727 1% /zones
mypool/zones/titan1 70189056 1448136 56539959 3% /zones/titan1
mypool/zones/william1
70189056 1365715 56610394 3% /zones/william1
mypool/zones/tomorrow1p_old
70189056 777574 47764727 2% /zones/tomorrow1p_old
mypool/zones/tomorrow1p
70189056 539870 47764727 2% /zones/tomorrow1p
# svcs -a | grep vol
online 10:19:07 svc:/system/filesystem/volfs:default
# svcadm restart svc:/system/filesystem/volfs:default
# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t0d0s0 20655025 4612436 15836039 23% /
/devices 0 0 0 0% /devices
ctfs 0 0 0 0% /system/contract
proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
swap 15057496 1224 15056272 1% /etc/svc/volatile
objfs 0 0 0 0% /system/object
/platform/SUNW,Sun-Fire-T200/lib/libc_psr/libc_psr_hwcap1.so.1
20655025 4612436 15836039 23% /platform/sun4v/lib/libc_psr.so.1
/platform/SUNW,Sun-Fire-T200/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
20655025 4612436 15836039 23% /platform/sun4v/lib/sparcv9/libc_psr.so.1
fd 0 0 0 0% /dev/fd
swap 15311752 255480 15056272 2% /tmp
swap 15056344 72 15056272 1% /var/run
/dev/dsk/c0t0d0s7 31333125 6780341 24239453 22% /export/home
mypool 70189056 24 47764725 1% /mypool
mypool/zones 70189056 29 47764725 1% /zones
mypool/zones/titan1 70189056 1448136 56539957 3% /zones/titan1
mypool/zones/william1
70189056 1365715 56610392 3% /zones/william1
mypool/zones/tomorrow1p_old
70189056 777574 47764725 2% /zones/tomorrow1p_old
mypool/zones/tomorrow1p
70189056 539870 47764725 2% /zones/tomorrow1p
/vol/dev/dsk/c1t0d0/sol_10_1106_sparc/s0
20655025 4612436 15836039 23% /cdrom/sol_10_1106_sparc/s0
#
#
#
# format
Searching for disks…done
Read more…
/usr/sbin/smcwebserver start
Registering com.sun.web.console_2.2.4.
Registering com.sun.web.ui_2.2.4.
Registering /usr/share/webconsole/lib/serviceapi.jar
as com_sun_management_services_api.jar for scope ALL
Registering /usr/share/webconsole/lib/serviceimpl.jar
as com_sun_management_services_impl.jar for scope ALL
Registering /usr/share/webconsole/lib/consoleimpl.jar
as com_sun_management_console_impl.jar for scope ALL
Read more…
To overide the ALOM password on the system you will need to:
1) Attach console to Serial Management Port
2) Power on the server via the front power button. Once POST has completed, you will need to wait 1 to 2 minutes for a timeout to occur and the system to drop to the “ok>” prompt.
If you do not get the “Please login:” prompt (you will likely see the SC prompt) then you must power the system off remove the battery from the LOM board, wait a minute, and re-install everything).
Below is an example of what you might see on the console:
Read more…
1. List system services
% svcs
% svcs -av // all services; online & offline
2. List a particular service
% svcs -l nfs/nlockmgr // service info
% svcs -p system/sac // processes associated with the service
Read more…