Snapshots

daniel87655

Dabbler
Joined
Jul 19, 2021
Messages
11
Hello,

I am having some issues with a pool snapshot, sorry am new to this.

so I have one datapool running nextcloud. I take a snapshot before I carry out a nextcloud update and if there is an issue with the update I want to be able to roll it back to when it was working. But when ever it toll back the snapshot it never works.

Process
Stop nexrtcloud running
Take snapshot of data pool. nextcloud V21
Restart nextcloud. Carry out update to v22.
Stop nextcloud
Roll back snapshot to v21.
Restart nextcloud still on version22

At the moment I am running as a VM for testing. So I have created a snapshot in VM ware so I can roll the vm back to v21 when required.

I am wanting to update my server to TRUENAS so just testing out functionality before hand.

Why isn't the snapshot roll back working as expected cheers
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Your data and your jail are 2 different things (potentially).

Are you taking a snapshot of the jail as well?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Not taking a recursive snapshot? You need to snapshot <yourpool>/iocage/jails/<nextcloudjail> and all datasets below.
Not sure what you mean by taking a snapshot of the pool. You cannot snapshot pools, only datasets and volumes.
 

daniel87655

Dabbler
Joined
Jul 19, 2021
Messages
11
Hi Guys, Sorry for the delay i have been away for work,
sorry for the bad explanation, i have taken screen shots showing the process i was doing

Take snapshot of Nextcloud Test
1628294743105.png

1628294910138.png


after taking snapshot carry out update reboot nextcloud and log in to check update worked,

then roll back the update restart nextcloud and check, and nothing rolls back.
1628294962299.png


i am clearly doing something wrong

again thank you for your help.
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
think that snapshot may need to be recursive
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
think that snapshot may need to be recursive
Of course :wink: Otherwise you are just creating a snapshot of a mostly empty top-level dataset that exists only for management purposes.
 

daniel87655

Dabbler
Joined
Jul 19, 2021
Messages
11
ok thank you, so recursive takes a snap shot of everything below that, i assumed taking a snapshot of the higher level would include everything below it.
when taking a recursive i just have to roll back all the snapshots it takes and it should work fine yeah.
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
I made exactly the same mistake when I first started with FreeNAS (not that long ago - I am just a youngster compared to a lot here)
 
Top