← Back to team overview

mylvmbackup-discuss team mailing list archive

Need for --backupdir & --mountdir when using --backuptype=none

 

I was surprised to find that the backup directory and mount directory was
needed when I didn't want to produce a backup.
Was just testing options out.

I see in debugging the use of mount point, but not the backup directory.  I
feel at least this check is unnecessary.



$ sudo rm -rf /var/tmp/mylvmbackup/
$ sudo ./mylvmbackup --user=**** --password=***** --host=192.168.2.105
--vgname=slash --lvname=produce --backuptype=none

The directory /var/tmp/mylvmbackup/backup does not exist or I don't have
sufficient privileges to read/write/access it.
Please verify the permissions or provide another directory
by using the option --backupdir=<directory>

20081216 11:35:47 Error: The directory /var/tmp/mylvmbackup/backup does not
exist or I don't have sufficient privileges to read/write/access it.
20081216 11:35:47 Info: Cleaning up...
$ sudo mkdir -p /var/tmp/mylvmbackup/backup
$ sudo ./mylvmbackup --user=*** --password=**** --host=192.168.2.105
--vgname=slash --lvname=produce --backuptype=none

The directory /var/tmp/mylvmbackup/mnt does not exist or I don't have
sufficient privileges to read/write/access it.
Please verify the permissions or provide another directory
by using the option --mountdir=<directory>

20081216 11:37:26 Error: The directory /var/tmp/mylvmbackup/mnt does not
exist or I don't have sufficient privileges to read/write/access it.
20081216 11:37:26 Info: Cleaning up...
$ sudo mkdir -p /var/tmp/mylvmbackup/mnt/backup
$ sudo ./mylvmbackup --user=***** --password=***** --host=192.168.2.105
--vgname=slash --lvname=produce --backuptype=none
20081216 11:38:24 Info: Connecting to database...
20081216 11:38:25 Info: Flushing tables with read lock...
20081216 11:38:25 Info: Taking position record...
20081216 11:38:25 Info: Running: /sbin/lvcreate -s --size=5G
--name=produce_snapshot /dev/slash/produce
File descriptor 3 left open
  Logical volume "produce_snapshot" created
20081216 11:38:25 Info: DONE: taking LVM snapshot
20081216 11:38:25 Info: Unlocking tables...
20081216 11:38:25 Info: Disconnecting from database...
20081216 11:38:25 Info: Mounting snapshot...
20081216 11:38:25 Info: Running: /bin/mount -o ro
/dev/slash/produce_snapshot /var/tmp/mylvmbackup/mnt/backup
20081216 11:38:25 Info: DONE: mount snapshot
20081216 11:38:25 Info: Running: /bin/mount -o bind,ro
/tmp/mylvmbackup-backup-20081216_113824_mysql-1d27vU/pos
/var/tmp/mylvmbackup/mnt/backup-pos
20081216 11:38:25 Info: DONE: bind-mount position directory
20081216 11:38:25 Info: Backuptype none selected, not doing backup... DONE
20081216 11:38:25 Info: Cleaning up...
20081216 11:38:25 Info: LVM Usage stats:
20081216 11:38:25 Info:   LV               VG    Attr   LSize Origin  Snap%
Move Log Copy%
20081216 11:38:25 Info:   produce_snapshot slash swi-a- 5.00G produce
0.00
  Logical volume "produce_snapshot" successfully removed

Follow ups