Bitcoin Forum
May 20, 2019, 02:00:14 AM *
News: Latest Bitcoin Core release: 0.18.0 [Torrent] (New!)
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: is it possible to store the blockchain in two different hard drives?  (Read 241 times)
fedemining
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
January 25, 2019, 11:14:11 AM
 #1

is it possible to store the blockchain in two different hard drives that works simultaneousley?
New Generation Antminer S17 Mining Plan Available Now! Highly Reduced Electricity Fee $0.067/T/DAY! Register To Experience
Free Mining Plan!
GET STARTED!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1558317614
Hero Member
*
Offline Offline

Posts: 1558317614

View Profile Personal Message (Offline)

Ignore
1558317614
Reply with quote  #2

1558317614
Report to moderator
joniboini
Hero Member
*****
Offline Offline

Activity: 560
Merit: 1029



View Profile WWW
January 25, 2019, 12:20:35 PM
 #2

Blockchain is actually stored on many hard drives (replicated) and they 'work' simultaneously. The blockchain is simply a file/database, you can store and copy it many times.

If you're talking about running a node and then split your blockchain file to two different address, I doubt it's not possible because blockchain is stored in a single file, blk*.dat (in Bitcoin). If you split it (that single file) into two (not sure how you did this, I assume you'll split it and therefore break the data, just like a broken zip file) you won't be able to use it because it's corrupt. You can read further here[1].

That's what I understand at least, maybe someone smarter than me has a different opinion.

[1] http://learnmeabitcoin.com/glossary/blkdat

███████████
██
██
██
██
██
██
██
██
██
██
██
███████████
#1
███████████
██
██
██
██
██
██
██
██
██
██
██
███████████
BTC 
  ●
   BTC
  BTC  
.
    ▄▄▄▀▀▀▀
 ▄██▀
███        ▄▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄▄▄
▀███▄▄▄▄▀▀▀                 ▀▀▄▄
  ▀▀▀██████████████████████████▀
   ▄█▄     ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
    ▀▀██▄▄█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀▀
      ▄  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
      ▀██▄  ▄▀▀▀▀▀▀▀▀▀▀▀▀▄
        ▀█▀██████████████▀▀
         ▀█▄▄ ▄▄▄▄▄▄▄▄▄▄
            █▀▄▄▄▄▄▄▄▄▄▄▀
             ▀▀▄▄▄▄▄▄▄
.
     BTC
  BTC   
  ●
  BTC  
███████████
██
██
██
██
██
██
██
██
██
██
██
███████████
███████████
██
██
██
██
██
██
██
██
██
██
██
███████████
LoyceV
Legendary
*
Offline Offline

Activity: 1484
Merit: 3792


Self-made Legendary outside Meta!


View Profile WWW
January 25, 2019, 12:21:44 PM
Merited by dbshck (4)
 #3

Depending on your Operating System, you may be able to softlink certain files (blocks) to another hard drive, but it's not recommended.
Are you trying to save space? In that case you might want to use prune.

mocacinno
Legendary
*
Offline Offline

Activity: 1582
Merit: 1576


https://unblur.ninja =>lightning network testsite


View Profile WWW
January 25, 2019, 12:26:47 PM
Last edit: January 25, 2019, 12:40:20 PM by mocacinno
Merited by dbshck (4), Foxpup (2), ETFbitcoin (1)
 #4

yes... In a way, especially if you use linux. But probably not in the way you're thinking.

- create 1 partition on each disk, type LVM
- create a volume group including the two disks
- create a new logical volume, 2 stripes, mountpoint /home/youruser/.bitcoin

There's also the option of setting up a raid setup.

jackg
Copper Member
Legendary
*
Offline Offline

Activity: 1372
Merit: 1243


https://bit.ly/2FR9nyn - free python tutorials


View Profile
January 25, 2019, 02:42:41 PM
Merited by khaled0111 (1)
 #5

There's also the option of setting up a raid setup.

That's what I was thinking. I think this is raid1 maybe op should look into it as there's definitely software for that in all operating systems.

Unless op you want two copies of the exact same blockchain which is also possible and helpful in some cases..

NeuroticFish
Legendary
*
Online Online

Activity: 1848
Merit: 1208


There are no mistakes. Only opportunities wasted.


View Profile
January 25, 2019, 05:22:39 PM
 #6

OP, you've got here a number of good answers. However, if none of them helps you, maybe it could be a good idea to tell in more words what you want to find out, what is the exact thing you want to know or achieve.

From how I understand the question, I'd also say that something like RAID would be the answer for you. But on the other hand, HDDs are cheap nowadays so you should not really have such space issues to need the blockchain data kept on 2 HDDs. If you just want to keep all the current settings and just move the blockchain data onto a bigger HDD/partition, a symlink is the easy way forward.

ETFbitcoin
Legendary
*
Offline Offline

Activity: 1638
Merit: 1764

Use SegWit and enjoy lower fees.


View Profile WWW
January 25, 2019, 06:07:17 PM
 #7

That's what I was thinking. I think this is raid1 maybe op should look into it as there's definitely software for that in all operating systems.

RAID 1 is best choice if OP is looking for automatic blockchain duplication/backup. But based on OP's question, i think RAID 0 or RAID 5 is what OP looking for since you can make a partition/volume with more capacity.

Jet Cash
Legendary
*
Offline Offline

Activity: 1246
Merit: 1642


TEMP and VOM member and monderator.


View Profile WWW
January 28, 2019, 07:04:00 PM
 #8

The blockchain doesn't matter, you can always download a new one. It's your wallet stuff that you need to worry about.

You can run two computers with a copy of the wallet on each, and synchronise the blockchains independently. This protects you if one computer is stolen, but you should make additional backups of your wallet so that you can recover your coins in the event of a disaster such as a fire.

The Jet Cash coffee lounge in the Ivory Tower has had some good relaxing chat recently, just what you would expect.
We need some girls to brighten the conversation though.
sheenshane
Sr. Member
****
Offline Offline

Activity: 602
Merit: 294


●Anonymous Bitcoin Mixer●


View Profile
January 31, 2019, 07:51:37 AM
 #9

Yes, and I think what you are trying to say is your wallet to be saved in two hard drives. Because of blockchain works simultaneously and just a database. To explain it more clear, blockchain is a database that will link a block into another block. Those blocks would have saved data such as hash, transaction information and so on.
If you are pertaining to saving your blockchain wallet into two hard drives, then that is actually yes. You can save your wallet in both of your two hard drives so if you lose the one, you'll still have an extra driver to have your wallet.

███████████
██
██
██
██
██
██
██
██
██
██
██
███████████
#1
███████████
██
██
██
██
██
██
██
██
██
██
██
███████████
BTC 
  ●
   BTC
  BTC  
.
    ▄▄▄▀▀▀▀
 ▄██▀
███        ▄▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄▄▄
▀███▄▄▄▄▀▀▀                 ▀▀▄▄
  ▀▀▀██████████████████████████▀
   ▄█▄     ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
    ▀▀██▄▄█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀▀
      ▄  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
      ▀██▄  ▄▀▀▀▀▀▀▀▀▀▀▀▀▄
        ▀█▀██████████████▀▀
         ▀█▄▄ ▄▄▄▄▄▄▄▄▄▄
            █▀▄▄▄▄▄▄▄▄▄▄▀
             ▀▀▄▄▄▄▄▄▄
.
     BTC
  BTC   
  ●
  BTC  
███████████
██
██
██
██
██
██
██
██
██
██
██
███████████
███████████
██
██
██
██
██
██
██
██
██
██
██
███████████
Artemis3
Sr. Member
****
Offline Offline

Activity: 280
Merit: 466


★777Coin.com★ Fun BTC Casino!


View Profile WWW
January 31, 2019, 03:16:50 PM
 #10

is it possible to store the blockchain in two different hard drives that works simultaneousley?

Raid controllers or "software (fake) Raid" can achieve this, with a mode called JBOD (Just a Bunch of Disks), it will look to the OS like a single drive.

I would recommend Linux, but it might be possible to do it in windows if the motherboard has such mode. Although Raid 0 works, that needs two drives of identical size (or one of them would have wasted space). Raid 0 increases the chance of data loss if a problem occur with the drives, but the blockchain can easily be recovered anyway and it happens to be faster.

In Linux, you could use LVM as mentioned above.
There are also specialized filesystems that support this as well without LVM: Btrfs, and ZFS to name a couple.

If your drives are so small that you need two to fit the entire blockchain, perhaps you should consider simply getting a larger one. A cheap ($18) 250g drive should fit the blockchain now, but give it some room for the future: you can get a 500g drive for $20...

ETFbitcoin
Legendary
*
Offline Offline

Activity: 1638
Merit: 1764

Use SegWit and enjoy lower fees.


View Profile WWW
January 31, 2019, 06:34:32 PM
 #11

There are also specialized filesystems that support this as well without LVM: Btrfs, and ZFS to name a couple.

btrfs is still on-development and AFAIK features such as RAID / multi-drive isn't fully stable yet.

If your drives are so small that you need two to fit the entire blockchain, perhaps you should consider simply getting a larger one. A cheap ($18) 250g drive should fit the blockchain now, but give it some room for the future: you can get a 500g drive for $20...

Or just use pruned mode if you don't need past transaction/blocks information. Besides HDD with small capacity have lower price/space ratio, you can get 4TB HDD for $100 which have price $0.025/GB while the one you mentioned have price $0.04/GB.

jackg
Copper Member
Legendary
*
Offline Offline

Activity: 1372
Merit: 1243


https://bit.ly/2FR9nyn - free python tutorials


View Profile
February 01, 2019, 01:37:17 PM
 #12

Or just use pruned mode if you don't need past transaction/blocks information. Besides HDD with small capacity have lower price/space ratio, you can get 4TB HDD for $100 which have price $0.025/GB while the one you mentioned have price $0.04/GB.

Along with this, if moneys tight, you can buy a second hand hard drive from a trusted and experienced broker generally they'll still be cheaper but you'll have to run a few things first just to check the drive is a big as the broker claims it to be...



Although op doesn't seem to have been here in a while so this might be a void comment.

Artemis3
Sr. Member
****
Offline Offline

Activity: 280
Merit: 466


★777Coin.com★ Fun BTC Casino!


View Profile WWW
February 03, 2019, 12:25:39 AM
Last edit: February 03, 2019, 12:50:43 AM by Artemis3
Merited by suchmoon (4), JayJuanGee (1), ETFbitcoin (1)
 #13

There are also specialized filesystems that support this as well without LVM: Btrfs, and ZFS to name a couple.

btrfs is still on-development and AFAIK features such as RAID / multi-drive isn't fully stable yet.

Actually i have been using it for more than 3 years with zero issues using on the fly compression. Btrfs was officially declared stable when it was taken out of the experimental phase in the kernel by 2012, when several Linux distributions moved Btrfs from experimental to production or supported status.

The only features "still on development" would be raid 5/6 modes, raid 0/1 and jbod are perfectly fine.

With btrfs you can mix and match different devices and use them like a single device: https://btrfs.wiki.kernel.org/index.php/Using_Btrfs_with_Multiple_Devices

There are several guides on btrfs out there, most distros have recent enough kernels to safely use it already.

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!