ZFS Redundacy

por | 19 marzo, 2008

1. Mirroring – RAID – 1
2. RAID – 5 – RAID -Z

bash-3.00# format
Searching for disks…done

AVAILABLE DISK SELECTIONS:
       0. c0d0 <DEFAULT cyl 2607 alt 2 hd 255 sec 63>
          /pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0
       1. c0d1 <DEFAULT cyl 1303 alt 2 hd 255 sec 63>
          /pci@0,0/pci-ide@7,1/ide@0/cmdk@1,0
       2. c1d1 <DEFAULT cyl 1303 alt 2 hd 255 sec 63>
          /pci@0,0/pci-ide@7,1/ide@1/cmdk@1,0

Virtual Devices:
1. c0d1 – 10.0G
2. c1d1 – 10.0G

Note: Redundacy/Replication is associated directly with the pool

Tip: For PRODUCTION enviroments ideally you should implement your mirror, raid z, straight volumnes dedicating THE ENTIRE DISK to zfs (the disks should be the same )

 ******************** MIRROR **********************

bash-3.00# zpool create poolmirror1 mirror c0d1 c1d1
bash-3.00# echo $?
0

bash-3.00# zfs list
NAME          USED  AVAIL  REFER  MOUNTPOINT
poolmirror1    86K  9.78G  24.5K  /poolmirror1

bash-3.00# ls -ltr /poolmirror1/
total 0

### CREATE Dir HOME ######

bash-3.00# zfs create poolmirror1/home
 
ash-3.00# zfs list
NAME               USED  AVAIL  REFER  MOUNTPOINT
poolmirror1        114K  9.78G  25.5K  /poolmirror1
poolmirror1/home  24.5K  9.78G  24.5K  /poolmirror1/home

 ******************** raid-z **********************

# Create the pool
bash-3.00#/usr/sbin/zpool create -f poolraidz1 raidz c0d1 c1d1

bash-3.00# zfs list
NAME         USED  AVAIL  REFER  MOUNTPOINT
poolraidz1    86K  9.78G  24.5K  /poolraidz1