[OpenIndiana-discuss] how can set it up in boot time

2011-02-24 Thread ann kok
Hi 

What is the max of tcp_rexmit_interval_initial?
How I can't set it 2000?

In addition, how can I set it permanent in every boot time

ndd -set /dev/tcp tcp_rexmit_interval_initial 2000

Thank you



___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] why there are 2 different rm

2011-02-16 Thread ann kok
Hi 

I just discover there are 2 rm in different path

eg: /usr/bin

and /usr/xpg4/bin

and they are different too

Why?

Thank you





___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] error from dmesg

2011-02-01 Thread ann kok
Hi

I got the following error from dmesg. How can I fix it?

Jan 31 13:52:09 opsol1.akok.org postfix/local[19156]: [ID 548731
mail.crit] fatal: open database /etc/mail/aliases.dir: No such file or
directory

Thank you



___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] zfs:iotstat

2011-01-31 Thread ann kok
Thank you

ls zpool iostat applying zone only?

How can I put it in cacti?

Thank you




--- On Fri, 1/28/11, Toomas Soome  wrote:

> From: Toomas Soome 
> Subject: Re: [OpenIndiana-discuss] zfs:iotstat
> To: "Discussion list for OpenIndiana" 
> Received: Friday, January 28, 2011, 4:30 PM
> 
> fsstat zfs, zpool iostat for pool aggregated stats on
> disks, iostat for detailed device level stats.
> 
> On 28.01.2011, at 23:01, ann kok wrote:
> 
> > Hi
> > 
> > I am trying to know about zfs. 
> > 
> > ls iostst information not good in this file system?
> > How about vmstat? and other information command?
> > 
> > Thank you
> > 
> > 
> > 
> > 
> > ___
> > OpenIndiana-discuss mailing list
> > OpenIndiana-discuss@openindiana.org
> > http://openindiana.org/mailman/listinfo/openindiana-discuss
> 
> 
> ___
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss@openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
> 



___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] zfs:iotstat

2011-01-28 Thread ann kok
Hi

I am trying to know about zfs. 

ls iostst information not good in this file system?
How about vmstat? and other information command?

Thank you




___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] need help those commands

2011-01-28 Thread ann kok
HI

I have error to use mdb -k even though I am super user

mdb: failed to open /dev/kmem: permission denied

and

Can I use kstat in zfs zone?

Thank you



___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] crontab error

2011-01-26 Thread ann kok
Hi 

I am trying "crontab cron1.txt" and have error as 

root@opensolaris:~/ann# crontab cron1.txt 
0 0 * * 7 /root/ann/deletelog.sh >/dev/null 2>&1
crontab: error on previous line; number out of bounds.
crontab: errors detected in input, no crontab file generated.

but it is fine in linux. What am I wrong?

cron1.txt
* * * * * /root/ann/1.sh >/dev/null 2>&1
* * * * * /root/ann/2.sh >/dev/null 2>&1
* * * * * /root/ann/3.sh >/dev/null 2>&1
59 23 * * * /root/ann/backup.sh  >/dev/null 2>&1
0 0 * * 7 /root/ann/deletelog.sh >/dev/null 2>&1


Thank you



___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] solaris vs opensolaris and about security to LInux

2011-01-26 Thread ann kok
Hi

Can someone have time to explain me what is the different between solaris10 and 
opensolaris?

ls opensolaris also in C2 security model to compare to linux?

Thank you



___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] help: ssh won't start this morning

2011-01-24 Thread ann kok
Thank you. I understand it now

But this might not be good for us when most our systems need remote access

Now. I know it is nfs issue

1/ How can I make the box still fine when the mount point is not available?

2/ How can I start the ssh even any services are in problem? At least I can 
remote access to do the trouble shooting
In linux. I can simply add it in rc.local /usr/sbin/sshd

How can I do it in solaris?

Thank you so much



--- On Mon, 1/24/11, Deano  wrote:

