Wednesday Apr 21, 2010

Встреча Moscow OpenSolaris User Group

For those who can't read Russian: This is about local Moscow OpenSolaris User Group event. Sorry for being quiet so long. Working on certification and benchmarking...still.

Приглашаю всех заинтересованных на очередную встречу Moscow OpenSolaris User Group.

Помимо интересных технических рассказов об OpenSolaris у вас будет возможность встретиться с представителями теперь уже Oracle и услышать что мы делали и будем делать в плане поддержки компаний ISV (Independent Software Vendors).

Thursday Dec 03, 2009

OpenSolaris build 128 now availble - zfs dedup in it

I've being waiting for this update to try deduplication of zfs. Being knowing that a lot of files will be written as result of image update I set zfs compression including rpool file system (except swap and dump) before doing update. Zfs compression on my home files already being for one month and proved to save space/time/power.[Read More]

Sunday Nov 22, 2009

OpenSolaris build 01111111: what is interesting

It is second week I am running OpenSolaris build 127. Why important? It contains support of Solaris 10 branded zones. We did a lot of testing (especially RDBMS) running in Branded Zones. So now you may run your old applications and use modern features of OpenSolaris. Continue reading Solaris10-Branded Zone Developer Guide. Start using OpenSolaris now.

Thursday Oct 29, 2009

Ordinary user impressions of OpenSolaris updated to build 126

Its being a while since my last blog. And since many projects still in progress I will share my impression about recent build of OpenSolaris b126.

I am long time user of OpenSolaris. This is my tool for everyday work and I have it on my notebook. But still I am just a user, a little of admin, totally not a developer of this system. OpenSolaris 2009.06 was a major milestone with most every features polished to that date. But some was not as good as I wanted them to be. So I came a long road of updating to dev builds. I had all of them starting from 116 till 126. In every build there were improvements as well as new bugs. Only starting with 126 I can say that I feel good about it.

So here is the list why go dev and what you should be ready to. I am not writing in which release bug was fixed. Consider this as a "diff 111a 126" and I am not pretend to show all diff, this is only what is sensitive to me:

  • Firefox was beta in 2009.06 and bunch of needed addons does not work in this beta. That was first reason why I started to go dev. Probably I can go updating applications only, but I decided to have whole system recent. Firefox is 3.5.3 now.
  • System monitor applet had disk activity broken, but now it is fine.
  • Overwall system performance (Compiz at maximum visual, Firefox) performs much better. This is purely subjective.
  • Sound subsystem has changed. Keyboard beep annoying my coworkers. Did not get how to mute it or lower volume permanently.
  • Pidgin's yahoo icon problem is fixed. It was showing offline even when you connected. Pidgin is 2.6.2
  • In some builds printer monitor applet gone wild eating cpu. But now its fine.
  • I noticed that my /var was growing. This is due to each 'pkg update' is storing downloaded packages. Can be fixed with
$ pfexec pkg set-property flush-content-cache-on-success true
  • No more Ctrl-D in Terminal, have to use "exit". Didn't look at it yet. Typing "exit" may be annoying, but it saves from accidental closing of terminals. Right now I have just 5 opened sessions in terminal, usually more.
  • I have strange problem with Marvell Yukon Ethernet. Before 125 I had a driver from the vendor. But it does not work for build 125 and 126. So I decided to remove YUKONXsolx and give a try to yge. Something strange happening here. I have external USB disk drive attached. I use this drive periodically as rpool mirror to have a spare. As soon as I have this drive attached before the system booted my ethernet refuses to work. So I need to have USB disk drive detached when system boots. Details are here.
  • Now waiting for zfs dedup
  • Other frequently used applications: Rhythmbox with Audio.fm, Thunderbird, OpenOffice, QCAD, Gimp, Stellarium (Blastwave please update your repository with recent versions! and why it so rare online?), Adobe Reader.

Thursday Jul 23, 2009

Настройка GPRS модема в OpenSolaris

На моем ноутбуке до сих пор существуют две операционные системы. Первая — OpenSolaris build 118, в ней я постоянно работаю. И вторая — ее я использую для доступа в интернет на даче, а еще в ней установлен антивирус. Не первый раз возник вопрос, а нужна ли мне та вторая, может я смогу настроить модем в OpenSolaris?

Немного нагуглив я нашел руководство по настройке Nokia E71 в Vodafone UK. Остается все это переделать для SonyEricsson K750i в МТС.

приступаем, делаем ссылку для телефона и создаем файлы настроек.

