$Id: database_documentation.xml 4145 2009-05-12 16:29:28Z nrueff $
Copyright © 2009 Mandriva
Revision History | ||
---|---|---|
Revision 1.3.0 | 2009-11-20 | NR |
First version |
Abstract
Description of a Pulse 2 image
Table of Contents
A Pulse 2 image is contained in a folder, with files containing information, and files containing meta-information.
The file collection contains the image data.
The file reflects the image content. Syntax as follow :
D:<disk-num> L:<disk-size> R <disk-letter><part-num> , S:<start block> , E:<end-block>, t:<part-size> ... E
For example :
D:128 L:398297088 R P1 , S:63 , E:1028159 , t:131 P2 , S:1028160 , E:3084479 , t:130 P3 , S:3084480 , E:20498939 , t:131 P4 , S:20498940 , E:24595514 , t:131 E
The is the exact copy of the first needed sectors. For example, 63 sectors for regular PC/Dos partition table.
Those files contain other-than-the-client-data information : logs, GRUB template ...
The is a Grub 1 config file chunk. More precisely, this contains a full grub 1 item :
title <the image title> desc <the image description> <additionnal GRUB commands goes there>
Amongst GRUB commands (see the grub project for more details), Mandriva added a few commands to permit restoration using TFTP protocol :
Partition restoration :
the command line is :
partcopy <PART> <START> (nd)PATH/<PREFIX> [TYPE]
with :
PART: a partition, GrUB syntax ((hd0,0) for ex.)
START: the start sector (512 B),
PREFIX: The image prefix (P1 for example)
TYPE: The PC/DOS partition kind (83 for Linux for example)
Partition table restoration:
the command line is :
ptabs <DISK> (nd)PATH/<NAME>
with :
DISK: a disk, GrUB syntax ((hd0) for ex.)
NAME: the name of the file containing the partition table (PTABS for example)
The Pulse 2 backup binaries uses this file to learn which partitions to backup (more precisely, which to exclude). This one contains exclusion patterns, one per line, using the following syntax : <disk name>:<partition name> :
To prevent backuping the P partition from D disk : D:P
To prevent backuping the D disk : D:0
A bunch of around-the-backup logs :
date
/etc/cmdline
/proc/cmdline
/proc/version
/proc/partitions
/proc/bus/pci/devices
/proc/modules
/var/log/syslog
This file is used to write the backup operation progress. The syntax is :
<partition> : <percentile>
<partition> honours the "exclude" file syntax.
Special case : when the backup is done, partition is set to 0.
This is the output of a simple 'du -k' done on the image folder after the backup operation.