> From: Deano 
> Subject: Re: [OpenIndiana-discuss] help: ssh won't start this morning
> To: "'Discussion list for OpenIndiana'" 
> Received: Monday, January 24, 2011, 10:30 AM
> Most services depend on
> filesystem/local, that error effectively says the
> filesystem hasn't come up correctly, which means also
> everything shouldn't
> work. 
> Of course in this case most of filesystem is up, so it
> should have faulted
> really (just warned).
> 
> Bye,
> Deano
> 
> -Original Message-
> From: ann kok [mailto:oiyan...@yahoo.ca]
> 
> Sent: 24 January 2011 15:17
> To: Discussion list for OpenIndiana
> Subject: Re: [OpenIndiana-discuss] help: ssh won't start
> this morning
> 
> Hi
> 
> Thank you. At least I can access the box now.
> 
> I realize the problem is from vfstab
> 
> /dev/dsk/c2t1d0s2   
>    /dev/rdsk/c2t1d0s2     
> /export/zone1   ufs 
>    1
> yes     -
> 
> 
> My questions
> 
> 1/ How can I let the box know the service is still starting
> even thought it
> can't mount the drive? Any soft mount in solaris?
> 
> 
> 2/ Why one service can impact 40 services not starting? ls
> it only this nfs?
> ls other service also same. It is not reasonable ssh won't
> start because of
> apache!
> 
> Thank you
> 
> svc:/system/filesystem/local:default (local file system
> mounts)
>  State: maintenance since Mon Jan 24 10:06:26 2011
> Reason: Start method exited with $SMF_EXIT_ERR_FATAL.
>    See: http://sun.com/msg/SMF-8000-KS
>    See:
> /var/svc/log/system-filesystem-local:default.log
> Impact: 40 dependent services are not running:
>        
> svc:/application/desktop-cache/input-method-cache:default
> 
> 
> --- On Mon, 1/24/11, Bernd Helber 
> wrote:
> 
> > From: Bernd Helber 
> > Subject: Re: [OpenIndiana-discuss] help: ssh won't
> start this morning
> > To: openindiana-discuss@openindiana.org
> > Received: Monday, January 24, 2011, 9:55 AM
> > Hi,
> > 
> > your last change, before you rebooted the Box?
> > 
> > As a temporary workaround...
> > start ssh manually
> > 
> > /usr/lib/ssh/sshd
> > 
> > that should do the trick.
> > 
> > Am 24.01.11 15:53, schrieb ann kok:
> > > Hi
> > > 
> > > My ssh service can't start this morning when I
> reboot
> > the box
> > > 
> > > I try to enable it in the console but it won't
> work
> > > 
> > > svcs -a |grep ssh
> > > offline 
> >    time   svc:/network/ssh:default
> > > 
> > > svcadm enable ssh
> > > 
> > > svcs -a |grep ssh
> > > offline     
> > time   svc:/network/ssh:default
> > > 
> > > dmesg is showing nothing.
> > > 
> > > How can I fix it? Any trouleshooting command
> > > 
> > > I also have question that
> > > 
> > > ls solaris services depended each other?
> > > 
> > > Mean S65 can't start. S66.. all services after
> > S65  also won't start
> > > 
> > > Thank you 
> > > 
> > > 
> > > 
> > > 
> > > ___
> > > OpenIndiana-discuss mailing list
> > > OpenIndiana-discuss@openindiana.org
> > > http://openindiana.org/mailman/listinfo/openindiana-discuss
> > 
> > 
> > -- 
> > with kind regards
> > 
> >  Bernd Helber
> >          
> >    _.-|-/\-._
> >           \-'     
> >     '-.
> >          /   
> > /\    /\    \/
> >        \/  <   
> > .  >  ./.  \/
> >    _   /  < 
> >        > /___\ |.
> >  .< \ /  <     /\ 
> >   > ( #) |#)
> >    | |    <   
> >    /\   -.   __\
> >     \   < 
> > <   V      > )./_._(\
> >    .)/\   < 
> > <  .-     /  \_'_) )-..
> >        \ 
> > <   ./  /  > > 
> >      /._./
> >    
> >    /\   <  '-'
> > >    >    /
> >          '-._ < v 
> >   >   _.-'
> >            /
> > '-.__.·' \
> >              
> >    \/
> > 
> > 
> >
> ***
> >  *This message has been scanned by DrWeb AV and
> > Spamassassin
> > 
> > ___
> > OpenIndiana-discuss mailing list
> > OpenIndiana-discuss@openindiana.org
> > http://openindiana.org/mailman/listinfo/openindiana-discuss
> > 
> 
> 
> 
> ___
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss@openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
> 
> 
> ___
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss@openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
> 



___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] help: ssh won't start this morning

2011-01-24 Thread ann kok
Hi

Thank you. At least I can access the box now.

I realize the problem is from vfstab

/dev/dsk/c2t1d0s2   /dev/rdsk/c2t1d0s2  /export/zone1   ufs 1   
yes -


My questions

1/ How can I let the box know the service is still starting even thought it 
can't mount the drive? Any soft mount in solaris?


2/ Why one service can impact 40 services not starting? ls it only this nfs? ls 
other service also same. It is not reasonable ssh won't start because of apache!

Thank you

svc:/system/filesystem/local:default (local file system mounts)
 State: maintenance since Mon Jan 24 10:06:26 2011
Reason: Start method exited with $SMF_EXIT_ERR_FATAL.
   See: http://sun.com/msg/SMF-8000-KS
   See: /var/svc/log/system-filesystem-local:default.log
Impact: 40 dependent services are not running:
svc:/application/desktop-cache/input-method-cache:default


--- On Mon, 1/24/11, Bernd Helber  wrote:

> From: Bernd Helber 
> Subject: Re: [OpenIndiana-discuss] help: ssh won't start this morning
> To: openindiana-discuss@openindiana.org
> Received: Monday, January 24, 2011, 9:55 AM
> Hi,
> 
> your last change, before you rebooted the Box?
> 
> As a temporary workaround...
> start ssh manually
> 
> /usr/lib/ssh/sshd
> 
> that should do the trick.
> 
> Am 24.01.11 15:53, schrieb ann kok:
> > Hi
> > 
> > My ssh service can't start this morning when I reboot
> the box
> > 
> > I try to enable it in the console but it won't work
> > 
> > svcs -a |grep ssh
> > offline 
>    time   svc:/network/ssh:default
> > 
> > svcadm enable ssh
> > 
> > svcs -a |grep ssh
> > offline     
> time   svc:/network/ssh:default
> > 
> > dmesg is showing nothing.
> > 
> > How can I fix it? Any trouleshooting command
> > 
> > I also have question that
> > 
> > ls solaris services depended each other?
> > 
> > Mean S65 can't start. S66.. all services after
> S65  also won't start
> > 
> > Thank you 
> > 
> > 
> > 
> > 
> > ___
> > OpenIndiana-discuss mailing list
> > OpenIndiana-discuss@openindiana.org
> > http://openindiana.org/mailman/listinfo/openindiana-discuss
> 
> 
> -- 
> with kind regards
> 
>  Bernd Helber
>          
>    _.-|-/\-._
>           \-'     
>     '-.
>          /   
> /\    /\    \/
>        \/  <   
> .  >  ./.  \/
>    _   /  < 
>        > /___\ |.
>  .< \ /  <     /\ 
>   > ( #) |#)
>    | |    <   
>    /\   -.   __\
>     \   < 
> <   V      > )./_._(\
>    .)/\   < 
> <  .-     /  \_'_) )-..
>        \ 
> <   ./  /  > > 
>      /._./
>    
>    /\   <  '-'
> >    >    /
>          '-._ < v 
>   >   _.-'
>            /
> '-.__.·' \
>              
>    \/
> 
> 
> ***
>  *This message has been scanned by DrWeb AV and
> Spamassassin
> 
> ___
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss@openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
> 



___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] help: ssh won't start this morning

2011-01-24 Thread ann kok
Hi

My ssh service can't start this morning when I reboot the box

I try to enable it in the console but it won't work

svcs -a |grep ssh
offline time   svc:/network/ssh:default

svcadm enable ssh

svcs -a |grep ssh
offline  time   svc:/network/ssh:default

dmesg is showing nothing.

How can I fix it? Any trouleshooting command

I also have question that

ls solaris services depended each other?

Mean S65 can't start. S66.. all services after S65  also won't start

Thank you 




___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] svc and services

2011-01-21 Thread ann kok
Hi 

I install snmp and apache2 respectively and also import it svccfg as xml

I have question why they are under different paths in svc

eg:
snmp is in /site/snmp:default but apache2 is in /network/cswapache2:default

ls it any meaning in the system?

online 13:42:07 svc:/site/snmp:default

online 13:35:35 svc:/network/cswapache2:default

Thank you



___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] zpool and nfs

2011-01-20 Thread ann kok
Hi Bernd

SMI is selected now. But "zpool add" is still in problem. The /var/adm/message 
is showing nothing!

Any idea? Thank you

root@opensolaris:~# format -e
Searching for disks...done


AVAILABLE DISK SELECTIONS:
   0. c8t0d0 
  /pci@0,0/pci15ad,1976@10/sd@0,0
   1. c8t1d0 
  /pci@0,0/pci15ad,1976@10/sd@1,0
   2. c8t2d0 
  /pci@0,0/pci15ad,1976@10/sd@2,0
Specify disk (enter its number): 2
selecting c8t2d0
[disk formatted]
No Solaris fdisk partition found.


FORMAT MENU:
disk   - select a disk
type   - select (define) a disk type
partition  - select (define) a partition table
current- describe the current disk
format - format and analyze the disk
fdisk  - run the fdisk program
repair - repair a defective sector
label  - write label to the disk
analyze- surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save   - save new disk/partition definitions
inquiry- show vendor, product and revision
scsi   - independent SCSI mode selects
cache  - enable, disable or query SCSI disk cache
volname- set 8-character volume name
! - execute , then return
quit
format> fdisk
No fdisk table exists. The default partition for the disk is:

  a 100% "SOLARIS System" partition

Type "y" to accept the default partition,  otherwise type "n" to edit the
 partition table.
y
format> label
[0] SMI Label
[1] EFI Label
Specify Label type[0]: 0
Ready to label disk, continue? 
Ready to label disk, continue? y

format> quit
root@opensolaris:~# zpool add rpool c8t2d0
cannot label 'c8t2d0': EFI labeled devices are not supported on root pools.

