Sie sind auf Seite 1von 18

SOLARIS 10 TEST

SERVER PRESENTATION

Antoine Fouillé
SUMMARY
1. GENERAL SOLARIS DISK & PARTITION
1. DISK & PARTITION : INTRODUCTION
2. DISK & PARTITION : ADVANCED
3. FS & MOUNT POINT: INTRODUCTION
4. FS & MOUNT POINT: ADVANCED
2. ZFS FILE SYSTEM
1. ZFS FILE SYSTEM: INTRODUCTION
2. ZFS FILE SYSTEM: ADVANCED
3. ZFS POOL: INTRODUCTION
4. ZFS POOL: ADVANCED
3. ZONES & CONTAINER
1. ZONES CREATION: INTRODUCTION
2. ZONES CREATION: ADVANCED
3. ZONES USE: INTRODUCTION
4. ZONES USE: ADVANCED
4. ARCHITECTURE
5. FAQ Antoine Fouillé
1-1 DISK & PARTITION : INTRODUCTION
Global# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1d0 <DEFAULT cyl 30397 alt 2 hd 255 sec 63>
1. c2d0 <DEFAULT cyl 30397 alt 2 hd 255 sec 63>
2. c3d0 <DEFAULT cyl 30397 alt 2 hd 255 sec 63>
Specify disk (enter its number): 0
selecting c1d0

Disk1 Disk2 Disk3


c1d0 c2d0 c3d0 Disk Level

Antoine Fouillé
1-2 DISK & PARTITION : ADVANCED
1. Then list all the partitions: 8 7
Global# format> partition
Global# partition> print
Part Tag Flag Cylinders Size Blocks
0
1
root
swap
wm
wu
2094 - 3399
01/03/25
10.00GB
4.01GB
(1306/0/0) 20980890
(523/0/0) 8401995
6
2 backup wm 0 - 30396 232.85GB (30397/0/0) 488327805 0 1 3 5
3 var wm 1310 - 2093 6.01GB (784/0/0) 12594960
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 3400 - 6010 20.00GB (2611/0/0) 41945715
6 unassigned wm 6011 - 30396 186.81GB (24386/0/0) 391761090
7 home wm 526 - 1309 6.01GB (784/0/0) 12594960
8 boot wu 0-0 7.84MB (1/0/0) 16065 2
9 alternates wu 1–2 15.69MB (2/0/0) 32130

Antoine Fouillé
1-3 FS & MOUNT POINT: INTRODUCTION
• Usual Solaris9 Server:
– On usual Server we map a physical address on the disk
(partition 1 : c0d0s1) with a address in FS. This is the mount
operation.
• That means that any partition can be mounted on 1
mountpoint
m (folder in FS)
# more /etc/vfstab (for linux /etc/fstab )
#device device mount FS fsck mount mount
/dev/dsk/c1d0s1 - - swap - no -
/dev/dsk/c1d0s0 /dev/rdsk/c1d0s0 / ufs 1 no -
/dev/dsk/c1d0s7 /dev/rdsk/c1d0s7 /home ufs 2 yes -
mynas:/data1/QAplatforms - /mnt/QAplatforms nfs - no rw

Antoine Fouillé
1-4 FS & MOUNT POINT: ADVANCED 1

• Usual Solaris9 Server: Many File system (FS)


exist:
– UFS : Unix File System
– FAT32 : Windows File System
– NTFS : Windows File System
– Ext3 : Linux File System
– NFS : Network File System
Z– ZFS : Zeta File System (Solaris)
• The FS is applied on a partition and mounted:
– In previous example, /dev/dsk/c1d0s7 is a partition
formated is UFS and mounted at /home of system
partion.
Antoine Fouillé
1-4 FS & MOUNT POINT: ADVANCED 2
The device name
observed with format The Used
TheSpace
Available
MountinPoint
KBSpace in KB
on File System
Global# df -k
Filesystem kbytes used Avail Capacity Mounted on
/dev/md/dsk/d0 11094316 4823459 6159914 44,00% /
/devices 0 0 0 0 /devices
/dev/md/dsk/d5 6053358 1161072 4831753 20,00% /var
swap 21224480 8 21224472 1,00% /tmp
swap 21224544 72 21224472 1,00% /var/run
/dev/md/dsk/d890 10323052 7687823 2531999 76,00% /zones/SERVER2
/dev/md/dsk/d230 10323052 9959358 260464 98,00% /zones/SERVER1

