Is there a "online" 'dd'

Discuss Applications
Post Reply
User avatar
Basher52
guru
guru
Posts: 912
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Is there a "online" 'dd'

Post by Basher52 » Fri Nov 26, 2010 5:00 pm

kinda related to http://voidmain.is-a-geek.net/forums/vi ... 6401#16401

I wonder if there is a 'dd' utility that can be run when the server is up and running? I need to 'dd' the boot disk again it seems. Have gotten mails from "S.M.A.R.T." that there are some sector problems with the boot disk.
I had it offline last time and the 'dd' took 45 mins if I can recall that correctly and that is way too much.


and oh...no, think this is better in a new thread...

User avatar
Basher52
guru
guru
Posts: 912
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Post by Basher52 » Sat Nov 27, 2010 5:54 pm

Any thoughts of this?

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Sat Nov 27, 2010 6:37 pm

You can dd a running system but it's not a good idea. What you probably want to check out are file system "snapshots".

User avatar
Basher52
guru
guru
Posts: 912
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Post by Basher52 » Sat Nov 27, 2010 6:41 pm

If it's not a good idea then I'll do it offline :)
thx

User avatar
Void Main
Site Admin
Site Admin
Posts: 5712
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Sat Nov 27, 2010 6:58 pm

It's perfectly safe if you do it using an LVM snapshot:

http://tldp.org/HOWTO/LVM-HOWTO/snapshots_backup.html

User avatar
Basher52
guru
guru
Posts: 912
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Post by Basher52 » Sat Nov 27, 2010 7:22 pm

I don't use LVM, I use RAID5 trough hardware.
Just to be sure I'm gonna use the "offline" way :P
but I'll do that tomorrow I think

Post Reply