root@opensolaris:~# tail /var/adm/messages 
Jan 20 09:07:58 opensolaris pseudo: [ID 129642 kern.info] pseudo-device: 
winlock0
Jan 20 09:07:58 opensolaris genunix: [ID 936769 kern.info] winlock0 is 
/pseudo/winlock@0
Jan 20 09:07:58 opensolaris pseudo: [ID 129642 kern.info] pseudo-device: pm0
Jan 20 09:07:58 opensolaris genunix: [ID 936769 kern.info] pm0 is /pseudo/pm@0
Jan 20 09:07:59 opensolaris pseudo: [ID 129642 kern.info] pseudo-device: nsmb0
Jan 20 09:07:59 opensolaris genunix: [ID 936769 kern.info] nsmb0 is 
/pseudo/nsmb@0
Jan 20 09:07:59 opensolaris pseudo: [ID 129642 kern.info] pseudo-device: 
lx_systrace0
Jan 20 09:07:59 opensolaris genunix: [ID 936769 kern.info] lx_systrace0 is 
/pseudo/lx_systrace@0
Jan 20 09:17:48 opensolaris mDNSResponder: [ID 702911 daemon.error] ERROR: 
getOptRdata - unknown opt 4
Jan 20 09:18:16 opensolaris last message repeated 5 times

Thank you

--- On Thu, 1/20/11, Bernd Helber  wrote:

> From: Bernd Helber 
> Subject: Re: [OpenIndiana-discuss] zpool and nfs
> To: openindiana-discuss@openindiana.org
> Received: Thursday, January 20, 2011, 10:13 AM
> Sorry i forgot,
> 
> you're on x86
> 
> format>fdisk
> 
> y
> 
> label
> select SMI Label
> 
> thanks in advance.
> 
> 
> 
> Am 20.01.11 15:22, schrieb ann kok:
> > Hi Bernd
> > 
> > The label won't work and I also provide
> /var/adm/message
> > 
> > Thank you
> > 
> > root@opensolaris:~# format -e
> > Searching for disks...done
> > 
> > 
> > AVAILABLE DISK SELECTIONS:
> >        0. c8t0d0  2607 alt 2 hd 255 sec 63>
> >       
>    /pci@0,0/pci15ad,1976@10/sd@0,0
> >        1. c8t1d0  1303 alt 2 hd 255 sec 63>
> >       
>    /pci@0,0/pci15ad,1976@10/sd@1,0
> >        2. c8t2d0  1534 alt 2 hd 128 sec 32>
> >       
>    /pci@0,0/pci15ad,1976@10/sd@2,0
> > Specify disk (enter its number): 2
> > selecting c8t2d0
> > [disk formatted]
> > No Solaris fdisk partition found.
> > 
> > 
> > FORMAT MENU:
> >         disk 
>      - select a disk
> >         type 
>      - select (define) a disk type
> >         partition 
> - select (define) a partition table
> >         current 
>   - describe the current disk
> >         format 
>    - format and analyze the disk
> >         fdisk 
>     - run the fdisk program
> >         repair 
>    - repair a defective sector
> >         label 
>     - write label to the disk
> >         analyze 
>   - surface analysis
> >         defect 
>    - defect list management
> >         backup 
>    - search for backup labels
> >         verify 
>    - read and display labels
> >         save 
>      - save new disk/partition
> definitions
> >         inquiry 
>   - show vendor, product and revision
> >         scsi 
>      - independent SCSI mod

Re: [OpenIndiana-discuss] zpool and nfs

2011-01-20 Thread ann kok
Hi Bernd

The label won't work and I also provide /var/adm/message

Thank you

root@opensolaris:~# format -e
Searching for disks...done


AVAILABLE DISK SELECTIONS:
   0. c8t0d0 
  /pci@0,0/pci15ad,1976@10/sd@0,0
   1. c8t1d0 
  /pci@0,0/pci15ad,1976@10/sd@1,0
   2. c8t2d0 
  /pci@0,0/pci15ad,1976@10/sd@2,0
Specify disk (enter its number): 2
selecting c8t2d0
[disk formatted]
No Solaris fdisk partition found.


FORMAT MENU:
disk   - select a disk
type   - select (define) a disk type
partition  - select (define) a partition table
current- describe the current disk
format - format and analyze the disk
fdisk  - run the fdisk program
repair - repair a defective sector
label  - write label to the disk
analyze- surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save   - save new disk/partition definitions
inquiry- show vendor, product and revision
scsi   - independent SCSI mode selects
cache  - enable, disable or query SCSI disk cache
volname- set 8-character volume name
! - execute , then return
quit
format> label 
WARNING - This disk may be in use by an application that has
  modified the fdisk table. Ensure that this disk is
  not currently in use before proceeding to use fdisk.

/var/adm/message

