Beruflich Dokumente
Kultur Dokumente
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
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
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>
Antoine Fouillé
2-3 ZFS POOL: INTRODUCTION
ZFS Level
SERVER
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
Antoine Fouillé
3-4 ZONES: ADVANCED
Zone Level
SERVER1 SERVER2
/home/ANTOINE /opt/ANTOINE /home/ANTOINE /opt/ANTOINE Zone FS Level
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
Antoine Fouillé