Wednesday Sep 09, 2009

zpool create oldpool c1t1d0

... ... 

You decide to change the zpool name:

get the zpool id with:

zpool get guid oldpool
zpool destroy -f oldpool
zpool import -Df 9507130160675323298 newpool

Then you can rename the dataset of the old zpool to the new one:
zfs rename oldpool/myold newpool/test

Tuesday Aug 18, 2009

zfs send name_of_snapshot | ssh username@remote_ip zfs receive local_snapshot

You should create your zpool and data set first like this:

  zpool create -f mypool c0t0d0s0

  zfs create mypool/test

 In this way, you can run it like this:

zfs send zfs send name_of_snapshot | ssh username@remote_ip zfs receive mypool/test/mytest@snapshot



[Read More]

Tuesday Jul 29, 2008


[Read More]

Monday Apr 28, 2008

If you've tired of using vi to edit html source and prefer to edit your web page with GUI on Solaris, please download seamonkey on blastwave.org and installed it. I really got relief by using it.

Tuesday Nov 27, 2007

泾溪石险人兢慎,

终岁不闻倾覆人。

却是平流无石处,

时时闻说有沉沦。

We seldom hear of accident in the stream named  泾溪 because of the dangerous stones hiding there. Whereas, we often hear of sinking events in the gently part of the stream where there is no stones at all.

Prudentiality  is another good trait for us to live a peace life.

 

Thursday Nov 22, 2007

Simplicity: Make the message short and deep like golden rules.

Unexpectedness: Focus on the uncommon part of your message when delivering it.

Concreteness: Make the message imageable and vivid.

Credibility: "Have you experienced this?" is better than citing a famous words

Emotions: Involve people in case study.

Stories: Mental rehearsal helps people response more quickly and effectively.

Saturday Nov 17, 2007

For most of end users, lacking of softwares is an annoying thing. If you met this situation on Solaris, go to www.blastwave.org to have a try. Please check the howto page first.

It's pretty straight forward for adding new software by using pkg-get.

(1)  pkgadd -d http://www.blastwave.org/pkg_get.pkg   # add pkg-get

(2)  Edit the /opt/csw/etc/pkg-get.conf                        # proxy setup here

(3)  /opt/csw/bin/pkg-get  -l                                        # get software list

(4) /opt/csw/bin/pkg-get -f -i $software_name               # install the software
 

Thursday Nov 15, 2007

This is my first time to attend the Sun Tech Day as a speaker. My topic is Open Solaris Testing. The odd thing is that I was scheduled to give the speech on Java day. This made me have chance to make it in this beautiful hall. It's better than the one holding the events for OpenSolaris day. I guess the reason is very simple. Java is more popular than Solaris.

(1)/boot/solaris/devicedb/master
Info  showed when loading

(2)/etc/driver_aliases 
The corresponding relationship between driver and pci class

(3)/etc/name_to_major  
One line for each driver

(4)/kernel/drv  
Stores driver config file and driver itself

Static IP:
(1) ping addr_assigned
(2) Modify the /etc/hosts
(3) hostname > /etc/nodename
(4) hostname > /etc/hostname.$interface_name
(5) /etc/netmasks
    10.*.*.0    255.255.255.0
(6) ifconfig $interface_name plumb $ip_addr/24 up #ipv4
    ifconfig $interface_name inet6 plumb up
(7) reboot

DHCP
(1) Modify the /etc/hosts
(2) touch /etc/hostname.$interface_name
(3) touch /etc/dhcp.$interface_name
 

1./etc/defaultdomain
  domainname $domain 
2./etc/hosts
        ip    hostname
3./etc/nodename
    hostname
4./etc/hostname.${nic}0
    hostname  
5.cp /etc/nsswitch.conf /etc/nsswitch.bak
6.cp /etc/nsswitch.nis /etc/nsswitch.conf
7.ypinit -c    | ypbind-broadcast         
8./usr/lib/netsvc/yp/ypstart
9.ypwhich
 
/usr/lib/netsvc/yp/ypstop
/usr/lib/netsvc/yp/ypstart
/usr/lib/netsvc/yp/ypbind -broadcast
/usr/sbin/ypinit

Wednesday Nov 07, 2007

To start punchin use:

punchctl start

To stop punchin use:

punchctl stop

Start up the  graphical interface by:

punchctl -x

When meeting problems, use command

punchctl diag

If you're using WIFI, make sure you have establish a
connection to the internet. When you met problem with
wificonfig,you can restart a service like this:

svcadm disable /network/physical:default
svcadm restart /network/physical:nwam

BTW, you'd better unplug your network cable in advance.

This blog copyright 2009 by De-Yu Simon Sun