# ln -s /dev/term/0 /dev/se750i
# touch /etc/ppp/options
# cat /etc/ppp/mts-chat
'' 'ATZ'
'OK' 'AT+CGDCONT=1,"IP","internet"'
'OK' 'ATD\*99#'
CONNECT ''

# cat /etc/ppp/peers/mts
modem
se750i
115200
noauth
noipdefault
defaultroute
usepeerdns
noccp
novj
user "mts"
nodetach
show-password
crtscts
connect "/usr/bin/chat -V -t15 -f /etc/ppp/mts-chat"

# echo 'mts \* mts \*' >> /etc/ppp/pap-secrets

# pppd call mts
ATZ
OK
AT+CGDCONT=1,"IP","internet"
OK
ATD\*99#
CONNECTSerial connection established.
Using interface sppp0
Connect: sppp0 <--> /dev/se750i
LCP: Rcvd Code-Reject for Identification id 223
Remote message: Congratulations!
local IP address 10.21.25.201
remote IP address 192.168.1.1
primary DNS address 213.87.0.1
secondary DNS address 213.87.1.1

для обрыва сеанса просто Ctrl-C
\^CTerminating on signal 2.
Connection terminated.
Connect time 8.6 minutes.
Sent 78100 bytes (702 packets), received 22106 bytes (40 packets). 

  
Пока единственное неудобство - необходимость заполнять файл /etc/resolv.conf:
# cat /etc/ppp/resolv.conf > /etc/resolv.conf  

Будем надеяться, что когда-нибудь pppd будет под контролем nwam.

Tuesday Mar 24, 2009

Adobe Reader 9.1 for Solaris and OpenSolaris x86.

Get in now

http://www.adobe.com/go/getreader

to install run as root on Solaris or do pfexec on OpenSolaris:

    $ chmod +x AdbeRdr9.1.0-1_i486solaris_enu.bin 
    $ pfexec ./AdbeRdr9.1.0-1_i486solaris_enu.bin 
    Extracting files, please wait. (This may take a while depending on the configuration of your machine) 
    This installation requires 171 MB of free disk space. 
    Enter installation directory for Adobe Reader 9.1.0 [/opt] 
    /opt 
    Installing platform independent files ... Done 
    Installing platform dependent files ... Done 
    Setting up libraries ... Done 
    Setting up desktop and menu icons ... Done 
    Setting up the browser plugin ... Done 

And you will get it on the system as well as Firefox plugin.

Wednesday Sep 24, 2008

Обновив версию zpool можно потерять GRUB

Для тех кто любит обновляться до последней версии будет полезно иметь в виду, что сделав только zpool upgrade, при последующей перезагрузке, а точнее при включении компа, вместо рабочего GRUB получите лишь его prompt. Например, я прошел путь OpenSolaris: 86, 96, 97 и теперь 98. Между билдами 86 и 98 версия ZFS pool сначала увеличилась с 11 до 12, а потом с 12 до 13. Я бы не обратил внимания, но к моему ноуту я периодически подключаю внешний USB диск (Lacie 250GB) для целей бекапа и смотрю, что говорит zpool status. Именно он и уговорил меня оба раза сделать zpool upgrade. И оба раза я наступал на эти грабли. Проблема в том, что при обновлении zpool upgrade необходимо обновлять и загрузчик GRUB. Бага уже принята в работу. Если Вы не сделали обновление загрузчика, то можете попытаться руками ему сказать откуда грузиться, но это не поможет:

GRUB> bootfs rpool/ROOT/opensolaris-2

GRUB> kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS

....
Error 17: cannot mount selected partition

Поэтому качаем DVD с новым релизом и с него делаем installgrub:

jack@opensolaris:~/Desktop$ su - 
Password: opensolaris
Sun Microsystems Inc. SunOS 5.11 snv_98 November 2008 
bash-3.2# zpool status
no pools available 
bash-3.2# zpool import 
 pool: rpool
 id: 1988807281359054800
 state: ONLINE
 status: The pool was last accessed by another system. 
 action: The pool can be imported using its name or numeric identifier and 
 the '-f' flag. 
 see: http://www.sun.com/msg/ZFS-8000-EY
 config: 
 rpool ONLINE 
 mirror ONLINE 
 c5t0d0s0 ONLINE 
 c3t0d0s0 ONLINE 
