From: Hilbert, Karin <ioh1@xxxxxxx>
Hello, We're in the process of building a new PostgreSQL environment on Scientific Linux release 7.6. The new environment will have a Primary & 2 Standby servers & have asynchronous replication. It will use repmgr to manage failover/switchover events. In the past, we've always had separate separate physical drives for data, pg_xlog & backups. We did this as a precaution against disk failure. If we lose one, we would still have the other two to recover from. Is that really necessary anymore, with having a repmgr cluster? My Linux Admin wants to do the following instead:
=== As with so many situations, “it depends”.
😊 I think the most important part you mentioned is that you’re in a VM, so it’s really up to your host server and you can do anything you like. I’d
probably make 3 separate virtual disks so you can expand them as needed individually. We use real/standalone hardware and create 1 large RAID6 array with LVM on top and then create partitions on top of LVM. Our tablespace is in 1 partition
and the rest is in another partition, and backups are mirrored to another server. I can probably come up with other ways to do things, like the tablespace on SSD while the logs & backups are on some slower but perhaps “more durable”
storage (like a NAS/SAN/whatever). Our hardware can support 2-1TB M2 drives in RAID1 which makes me go “hmm, very fast access for the tablespace”.
😊 Probably can’t convince the “powers”
to buy it though. It really does depends on what’s important to you and what resources you have available (including budget). HTH, Kevin |