CentOS fs (or folder) snapshot without LVM

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I do not have an LVM volume in my CentOS7 setup, since RAID1 on XFS with LVM on top = possibly sub-optimal performance (as stated here, have a look at Andres719's comment)



However, I want to take a snapshot of atleast my DB and data folders for backup.



Is there a way I can get a snapshot of the folders without LVM.



(I may use 'cp', but then my production server will take a performance hit. Also, DBs will have to remain closed while cp does its work on, say, a 500GB folder)







share|improve this question



















  • I guess you misunderstood that comment. The performance hint refers to doing RAID-1 on a single drive (which could be done with mdadm as well, no need for LVM to do this). But XFS can do snapshots on filesystem level so no need for LVM either.
    – Hauke Laging
    Apr 29 at 0:00










  • @Hauke - could you please point me to an article or command used to get an XFS snapshot. I usually find LVM snapshot articles when I search online for 'XFS snapshot'
    – vjjj
    Apr 29 at 0:05










  • Sorry, I misread a headline (I do not use XFS myself). XFS seems not to offer snapshots yet.
    – Hauke Laging
    Apr 29 at 0:14






  • 1




    To quote the article you linked "how do I do X" and the answer will be "do you have LVM" and you'll say "I don't" and we will answer "why not, now you can't do X. If you're concerned about performance, did you do any benchmarks before you ruled LVM out?
    – Patrick
    Apr 29 at 0:27










  • @Patrick - I didn't benchmark myself, but had a look at this - serverfault.com/questions/518329/…
    – vjjj
    Apr 29 at 0:46














up vote
0
down vote

favorite












I do not have an LVM volume in my CentOS7 setup, since RAID1 on XFS with LVM on top = possibly sub-optimal performance (as stated here, have a look at Andres719's comment)



However, I want to take a snapshot of atleast my DB and data folders for backup.



Is there a way I can get a snapshot of the folders without LVM.



(I may use 'cp', but then my production server will take a performance hit. Also, DBs will have to remain closed while cp does its work on, say, a 500GB folder)







share|improve this question



















  • I guess you misunderstood that comment. The performance hint refers to doing RAID-1 on a single drive (which could be done with mdadm as well, no need for LVM to do this). But XFS can do snapshots on filesystem level so no need for LVM either.
    – Hauke Laging
    Apr 29 at 0:00










  • @Hauke - could you please point me to an article or command used to get an XFS snapshot. I usually find LVM snapshot articles when I search online for 'XFS snapshot'
    – vjjj
    Apr 29 at 0:05










  • Sorry, I misread a headline (I do not use XFS myself). XFS seems not to offer snapshots yet.
    – Hauke Laging
    Apr 29 at 0:14






  • 1




    To quote the article you linked "how do I do X" and the answer will be "do you have LVM" and you'll say "I don't" and we will answer "why not, now you can't do X. If you're concerned about performance, did you do any benchmarks before you ruled LVM out?
    – Patrick
    Apr 29 at 0:27










  • @Patrick - I didn't benchmark myself, but had a look at this - serverfault.com/questions/518329/…
    – vjjj
    Apr 29 at 0:46












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I do not have an LVM volume in my CentOS7 setup, since RAID1 on XFS with LVM on top = possibly sub-optimal performance (as stated here, have a look at Andres719's comment)



However, I want to take a snapshot of atleast my DB and data folders for backup.



Is there a way I can get a snapshot of the folders without LVM.



(I may use 'cp', but then my production server will take a performance hit. Also, DBs will have to remain closed while cp does its work on, say, a 500GB folder)







share|improve this question











I do not have an LVM volume in my CentOS7 setup, since RAID1 on XFS with LVM on top = possibly sub-optimal performance (as stated here, have a look at Andres719's comment)



However, I want to take a snapshot of atleast my DB and data folders for backup.



Is there a way I can get a snapshot of the folders without LVM.



(I may use 'cp', but then my production server will take a performance hit. Also, DBs will have to remain closed while cp does its work on, say, a 500GB folder)









share|improve this question










share|improve this question




share|improve this question









asked Apr 28 at 23:49









vjjj

1112




1112











  • I guess you misunderstood that comment. The performance hint refers to doing RAID-1 on a single drive (which could be done with mdadm as well, no need for LVM to do this). But XFS can do snapshots on filesystem level so no need for LVM either.
    – Hauke Laging
    Apr 29 at 0:00










  • @Hauke - could you please point me to an article or command used to get an XFS snapshot. I usually find LVM snapshot articles when I search online for 'XFS snapshot'
    – vjjj
    Apr 29 at 0:05










  • Sorry, I misread a headline (I do not use XFS myself). XFS seems not to offer snapshots yet.
    – Hauke Laging
    Apr 29 at 0:14






  • 1




    To quote the article you linked "how do I do X" and the answer will be "do you have LVM" and you'll say "I don't" and we will answer "why not, now you can't do X. If you're concerned about performance, did you do any benchmarks before you ruled LVM out?
    – Patrick
    Apr 29 at 0:27










  • @Patrick - I didn't benchmark myself, but had a look at this - serverfault.com/questions/518329/…
    – vjjj
    Apr 29 at 0:46
















  • I guess you misunderstood that comment. The performance hint refers to doing RAID-1 on a single drive (which could be done with mdadm as well, no need for LVM to do this). But XFS can do snapshots on filesystem level so no need for LVM either.
    – Hauke Laging
    Apr 29 at 0:00










  • @Hauke - could you please point me to an article or command used to get an XFS snapshot. I usually find LVM snapshot articles when I search online for 'XFS snapshot'
    – vjjj
    Apr 29 at 0:05










  • Sorry, I misread a headline (I do not use XFS myself). XFS seems not to offer snapshots yet.
    – Hauke Laging
    Apr 29 at 0:14






  • 1




    To quote the article you linked "how do I do X" and the answer will be "do you have LVM" and you'll say "I don't" and we will answer "why not, now you can't do X. If you're concerned about performance, did you do any benchmarks before you ruled LVM out?
    – Patrick
    Apr 29 at 0:27










  • @Patrick - I didn't benchmark myself, but had a look at this - serverfault.com/questions/518329/…
    – vjjj
    Apr 29 at 0:46















I guess you misunderstood that comment. The performance hint refers to doing RAID-1 on a single drive (which could be done with mdadm as well, no need for LVM to do this). But XFS can do snapshots on filesystem level so no need for LVM either.
– Hauke Laging
Apr 29 at 0:00




I guess you misunderstood that comment. The performance hint refers to doing RAID-1 on a single drive (which could be done with mdadm as well, no need for LVM to do this). But XFS can do snapshots on filesystem level so no need for LVM either.
– Hauke Laging
Apr 29 at 0:00












@Hauke - could you please point me to an article or command used to get an XFS snapshot. I usually find LVM snapshot articles when I search online for 'XFS snapshot'
– vjjj
Apr 29 at 0:05




@Hauke - could you please point me to an article or command used to get an XFS snapshot. I usually find LVM snapshot articles when I search online for 'XFS snapshot'
– vjjj
Apr 29 at 0:05












Sorry, I misread a headline (I do not use XFS myself). XFS seems not to offer snapshots yet.
– Hauke Laging
Apr 29 at 0:14




Sorry, I misread a headline (I do not use XFS myself). XFS seems not to offer snapshots yet.
– Hauke Laging
Apr 29 at 0:14




1




1




To quote the article you linked "how do I do X" and the answer will be "do you have LVM" and you'll say "I don't" and we will answer "why not, now you can't do X. If you're concerned about performance, did you do any benchmarks before you ruled LVM out?
– Patrick
Apr 29 at 0:27




To quote the article you linked "how do I do X" and the answer will be "do you have LVM" and you'll say "I don't" and we will answer "why not, now you can't do X. If you're concerned about performance, did you do any benchmarks before you ruled LVM out?
– Patrick
Apr 29 at 0:27












@Patrick - I didn't benchmark myself, but had a look at this - serverfault.com/questions/518329/…
– vjjj
Apr 29 at 0:46




@Patrick - I didn't benchmark myself, but had a look at this - serverfault.com/questions/518329/…
– vjjj
Apr 29 at 0:46















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f440662%2fcentos-fs-or-folder-snapshot-without-lvm%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f440662%2fcentos-fs-or-folder-snapshot-without-lvm%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay