0

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)

  • 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 '18 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 '18 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 '18 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 '18 at 0:27
  • @Patrick - I didn't benchmark myself, but had a look at this - serverfault.com/questions/518329/… – vjjj Apr 29 '18 at 0:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.