Archive for Solaris 10

SDS (Solstice DiskSuite) Replacing a failed disk

1. Detach each submirror

ex. metadetach -f d0 d20
d0: submirror d20 is detached

2. Clear each submirror

ex. metaclear d20
d20: Concat/Stripe is cleared

3. Delete the db replica on the failed drive (you can find the replica output by issuing metadb command with no arguments):

ex. metadb -d c0t2d0s7

4. Remove failed drive. Replace with new drive.

5. Run the format command and place the correct partition table, using the layout of the non-replaced drive.

6. re-create the metadb replica on the new disk

ex. metadb -a c0t2d0s7

7. Run metainit for each replaced submirror

ex. metainit d21 1 1 c0t2d0s1
d21: Concat/Stripe is setup

8. Run metattach for each submirror

ex. metattach d0 d20
d0: submirror d20 is attached

ex. metattach d1 d21
d1: submirror d21 is attached

Comments (2)

how to log into a soalris zone from the global zone

root@solaris# zlogin zone1
[Connected to zone 'zone1' pts/2]
Last login: Mon Dec 10 10:24:53 on pts/2
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
You have new mail.
#

Comments

List solaris zones

root@solaris# zoneadm list -v
ID NAME             STATUS         PATH
0 global           running        /
2 zone1            running        /zones/zone1

Comments

How to enable FTP on Soalris 10

# svcs |grep ftp

blank humm?

# svcadm -v enable ftp
svc:/network/ftp:default enabled.
#  svcs|grep ftp
online          9:06:54 svc:/network/ftp:default

It seams to work even though it is not listed.

Comments

How to enable NTP on Solaris 10

root@server#svcadm enable ntp
root@server#svcs |grep ntp
online 13:35:01 svc:/network/ntp:default

[root@server# ps -ef|grep ntp
root 1459 1188 0 13:37:23 console 0:00 grep ntp
root 1393 1 0 13:35:01 ? 0:00 /usr/lib/inet/xntpd

Comments

« Previous entries