Antoine Fouillé
2-1 ZFS FILE SYSTEM: INTRODUCTION
• Unlike traditional FS, which reside on single devices and thus
require a volume manager to use more than one device, ZFS
filesystems are built on top of virtual storage pools called zpools.
– CCapacity: ZFS is a 128-bit file system ( can support tausend terabytes)
– Snapshots and clones
– Dynamic striping
– Variable block sizes
– Lightweight filesystem creation
– Explicit I/O priority with deadline scheduling.
– Parallel, constant-time directory operations.
– EEnd-to-end checksumming, allowing data corruption detection(and recovery)
– Intelligent scrubbing and resilvering
– Load and space usage sharing between disks in the pool
– Ditto blocks
– Filesystem encryption is supported
– Addaptative reservation and quota Antoine Fouillé
2-2 ZFS FILE SYSTEM: ADVANCED
When we create a ZFS pool, the ZFS is used on the whole pool.:
Global# zpool create -f <PoolName> c1d0s0 c1d0s1 c2d0s0 c2d0s1 c3d0s0
Global# zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
<PoolName> 411G 82K 411G 0% ONLINE -

ZFS Level
<PoolName>

disk1 disk2 disk3


Disk Level
0 1 0 1 0 1

Antoine Fouillé
2-3 ZFS POOL: INTRODUCTION

• A ZFS pool is a virtual device composed by 1 or


many physical partition on 1 or many device. This
ZFS pool can be considered as a partition.

ZFS Level
SERVER

disk1 disk2 disk3


Disk Level
0 1 0 1 0 1

Antoine Fouillé
2-4 ZFS POOL: ADVANCED
• The ZFS pool can be divided in many sub pool.
This can be considered as partition.
• List ZFS pool and ZFS sub pool:
Global# zfs list
NAME USED AVAIL REFER MOUNTPOINT
SERVER 353G 77.9G 3.63G /SERVER
SERVER/home1 5.07G 77.9G 5.07G /home
SERVER/ANTOINE1 7.87G 77.9G 7.87G /opt/ANTOINE
• Create Sub pool:
Global# zfs create <PoolName>/<SubPoolName>
ZFS pool <=> Virtual Device
ZFS sub pool <=> Virtual Partition
Antoine Fouillé
3-1 ZFS POOL FOR ZONES:
S
E
INTRODUCTION
S
E
S S
R R
E E
V V
R R
E E
V V
R R
E E
/ /
R R
/
A
N
/
A
N
ZFS Pool Level
h h
T T
o o
O O
m m
e
I
e
I
N
ZFS Level
N
1 2 E
E
1 2
SERVER
disk1 disk2 disk3
Disk Level

Antoine Fouillé
3-2 ZFS POOL FOR ZONE: ADVANCED
Listing Pool
Global# zfs list
NAME USED AVAIL REFER MOUNTPOINT
SERVER 353G 75.9G 3.63G /SERVER
SERVER/home1 5.07G 75.9G 5.07G /home
SERVER/ANTOINE1 7.87G 75.9G 7.87G /opt/ANTOINE
SERVER/home2 6.07G 75.9G 6.07G /home
SERVER/ANTOINE2 8.87G 75.9G 8.87G /opt/ANTOINE

Antoine Fouillé
3-3 ZONES: INTRODUCTION
home/ANTOINE/opt/ANTOINE/home/ANTOINE/opt/ANTOINE Zone FS Level
m m
e e
m m
k k
e e
o o
k k
n n
o o
g g
n n
/ /
g g
/
A
/
A ZFS Pool Level
N N
h h
T T
o o
O O
m m
e
I
e
I ZFS Level
N N
1 2
E E
1
SERVER
2

disk1 disk2 disk3


Disk Level

Antoine Fouillé
3-4 ZONES: ADVANCED
Zone Level
SERVER1 SERVER2
/home/ANTOINE /opt/ANTOINE /home/ANTOINE /opt/ANTOINE Zone FS Level

ZFS Pool Leve

ZFS Level

SERVER
disk1 disk2 disk3
Disk Level

Antoine Fouillé
4-1 ARCHITECTURE

Antoine Fouillé
4-2 ARCHITECTURE
• Benefits
– Can work on a zone in same time than NIMS is running on an
other
– Can set up different Software (Java, Oracle, Soft) on the different
Zones
Z – Zone are proof from one to an other (error can not be propagated)
C – Can let more than 4 environments (up to 20 per server)
– Size of disk/partition is not any more an problem
– Can add a new disk without shutting down the server
– Each zone looks like a real server
– Solaris9 will not be maintain by Sun => We anticipate the OS
change

Antoine Fouillé
FAQ

• How many zone can I Create? Up to 8000.


• Can I limit Resource Use? CPU and JVM : yes
• How can be changed date?Date can be changed
only on global zone. This impact all the zones of
the server.

Antoine Fouillé

Das könnte Ihnen auch gefallen