cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
375
Views
8
Helpful
5
Replies
Highlighted
Cisco Employee

APIC-EM Backup File

Hey team,

Quick question about APIC-EM backup file.

Any idea why there's a duplicate of the APIC-EM backup file (in the controller server)?

  • Location #1:

/srv/grapevine/replicated-storage/backups/4960085a-9a16-11e7-bbd8-0025b500303f/backup_2017-09-15_13-09-16.backup

  • Location #2:

/mnt/gfs_block/backups/4960085a-9a16-11e7-bbd8-0025b500303f/backup_2017-09-15_13-09-16.backup

  • MD5 of both files:
    • md5sum /srv/grapevine/replicated-storage/backups/4960085a-9a16-11e7-bbd8-0025b500303f/backup_2017-09-15_13-09-16.backup

               d392725d7b30778a56fcf34ec3c1218e

    • md5sum /mnt/gfs_block/backups/4960085a-9a16-11e7-bbd8-0025b500303f/backup_2017-09-15_13-09-16.backup

               d392725d7b30778a56fcf34ec3c1218e


Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

ok... here is the longer answer.

The filesystem used on APIC-EM is gluster file system.

You can see that a cluster filesystem "datastore" is created  as 169.254.0.1/mnt/gfs_block

$ sudo gluster volume info
[sudo] password for grapevine:

Volume Name: datastore
Type: Distribute
Volume ID: b00947e7-bfbb-402a-9c84-33f696a566c8
Status: Started
Number of Bricks: 1
Transport-type: tcp
Bricks:

Brick1: 169.254.0.1:/mnt/gfs_block

This filesystem  is mounted on /srv/grapevine/replicated-storage:

cat /etc/fstab

169.254.0.1:/datastore /srv/grapevine/replicated-storage glusterfs defaults,nobootwait,_netdev,fetch-attempts=10 0 0

/mnt/gfs_block is a direct reference to the gluster brick, where as /srv/grapevine is a reference to the filesystem mount (and the preferred method)

Adam

View solution in original post

5 REPLIES 5
Highlighted
Cisco Employee

Forgot to mention - APIC-EM Version 1.5.0.1368 (standalone, no HA/Cluster)

Highlighted
Cisco Employee

Longer story as to why, but essentially there is only one copy.

They are just different aliases to see the same content. In case you don't believe me try the following

  1. as root, change dir into /svr/grapevine/replicated-storage

cd /srv/grapevine/replicated-storage

  1. create a new file

> backups/fred

  1. take a look at contents on /mnt/gfs_block/backups

ls -lrt /mnt/gfs_block/backups/

total 4

drwxr-xr-x 2 root root 4096 Aug 4 20:32 ded9a8f6-794f-11e7-a569-000c29ee367f

-rw-rr 2 root root 0 Sep 15 23:10 fred

You will see the file appears there too..

There is only one copy.

Highlighted

why shouldn't I believe you? :-)

Thnks much!

Can you please elaborate on the reason behind it?

Highlighted

ok... here is the longer answer.

The filesystem used on APIC-EM is gluster file system.

You can see that a cluster filesystem "datastore" is created  as 169.254.0.1/mnt/gfs_block

$ sudo gluster volume info
[sudo] password for grapevine:

Volume Name: datastore
Type: Distribute
Volume ID: b00947e7-bfbb-402a-9c84-33f696a566c8
Status: Started
Number of Bricks: 1
Transport-type: tcp
Bricks:

Brick1: 169.254.0.1:/mnt/gfs_block

This filesystem  is mounted on /srv/grapevine/replicated-storage:

cat /etc/fstab

169.254.0.1:/datastore /srv/grapevine/replicated-storage glusterfs defaults,nobootwait,_netdev,fetch-attempts=10 0 0

/mnt/gfs_block is a direct reference to the gluster brick, where as /srv/grapevine is a reference to the filesystem mount (and the preferred method)

Adam

View solution in original post

Highlighted

Thank you so much for the detailed explanation.

Much appreciated.

This widget could not be displayed.