martes, 17 de diciembre de 2013

Solaris 8 en una zona

Primero se revisa añade los paquetes de legacy conteiners:

root@ue250 # cd solarislegacycontainers/
root@ue250 # ls
1.0     1.0.1   README
root@ue250 # cd 1.0.1/
root@ue250 # ls
Legal    Product
root@ue250 # pkgadd -d .
pkgadd: ERROR: no packages were found in </export/home/itc/solarislegacycontainers/1.0.1>
root@ue250 # pwd
/export/home/itc/solarislegacycontainers/1.0.1
root@ue250 # ls -F
Legal/    Product/
root@ue250 # cd Product/
root@ue250 # ls
SUNWs8brandk  SUNWs9brandk
root@ue250 # pkgadd -d .

The following packages are available:
  1  SUNWs8brandk     Solaris 8 Containers: solaris8 brand support RTU
                      (sparc) 11.10.0,REV=2008.09.20.18.50
  2  SUNWs9brandk     Solaris 9 Containers: solaris9 brand support RTU
                      (sparc) 11.10.0,REV=2008.09.20.18.50

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: all

Processing package instance <SUNWs8brandk> from </export/home/itc/solarislegacycontainers/1.0.1/Product>

Solaris 8 Containers: solaris8 brand support RTU(sparc) 11.10.0,REV=2008.09.20.18.50
Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
Using </> as the package base directory.
## Processing package information.
## Processing system information.
   8 package pathnames are already properly installed.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.

The following files are already installed on the system and are being
used by another package:
  /usr/share/man/man5/solaris8.5

Do you want to install these conflicting files [y,n,?,q] y
## Checking for setuid/setgid programs.

Installing Solaris 8 Containers: solaris8 brand support RTU as <SUNWs8brandk>

## Installing part 1 of 1.
/usr/lib/brand/solaris8/files/patches/109147-44.zip
/usr/lib/brand/solaris8/files/patches/109221-01.zip
/usr/lib/brand/solaris8/files/patches/111023-03.zip
/usr/lib/brand/solaris8/files/patches/111431-01.zip
/usr/lib/brand/solaris8/files/patches/112050-04.zip
/usr/lib/brand/solaris8/files/patches/112605-04.zip
/usr/lib/brand/solaris8/files/patches/order
/usr/share/man/man5/solaris8.5
[ verifying class <none> ]

Installation of <SUNWs8brandk> was successful.

Processing package instance <SUNWs9brandk> from </export/home/itc/solarislegacycontainers/1.0.1/Product>

Solaris 9 Containers: solaris9 brand support RTU(sparc) 11.10.0,REV=2008.09.20.18.50
Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
Using </> as the package base directory.
## Processing package information.
## Processing system information.
   8 package pathnames are already properly installed.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

Installing Solaris 9 Containers: solaris9 brand support RTU as <SUNWs9brandk>

## Installing part 1 of 1.
/usr/lib/brand/solaris9/files/patches/112963-32.zip
/usr/lib/brand/solaris9/files/patches/115986-03.zip
/usr/lib/brand/solaris9/files/patches/order
/usr/share/man/man5/solaris9.5
[ verifying class <none> ]

Installation of <SUNWs9brandk> was successful.
root@ue250 #

Ahora se crean los parametros para la zona:
root@ue250 # zoneadm list -cv
  ID NAME             STATUS     PATH                           BRAND    IP   
   0 global           running    /                              native   shared
root@ue250 # zonecfg -z solaris8
solaris8: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:solaris8> create -t SUNWsolaris8
zonecfg:solaris8> set zonepath=/zonas/solaris8
zonecfg:solaris8> set autoboot=true
zonecfg:solaris8> add net
zonecfg:solaris8:net> set physical=ce3
zonecfg:solaris8:net> set address=192.168.200.251
zonecfg:solaris8:net> set defrouter=192.168.200.100
zonecfg:solaris8:net> end
zonecfg:solaris8> verify
zonecfg:solaris8> commit
zonecfg:solaris8> exit
root@ue250 #

Ahora la carpeta del path le damos los permisos requeridos:

root@ue250 # mkdir -p /zonas/solaris8
root@ue250 # chmod -R 700 /zonas/solaris8/
root@ue250 #

Ya con eso se instala desde el backup que esta con formato *.dmp.

root@ue250 # zoneadm -z solaris8 install -p -v -a /export/home/itc/Ultra60Entel/raiz.dmp     
      Log File: /var/tmp/solaris8.install.1503.log
       Product: Solaris 8 Containers 1.0
     Installer: solaris8 brand installer 1.3
          Zone: solaris8
          Path: /zonas/solaris8
        Source: /export/home/itc/Ultra60Entel/raiz.dmp
    Media Type: ufsdump archive
    Installing: This may take several minutes...


Hay que esperar que termine el proceso.





jueves, 28 de noviembre de 2013

zfs grow

root@solaris:/etc/inet#
root@solaris:/etc/inet# zpool status rpool
  pool: rpool
 state: ONLINE
  scan: resilvered 6.19G in 0h11m with 0 errors on Thu Nov 28 11:15:04 2013
config:

        NAME        STATE     READ WRITE CKSUM
        rpool       ONLINE       0     0     0
          mirror-0  ONLINE       0     0     0
            c8t0d0  ONLINE       0     0     0
            c8t3d0  ONLINE       0     0     0

errors: No known data errors
root@solaris:/etc/inet# zpool detach rpool c8t0d0
root@solaris:/etc/inet# df -h -F zfs
Filesystem             Size   Used  Available Capacity  Mounted on
rpool/ROOT/solaris     7.6G   3.8G       1.3G    75%    /
rpool/ROOT/solaris/var
                       7.6G   392M       1.3G    23%    /var
rpool/VARSHARE         7.6G    74K       1.3G     1%    /var/share
mypool                  39G    28G        11G    73%    /datos
rpool/export           7.6G    32K       1.3G     1%    /export
rpool/export/home      7.6G    32K       1.3G     1%    /export/home
rpool/export/home/itc
                       7.6G   768K       1.3G     1%    /export/home/itc
rpool                  7.6G   4.9M       1.3G     1%    /rpool
root@solaris:/etc/inet# zpool set autoexpand=on rpool
root@solaris:/etc/inet# df -h -F zfs
Filesystem             Size   Used  Available Capacity  Mounted on
rpool/ROOT/solaris      39G   3.8G        33G    11%    /
rpool/ROOT/solaris/var
                        39G   392M        33G     2%    /var
rpool/VARSHARE          39G    74K        33G     1%    /var/share
mypool                  39G    28G        11G    73%    /datos
rpool/export            39G    32K        33G     1%    /export
rpool/export/home       39G    32K        33G     1%    /export/home
rpool/export/home/itc
                        39G   768K        33G     1%    /export/home/itc
rpool                   39G   4.9M        33G     1%    /rpool
root@solaris:/etc/inet#