Jan 20 09:07:58 opensolaris pseudo: [ID 129642 kern.info] pseudo-device: pm0
Jan 20 09:07:58 opensolaris genunix: [ID 936769 kern.info] pm0 is /pseudo/pm@0
Jan 20 09:07:59 opensolaris pseudo: [ID 129642 kern.info] pseudo-device: nsmb0
Jan 20 09:07:59 opensolaris genunix: [ID 936769 kern.info] nsmb0 is 
/pseudo/nsmb@0
Jan 20 09:07:59 opensolaris pseudo: [ID 129642 kern.info] pseudo-device: 
lx_systrace0
Jan 20 09:07:59 opensolaris genunix: [ID 936769 kern.info] lx_systrace0 is 
/pseudo/lx_systrace@0
Jan 20 09:17:48 opensolaris mDNSResponder: [ID 702911 daemon.error] ERROR: 
getOptRdata - unknown opt 4
Jan 20 09:18:16 opensolaris last message repeated 5 times




--- On Wed, 1/19/11, Bernd Helber  wrote:

> From: Bernd Helber 
> Subject: Re: [OpenIndiana-discuss] zpool and nfs
> To: "Discussion list for OpenIndiana" 
> Received: Wednesday, January 19, 2011, 5:37 PM
> format
> label --> select SMI Label.
> 
> that should solve the issue,
> 
> if there are more issues, please provide
> 
> /var/adm/messages*
> 
> thanks in advance.
> 
> 
> Am 19.01.11 22:53, schrieb ann kok:
> > Hi Edward
> > 
> > Thank you for your mail
> > 
> > I follow your advice to reboot my computer. It is
> fine
> > 
> > Now. I have problem to attach it. What can I do this?
> > 
> > root@opensolaris:~# format -e
> > Searching for disks...done
> > 
> > 
> > AVAILABLE DISK SELECTIONS:
> >        0. c8t0d0  2607 alt 2 hd 255 sec 63>
> >       
>    /pci@0,0/pci15ad,1976@10/sd@0,0
> >        1. c8t1d0  1303 alt 2 hd 255 sec 63>
> >       
>    /pci@0,0/pci15ad,1976@10/sd@1,0
> > Specify disk (enter its number): ^C
> > root@opensolaris:~# zpool add rpool c8t1d0
> > cannot label 'c8t1d0': EFI labeled devices are not
> supported on root pools.
> > 
> > 2/ For the command devfsadm -Cv, I run it the first
> time. It showed many message but I can't catch it. 
> > I try to run again, but show nothing
> > How can I catch those message?
> > 
> > Thank you so much
> > 
> > 
> > --- On Wed, 1/19/11, Edward Ned Harvey 
> wrote:
> > 
> >> From: Edward Ned Harvey 
> >> Subject: Re: [OpenIndiana-discuss] zpool and nfs
> >> To: "Discussion list for OpenIndiana" 
> >> Received: Wednesday, January 19, 2011, 4:23 PM
> >>> From: ann kok [mailto:oiyan...@yahoo.ca]
> >>>
> >>> As I haven't received the response, I run the
> formart
> >> -e
> >>> It said it needs around 3 hours
> >>>
> >>> format> format
> >>> Ready to format.  Formatting cannot be
> >> interrupted
> >>> and takes 232 minutes (estimated). Continue?
> >>> Continue? y
> >>
> >> Oh my goodness.  No.
> >> When you run format -e, it should just display a
> list of
> >> all the disks in
> >> the system (instantly), and ask you which one you
> want to
> >> work on, and then
> >> you quit.  I'm sure I said that.  Quit
> without
> >> changing anything.  (And be
> >> careful not to break anything.)  I am
> extremely
&g

Re: [OpenIndiana-discuss] zpool and nfs

2011-01-19 Thread ann kok
Hi Edward

Thank you for your mail

I follow your advice to reboot my computer. It is fine

Now. I have problem to attach it. What can I do this?

root@opensolaris:~# format -e
Searching for disks...done


AVAILABLE DISK SELECTIONS:
   0. c8t0d0 
  /pci@0,0/pci15ad,1976@10/sd@0,0
   1. c8t1d0 
  /pci@0,0/pci15ad,1976@10/sd@1,0
Specify disk (enter its number): ^C
root@opensolaris:~# zpool add rpool c8t1d0
cannot label 'c8t1d0': EFI labeled devices are not supported on root pools.

2/ For the command devfsadm -Cv, I run it the first time. It showed many 
message but I can't catch it. 
I try to run again, but show nothing
How can I catch those message?

Thank you so much


--- On Wed, 1/19/11, Edward Ned Harvey  wrote:

> From: Edward Ned Harvey 
> Subject: Re: [OpenIndiana-discuss] zpool and nfs
> To: "Discussion list for OpenIndiana" 
> Received: Wednesday, January 19, 2011, 4:23 PM
> > From: ann kok [mailto:oiyan...@yahoo.ca]
> > 
> > As I haven't received the response, I run the formart
> -e
> > It said it needs around 3 hours
> > 
> > format> format
> > Ready to format.  Formatting cannot be
> interrupted
> > and takes 232 minutes (estimated). Continue?
> > Continue? y
> 
> Oh my goodness.  No.
> When you run format -e, it should just display a list of
> all the disks in
> the system (instantly), and ask you which one you want to
> work on, and then
> you quit.  I'm sure I said that.  Quit without
> changing anything.  (And be
> careful not to break anything.)  I am extremely
> certain I never told you to
> type "format" after you got into the format prompt. 
> And when it prompted
> you "Continue?"  You should definitely have said "n"
> instead of "y"
> 
> You have entered the format prompt, and then entered the
> format command on
> the format prompt, which apparently does something
> horrific.  Hopefully
> you're doing it to a disk you don't care about.
> 
> I suggest rebooting first, just to ensure you haven't
> destroyed your system.
> You may have destroyed it.
> 
> Here is an example:
>     [root@FILER ~]# format -e
>     Searching for disks...done
>     
>     
>     AVAILABLE DISK SELECTIONS:
>            0. c0d0
>     5QE4X6G-0001-232.83GB>
>              
> /pci@0,0/pci15ad,7a0@15/pci-ide@0/ide@0/cmdk@0,0
>            1.
> c2t0d0 
>              
> /pci@0,0/pci15ad,1976@10/sd@0,0
>            2.
> c2t1d0 
>              
> /pci@0,0/pci15ad,1976@10/sd@1,0
>            3.
> c2t2d0 
>              
> /pci@0,0/pci15ad,1976@10/sd@2,0
>     Specify disk (enter its number): ^C
> 
> I'm sure I said this too.  Don't bother formatting any
> disks.  Just use
> zpool add.  End of story.  It will use the whole
> device, and it's an instant
> operation.
> 
> 
> > 4/ What is the different betwen zpool attach zpool and
> zpool add 
> 
> Zpool attach will create a mirror of a device which was not
> previously
> mirrored.
> Zpool add will add storage to a pool.  If you add a
> single device, then it's
> not redundant.  If you add a mirror or a raidz, then
> it's redundant.
> 
> 
> ___
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss@openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
> 



___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] zpool and nfs

2011-01-19 Thread ann kok
Hi Edward

Thank you for your help

As I haven't received the response, I run the formart -e 
It said it needs around 3 hours

format> format
Ready to format.  Formatting cannot be interrupted
and takes 232 minutes (estimated). Continue? 
Continue? y

Now, I have questions

1/ Why it needs long time (232 minutes) to format 10G?

2/ Can I stop it? Crtl C?

3/ For the normal procedure, I don't need to format the drive before using 
zpool add rpool newdevice

4/ What is the different betwen zpool attach zpool and zpool add zpool

Thank you again


--- On Wed, 1/19/11, Edward Ned Harvey  wrote:

> From: Edward Ned Harvey 
> Subject: Re: [OpenIndiana-discuss] zpool and nfs
> To: "Discussion list for OpenIndiana" 
> Received: Wednesday, January 19, 2011, 11:48 AM
> > From: ann kok [mailto:oiyan...@yahoo.ca]
> > 
> > 1/ I will add the virtual drive (scsi 0:1) in the
> vmware. but Do I need to
> create
> > the same size 30G as scsi 0:0?  What is this disk
> name in solaris?
> 
> It can be any size you want.
> 
> Run:
>     devfsadm -Cv
> and hopefully the drive will appear.
> Run:
>     format -e
>     (and then quit without changing
> anything)
> and hopefully you'll immediately recognize the name of the
> new disk.
> 
> Run:
>     zpool add rpool newdevicename
>     (where newdevicename is the name of your
> new device)
> 
> Don't format it or anything first.  Just add it. 
> Period.
> 
> 
> ___
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss@openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
> 



___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] zpool and nfs

2011-01-19 Thread ann kok
Hi

1/ I will add the virtual drive (scsi 0:1) in the vmware. but Do I need to 
create the same size 30G as scsi 0:0?  What is this disk name in solaris?
Could you give me more info how to format this virtual drive before adding to 
zpool?

2/ I am using linux to share

in linux, I simple to put it /etc/exports and exportfs -vs

Now, I don't know what problem in mounting in opensolaris

I try it nfs version4

Thank you again

--- On Wed, 1/19/11, William David OpenIndiana  
wrote:

