
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2017 07:32 AM - edited 03-01-2019 04:40 AM
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!
Solved! Go to Solution.
- Labels:
-
APIC
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2017 08:52 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2017 07:51 AM
Forgot to mention - APIC-EM Version 1.5.0.1368 (standalone, no HA/Cluster)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2017 04:18 PM
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
as root, change dir into /svr/grapevine/replicated-storage
cd /srv/grapevine/replicated-storage
create a new file
> backups/fred
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2017 06:34 AM
why shouldn't I believe you? :-)
Thnks much!
Can you please elaborate on the reason behind it?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2017 08:52 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2017 05:56 AM
Thank you so much for the detailed explanation.
Much appreciated.
