Before the drives can be used in a “swap set”, they need to be setup or intialized.Use minicom to access the Coriad via serial:
[root@backup ~]# minicom
Welcome to minicom 2.00.0
OPTIONS: History Buffer, F-key Macros, Search History Buffer, I18n
Compiled on Feb 21 2005, 19:32:30.Press CTRL-A Z for help on special keys
Issue the Coraid show command in the minicom terminal window:
SATA shelf 1> show -l
1.0 400.088GB up
1.1 400.088GB up
1.2 400.088GB up
1.3 400.088GB up
Issue the jbod Coraid command in the minicom terminal window:
SATA shelf 1> jbod 1.0-3
making 0
making 1
making 2
making 3
Issue the list Coraid command to verify the jbod creation:
SATA shelf 1> list -l
0 400.088GB online
0.0 400.088GB raidl
0.0.0 normal 400.088GB 1.0
1 400.088GB online
1.0 400.088GB raidl
1.0.0 normal 400.088GB 1.1
2 400.088GB online
2.0 400.088GB raidl
2.0.0 normal 400.088GB 1.2
3 400.088GB online
3.0 400.088GB raidl
3.0.0 normal 400.088GB 1.3
Exit the Coraid shelf and minicom (CTRL-A Z X)
[root@backup ~]# modprobe aoe
[root@backup ~]# aoe-stat
e1.0 400.088GB eth0 up
e1.1 400.088GB eth0 up
e1.2 400.088GB eth0 up
e1.3 400.088GB eth0 up
Create the array
[root@backup ~]# mdadm -C -l 5 -n 4 /dev/md0 /dev/etherd/e1.[0-3]
mdadm: array /dev/md0 started.
Create the volume
[root@backup ~]# pvcreate /dev/md0
Physical volume “/dev/md0″ successfully created
Create the pool
[root@backup ~]# vgcreate pool0 /dev/md0
Volume group “pool0″ successfully created
Verify the pool
[root@backup ~]# vgdisplay pool0
— Volume group —
VG Name pool0
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 1
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 1.09 TB
PE Size 4.00 MB
Total PE 286165
Alloc PE / Size 0 / 0
Free PE / Size 286165 / 1.09 TB
VG UUID f1emjX-S33L-Y3Av-7Xlr-YSgM-Dc4u-h4t0Xw
Create the logical volume
[root@backup ~]# lvcreate -l 286165 -n vol1 pool0
Logical volume “vol1″ created
Format the volume
[root@backup ~]# mkfs -t ext3 /dev/pool0/vol1
mke2fs 1.35 (28-Feb-2004)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
146522112 inodes, 293032960 blocks
14651648 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=293601280
8943 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: doneThis filesystem will be automatically checked every 24 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
[root@backup ~]#
Mount the volume
[root@backup ~]# mount /dev/pool0/vol1 /mnt/vol1
Rsync the backuppc config files
rsync -av -v /home/config/ /home/backuppc/
Note: If you get the following error: rsync: mkdir “/home/backuppc” failed: File exists (17), recreate the link from /home/backuppc to /mnt/vol1/backuppc.
Start BackupPC
[root@backup home]# /mnt/vol1/backuppc/backuppc start
Starting BackupPC: [ OK ]