> From: William David OpenIndiana 
> Subject: Re: [OpenIndiana-discuss] zpool and nfs
> To: "Discussion list for OpenIndiana" 
> Received: Wednesday, January 19, 2011, 5:08 AM
> Good morning 
> How you share a nfs on oi server ?? How command you use
> 
> zfs set sharenfs="root=@192.168.0.5" pool/share
> 
> For not wait  a dns resolve on nfs connection And
> mapping as root privileges this share
> 
> Or a  zfs set sharenfs="someuser=@192.168.0.5"
> pool/share 
> 
> For map a specific user a share. In thus case how a uid of
> owner of the oi side zfs and a privileges on a folder 
> 
> ls -l pool/  
> dwrxwrxw-x+  someone somegroup share
> This is only a example but in both side a uid is the same 
> 
> someone = 1000
> somegroup = 1000
> 
> 
> At last how version of nfs you try using nfs v3 or nfsv4 ?
> -- 
> - = - = - = - = - 
> = - = - = - = - = -
> <.      Of course it runs 
>               William
> David Armstrong
> <|==   Bio
> Systems Security Networking
> <'             
>     FreeBSD       
>    MSN / GT  biosystems  gmail .
> com
> http://biosystems.ath.cx:8080/  http://biosystems.broker.freenet6.net/
> --
> 
> Em 18/01/2011, às 23:19, Edward Ned Harvey 
> escreveu:
> 
> >> From: ann kok [mailto:oiyan...@yahoo.ca]
> >> 
> >> My opensolaris is installed on vmware and I
> allocate 30G for it
> >> When I install opensolaris, I remember to use
> 20G.
> >> Now I want to use the rest of the 10G.
> >> Can you show me the command?
> > 
> > How did you use only 20G out of 30G?  By default,
> I think the installer uses
> > the whole drive.
> > 
> > If you have a 10G slice, c0t0d0s6 for example...
> > zpool add rpool c0t0d0s6
> > 
> > If you have another virtual disk, c0t2d0 for
> example...
> > zpool add rpool c0t2d0
> > 
> > If you are unsure what you have...
> > format -e
> >    (and be careful not to break anything)
> > 
> > 
> >> How can I verify I am using 20G now?
> > 
> > Both df and zpool list and zfs list will give you
> information.  Typically
> > different information.
> > 
> > 
> > ___
> > OpenIndiana-discuss mailing list
> > OpenIndiana-discuss@openindiana.org
> > http://openindiana.org/mailman/listinfo/openindiana-discuss
> 
> ___
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss@openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
> 



___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] zpool and nfs

2011-01-18 Thread ann kok
Hi

My opensolaris is installed on vmware and I allocate 30G for it

When I install opensolaris, I remember to use 20G.

Now I want to use the rest of the 10G.

Can you show me the command?

How can I verify I am using 20G now?
I forgot how to calcuate

root@opensolaris:~# df -h
FilesystemSize  Used Avail Use% Mounted on
rpool/ROOT/opensolaris
   19G  2.9G   16G  16% /
swap  885M  348K  885M   1% /etc/svc/volatile
/usr/lib/libc/libc_hwcap1.so.1
   19G  2.9G   16G  16% /lib/libc.so.1
swap  885M  4.0K  885M   1% /tmp
swap  885M   48K  885M   1% /var/run
rpool/export   16G   23K   16G   1% /export
rpool/export/home  16G   42K   16G   1% /export/home
rpool/export/home/oiyan
   16G  871K   16G   1% /export/home/oiyan
rpool  16G   79K   16G   1% /rpool


Can I use the rest of disk to do the zpool?

eg: zpool attach rpool x 


I also have nfs issue

When I mount the share drive from linux, I have this error

root@opensolaris:~# mount 192.168.0.5:/share /linux
nfs mount: mount: /linux: Not owner

Thank you so much



___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] inetadm and svcadm

2011-01-14 Thread ann kok
Hi Matt

I go to /etc/init.d

There is no nagios script under this folder. 

Do you have any idea?

Thank you

--- On Fri, 1/14/11, Matt Wilby  wrote:

