1) formatear los discos todo el slice 0
2) crear los metadb
[ SKOL ] / # metainit d60 3 1 c2t50060E800456EE02d0s0 1 c2t50060E800456EE02d1s0 1 c2t50060E800456EE02d2s0
d60: Concat/Stripe is setup
[ SKOL ] / # metastat d60
d60: Concat/Stripe
Size: 100346880 blocks (47 GB)
Stripe 0:
Device Start Block Dbase Reloc
/dev/dsk/c2t50060E800456EE02d0s0 0 No Yes
Stripe 1:
Device Start Block Dbase Reloc
/dev/dsk/c2t50060E800456EE02d1s0 7680 No Yes
Stripe 2:
Device Start Block Dbase Reloc
/dev/dsk/c2t50060E800456EE02d2s0 7680 No Yes
Device Relocation Information:
Device Reloc Device ID
/dev/dsk/c2t50060E800456EE02d0 Yes id1,ssd@n60060e800456ee00000056ee00000020
/dev/dsk/c2t50060E800456EE02d1 Yes id1,ssd@n60060e800456ee00000056ee00000021
/dev/dsk/c2t50060E800456EE02d2 Yes id1,ssd@n60060e800456ee00000056ee00000022
[ SKOL ] / # metainit d61 -p d60 6g
d61: Soft Partition is setup
[ SKOL ] / # metainit d62 -p d60 10g
d62: Soft Partition is setup
[ SKOL ] / # metainit d63 -p d60 30g
d63: Soft Partition is setup
[ SKOL ] / #
LUEGO creo los FS
[ SKOL ] / # newfs /dev/md/rdsk/d61
newfs: construct a new file system /dev/md/rdsk/d61: (y/n)? y
[ SKOL ] / # newfs /dev/md/rdsk/d62
newfs: construct a new file system /dev/md/rdsk/d62: (y/n)? y
[ SKOL ] / # newfs /dev/md/rdsk/d63
newfs: construct a new file system /dev/md/rdsk/d63: (y/n)? y
[ SKOL ] / #
mkdir -p /export/zona1
cd /export/
chmod 700 zona1
mkdir /u00
mkdir /u01
mount /export/zona1
zonecfg -z zona1 -f /usr/scripts/SOL10/CREAR.ZONAS/crea.zona1.SKOL.ksh
[ SKOL ] / # zoneadm list -cv
ID NAME STATUS PATH
0 global running /
- zona1 configured /export/zona1
[ SKOL ] / #
[ SKOL ] /usr/scripts/SOL10/CREAR.ZONAS # chmod 700 /export/zona1
[ SKOL ] /usr/scripts/SOL10/CREAR.ZONAS # zoneadm list -cv
[ SKOL ] /usr/scripts/SOL10/CREAR.ZONAS # ls -ld /export/zona1
drwx------ 3 root root 512 Apr 10 08:53 /export/zona1
[ SKOL ] /usr/scripts/SOL10/CREAR.ZONAS # zoneadm -z zona1 install
Preparing to install zone
Checking
Checking
Creating list of files to copy from the global zone.
Copying 124550 files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize 1021 packages on the zone.
Initializing package 49 of 1021 : percent complete: 4%
[ SKOL ] /usr/scripts/SOL10/CREAR.ZONAS # zoneadm list -cv
ID NAME STATUS PATH
0 global running /
- zona1 installed /export/zona1
[ SKOL ] /usr/scripts/SOL10/CREAR.ZONAS # zoneadm -z zona1 ready
[ SKOL ] /usr/scripts/SOL10/CREAR.ZONAS # zoneadm list -cv
ID NAME STATUS PATH
0 global running /
1 zona1 ready /export/zona1
[ SKOL ] /usr/scripts/SOL10/CREAR.ZONAS #
[ SKOL ] /usr/scripts/SOL10/CREAR.ZONAS # zoneadm -z zona1 boot
Este es el script que uso para crear la zona
create -b
set zonepath=/export/zona1
set autoboot=true
add fs
set dir=/bea
set special=/dev/md/dsk/d92
set raw=/dev/md/rdsk/d92
set type=ufs
end
add fs
set dir=/u01
set special=/dev/md/dsk/d99
set raw=/dev/md/rdsk/d99
set type=ufs
end
add fs
set dir=/u02
set special=/dev/md/dsk/d100
set raw=/dev/md/rdsk/d100
set type=ufs
end
add net
set address=10.67.133.144
set physical=ce2
end
No hay comentarios:
Publicar un comentario