bash-3.2# zpool import -f rpool 
bash-3.2# installgrub -m /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c5t0d0s0 
 Updating master boot sector destroys existing boot managers (if any). 
 continue (y/n)? y 
 stage1 written to partition 1 sector 0 (abs 96406065) 
 stage2 written to partition 1, 267 sectors starting at 50 (abs 96406115) 
 stage1 written to master boot sector 
bash-3.2# installgrub -m /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c3t0d0s0 
 Updating master boot sector destroys existing boot managers (if any). 
 continue (y/n)? y 
 stage1 written to partition 0 sector 0 (abs 16065) 
 stage2 written to partition 0, 267 sectors starting at 50 (abs 16115) 
 stage1 written to master boot sector 
bash-3.2# zpool export rpool 
bash-3.2# init 6

 

Tuesday Sep 23, 2008

zpool upgrade broke GRUB

Need to say that I have OpenSolaris on my Sony Vaio laptop. And I am following newest releases of OpenSolaris: 86, 96, 97 and now 98. In between builds 86 and 98 ZFS pool version was increased twice from 11 to 12 and from 12 to 13. I am paying attention to zfs status because I have external USB drive attached (Lacie 250GB) for mirror (backup) purposes. So I was doing zfs upgrade two times and two times had a problem with next boot. The problem is that GRUB is not able to see new ZFS and so it brings GRUB prompt. You may try to enter GRUB entries by hands but this would not help you:

GRUB> bootfs rpool/ROOT/opensolaris-2

GRUB> kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS

....
Error 17: cannot mount selected partition

The solution is to get DVD of your build and boot from it. And then installgrub:

jack@opensolaris:~/Desktop$ su - 
Password: opensolaris
Sun Microsystems Inc. SunOS 5.11 snv_98 November 2008 
bash-3.2# zpool status
no pools available 
bash-3.2# zpool import 
 pool: rpool
 id: 1988807281359054800
 state: ONLINE
 status: The pool was last accessed by another system. 
 action: The pool can be imported using its name or numeric identifier and 
 the '-f' flag. 
 see: http://www.sun.com/msg/ZFS-8000-EY
 config: 
 rpool ONLINE 
 mirror ONLINE 
 c5t0d0s0 ONLINE 
 c3t0d0s0 ONLINE 
bash-3.2# zpool import -f rpool 
bash-3.2# installgrub -m /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c5t0d0s0 
 Updating master boot sector destroys existing boot managers (if any). 
 continue (y/n)? y 
 stage1 written to partition 1 sector 0 (abs 96406065) 
 stage2 written to partition 1, 267 sectors starting at 50 (abs 96406115) 
 stage1 written to master boot sector 
bash-3.2# installgrub -m /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c3t0d0s0 
 Updating master boot sector destroys existing boot managers (if any). 
 continue (y/n)? y 
 stage1 written to partition 0 sector 0 (abs 16065) 
 stage2 written to partition 0, 267 sectors starting at 50 (abs 16115) 
 stage1 written to master boot sector 
bash-3.2# zpool export rpool 
bash-3.2# init 6

 

Wednesday Jul 09, 2008

Installing Windows Vista Service pack on system with GRUB

I have Vista and Opensolaris on my laptop. And recently I faced a problem installing Service pack 1 on Vista because of GRUB installed. SP1 did MBR checking and since no Vista MBR present it fails to update Vista. Here is solution:

  1. Download MBRFix from Sysint site. It is better to put it on flash drive.
  2. Start CMD as Administrator and change working directory to flash with fixmbr.
  3. List current partitions:
  4. H:\\mbr>MBRFIX.EXE /drive 0 listpartitions

    # Boot Size (MB) Type

    1 47065 7 NTFS or HPFS

    2 Yes 143706 191 Unknown

    3 0 0 None

    4 0 0 None

  5. Save current MBR
  6. H:\\mbr>MBRFIX.EXE /drive 0 savembr Indy.bin
  7. Fix MBR for Vista
  8. H:\\mbr>MBRFIX.EXE /drive 0 fixmbr /vista
  9. Make Vista partition active
  10. H:\\mbr>MBRFIX.EXE /drive 0 /partition 1 setactivepartition
  11. Install Vista Service Pack.
  12. Vista completes Service pack installation after several reboots
  13. Restore previous MBR
H:\\mbr>MBRFIX.EXE /drive 0 restorembr Indy.bin
About

Roman (pomah) Ivanov, ISV Engineering. Tips how to run Oracle best on Sun. Performance monitoring and tuning for system administrators. OpenSolaris user experience.

Search

Categories
Archives
« March 2015
SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
25
26
27
28
29
30
31
    
       
Today