> From: Matt Wilby 
> Subject: Re: [OpenIndiana-discuss] inetadm and svcadm
> To: "Discussion list for OpenIndiana" 
> Received: Friday, January 14, 2011, 2:25 PM
> SMF won't do anything with Nagios
> unless there is a manifest for it.
> 
> Have a look in /etc/init.d, there's probably a legacy
> script depending on how you installed it. You can start it
> with /etc/init.d/nagios start.
> 
> Here's a link from Google that might prove helpful.
> 
> http://searchdatacenter.techtarget.com/tip/Installing-Nagios-on-Solaris-for-network-and-server-monitoring?asrc=EM_NLN_5591223&track=NL-832&ad=683882
> <http://searchdatacenter.techtarget.com/tip/Installing-Nagios-on-Solaris-for-network-and-server-monitoring?asrc=EM_NLN_5591223&track=NL-832&ad=683882>
> 
> 
> You may want to look at some of the Nagios related forums.
> 
> Thanks.
> 
> 
> 
> On 14/01/2011 19:18, ann kok wrote:
> 
> > I can ps -ef|grep nagios 
> >
> > But I can't see how to start the nagios in it
> >
> > svcs -a list | grep nagios <== nothing
> >
> > How does it start?
> >
> > Thank you
> >
> > --- On Fri, 1/14/11, Matt Wilby 
> wrote:
> >
> >> From: Matt Wilby 
> >> Subject: Re: [OpenIndiana-discuss] inetadm and
> svcadm
> >> To: "Discussion list for OpenIndiana" 
> >> Received: Friday, January 14, 2011, 2:01 PM
> >> Sorry I wasn't very clear. What's the
> >> output of 'ps -ef | grep  for>'?
> >>
> >>
> >> On 14/01/2011 18:56, Matt Wilby wrote:
> >>
> >>> What's the output of 'ps -ef'?
> >>>
> >>>
> >>> On 14/01/2011 18:51, ann kok wrote:
> >>>
> >>>> Hello
> >>>>
> >>>> How I can know the service is under
> inetadm or
> >> svcadm?
> >>>> I can't find service in svcs -a 
> >>>>
> >>>> But I can see it in the ps -ef
> >>>>
> >>>> How do I know the service coming from?
> >>>>
> >>>> Thank you 
> >>>>
> >>>>
> >>>>
> >>>>
> ___
> >>>> OpenIndiana-discuss mailing list
> >>>> OpenIndiana-discuss@openindiana.org
> >>>> http://openindiana.org/mailman/listinfo/openindiana-discuss
> >>>>
> >>>
> ___
> >>> OpenIndiana-discuss mailing list
> >>> OpenIndiana-discuss@openindiana.org
> >>> http://openindiana.org/mailman/listinfo/openindiana-discuss
> >>>
> >>
> >> ___
> >> OpenIndiana-discuss mailing list
> >> OpenIndiana-discuss@openindiana.org
> >> http://openindiana.org/mailman/listinfo/openindiana-discuss
> >>
> >
> >
> > ___
> > OpenIndiana-discuss mailing list
> > OpenIndiana-discuss@openindiana.org
> > http://openindiana.org/mailman/listinfo/openindiana-discuss
> >
> 
> 
> ___
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss@openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
> 



___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] inetadm and svcadm

2011-01-14 Thread ann kok
Hi Mike

Thank you 

but svcs -p . lt also can't find any nagios too

I don't have idea how it is starting!

Thank you for your help

--- On Fri, 1/14/11, Mike Gerdts  wrote:

> From: Mike Gerdts 
> Subject: Re: [OpenIndiana-discuss] inetadm and svcadm
> To: "Discussion list for OpenIndiana" 
> Received: Friday, January 14, 2011, 2:32 PM
> On Fri, Jan 14, 2011 at 1:18 PM, ann
> kok 
> wrote:
> > I can ps -ef|grep nagios
> >
> > But I can't see how to start the nagios in it
> >
> > svcs -a list | grep nagios <== nothing
> >
> > How does it start?
> 
> If it was started by an SMF service and it has not
> abandoned the
> contract, you should be able to find the pid in the output
> of "svcs
> -p"
> 
> -- 
> Mike Gerdts
> http://mgerdts.blogspot.com/
> 
> ___
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss@openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
> 



___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] inetadm and svcadm

2011-01-14 Thread ann kok
I can ps -ef|grep nagios 

But I can't see how to start the nagios in it

svcs -a list | grep nagios <== nothing

How does it start?

Thank you

--- On Fri, 1/14/11, Matt Wilby  wrote:

> From: Matt Wilby 
> Subject: Re: [OpenIndiana-discuss] inetadm and svcadm
> To: "Discussion list for OpenIndiana" 
> Received: Friday, January 14, 2011, 2:01 PM
> Sorry I wasn't very clear. What's the
> output of 'ps -ef | grep '?
> 
> 
> On 14/01/2011 18:56, Matt Wilby wrote:
> 
> > What's the output of 'ps -ef'?
> >
> >
> > On 14/01/2011 18:51, ann kok wrote:
> >
> >> Hello
> >>
> >> How I can know the service is under inetadm or
> svcadm?
> >>
> >> I can't find service in svcs -a 
> >>
> >> But I can see it in the ps -ef
> >>
> >> How do I know the service coming from?
> >>
> >> Thank you 
> >>
> >>
> >>
> >> ___
> >> OpenIndiana-discuss mailing list
> >> OpenIndiana-discuss@openindiana.org
> >> http://openindiana.org/mailman/listinfo/openindiana-discuss
> >>
> >
> > ___
> > OpenIndiana-discuss mailing list
> > OpenIndiana-discuss@openindiana.org
> > http://openindiana.org/mailman/listinfo/openindiana-discuss
> >
> 
> 
> ___
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss@openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
> 



___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] inetadm and svcadm

2011-01-14 Thread ann kok
Hello

How I can know the service is under inetadm or svcadm?

I can't find service in svcs -a 

But I can see it in the ps -ef

How do I know the service coming from?

Thank you 



___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss