# Partitioning hand holding needed

**URL:** <https://forums.rockylinux.org/t/partitioning-hand-holding-needed/4998>\
**Category:** Rocky Linux Help & Support\
**Created:** [December 29, 2021, 5:29pm UTC](https://forums.rockylinux.org/t/partitioning-hand-holding-needed/4998 "2021-12-29T17:29:11Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![shack](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@shack](https://forums.rockylinux.org/u/shack)\
**Post date:** [December 29, 2021, 5:29pm UTC](https://forums.rockylinux.org/t/partitioning-hand-holding-needed/4998/1 "2021-12-29T17:29:11Z")

</div>

I have a box with dual hard disks in it and I want to install RL on it with the disks in a spanned configuration. I’m a complete neophyte as far as partitions, LVM, etc, etc go. Is there a reference or tutorial explaining how to do this while doing a fresh install?

---

<div class="post-metadata">

**Author:** ![gerry666uk](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@gerry666uk](https://forums.rockylinux.org/u/gerry666uk)\
**Post date:** [December 29, 2021, 10:41pm UTC](https://forums.rockylinux.org/t/partitioning-hand-holding-needed/4998/2 "2021-12-29T22:41:26Z")

</div>

The official guide (you can also look at the earlier chapters)

> **[Appendix B. Partitioning reference Red Hat Enterprise Linux 8 | Red...](https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/performing_a_standard_rhel_installation/partitioning-reference_installing-rhel)**
>
> The Red Hat Customer Portal delivers the knowledge, expertise, and guidance available through your Red Hat subscription.

I don’t know what “spanned” means, but it sounds dangerous, for example if a volume extends across both disks, and one fails, that could be bad.

---

<div class="post-metadata">

**Author:** ![jbkt23](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@jbkt23](https://forums.rockylinux.org/u/jbkt23)\
**Post date:** [December 29, 2021, 11:47pm UTC](https://forums.rockylinux.org/t/partitioning-hand-holding-needed/4998/3 "2021-12-29T23:47:41Z")

</div>

This topic came up on Fedora Forum recently. The person was using a raid1 pairing and the reason was that if one drive failed the failed drive could be removed and the other drive would boot and continue on alone till a new replacement could be installed and the pairing resynced. Assuming that backups are also being done to another device is this a plausible approach? I don’t know. One thing I do know is that when an ssd goes bad it just dies, no limping, no warning.

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [December 30, 2021, 10:24am UTC](https://forums.rockylinux.org/t/partitioning-hand-holding-needed/4998/4 "2021-12-30T10:24:42Z")

</div>

“Spanned” tends to mean that a _volume spans_ multiple disks. The trivial example is with LVM. A VG (volume group) has more than one PV (physical volume, a disk) and there is a LV (logical volume) in the VG. Part of the LV is in one disk and other part(s) on other disk(s).

The benefit of spanned volume is that you get larger volume. Say, two 4TB disks can host a 8TB volume.  
The downside is that if any member disk breaks, then all data is lost. It might be possible to recover files that are entirely in one disk.

“Striped” spans too, but the writes are interleaved. (Not “first 4TB on A and second 4TB on B”.) Files smaller than stripe size are on one disk, but all bigger files are spread to both/all disks. The RAID 0 does stripe.

“Mirror”, for example RAID 1, writes everything to every disk. With those two 4TB disks you can get only 4TB volume, but data is _redundant_; every disk has full copy of data.

Can one set up in the interactive installer a VG that has multiple disks? I have no idea, but probably.

Single, large, “continuous” volume is convenient; you don’t need to consider what to put where. However, multiple separate volumes can be quite flexibly mounted to the tree; a “big disk” is not necessary if one can organize data.

---

<div class="post-metadata">

**Author:** ![shack](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@shack](https://forums.rockylinux.org/u/shack)\
**Post date:** [January 2, 2022, 1:11am UTC](https://forums.rockylinux.org/t/partitioning-hand-holding-needed/4998/5 "2022-01-02T01:11:02Z")

</div>

So, I did some research and tried the lsblk command on boxes with varying disk configurations:

![IMG_1167](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/2X/0/0c249eff9aec09043c40500987ecb787370ffa57.jpeg)

mini-2012 has a single 1TB disk and the output is as shown.

![IMG_1168](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/2X/a/a6114154d8b8f1e41e1cfb3553f4705d7bc2b33d.jpeg)

server-2011-2 has dual 500s and its lsblk output is as shown.

![IMG_1169](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/2X/c/cb1d24c945c3a70685d8dbf047dcdb601963ae84.jpeg)

Lastly, server-2011 has a 1TB and a 500 and its output is shown. Apparently, on each system, there is a mount point /home which an LVM and is close to the combined size of the disks installed in each system. Am I seeing things, or did partitioning do what I was hoping to accomplish all by itself?

---

<div class="post-metadata">

**Author:** ![FrankCox](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/frankcox/32/1572_2.png) [@FrankCox](https://forums.rockylinux.org/u/FrankCox)\
**Post date:** [January 2, 2022, 5:22am UTC](https://forums.rockylinux.org/t/partitioning-hand-holding-needed/4998/6 "2022-01-02T05:22:12Z")

</div>

You have achieved your objective.

---

<div class="post-metadata">

**Author:** ![shack](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@shack](https://forums.rockylinux.org/u/shack)\
**Post date:** [January 2, 2022, 1:00pm UTC](https://forums.rockylinux.org/t/partitioning-hand-holding-needed/4998/7 "2022-01-02T13:00:45Z")

</div>

Sweet. Well in my use case anyhow. So the bottom line is that installing on a system with multiple disks and allocating all the storage and letting the installer handling partitioning automatically results in this kind of setup. A good thing to know whether you’re shooting for that or if you want it set up some other way.

---

<div class="post-metadata">

**Author:** ![gerry666uk](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@gerry666uk](https://forums.rockylinux.org/u/gerry666uk)\
**Post date:** [January 2, 2022, 6:51pm UTC](https://forums.rockylinux.org/t/partitioning-hand-holding-needed/4998/8 "2022-01-02T18:51:48Z")

</div>

I don’t think this is a good setup, the Volume Group (VG) called ‘rl’, is spanning across two disks, so what happens if one disk fails? The other problem is that you should really limit the size of /home, otherwise it will eat all the space, and you can’t shrink it.

With two disks, I’d normally put the o/s on /dev/sda, and then create two volume groups on /dev/sdb, ‘vgh’ for /home, and ‘vgd’ for /data. The purpose of /data is for everything else that’s not a homedir, such as web sites, databases, shares etc.

---

<div class="post-metadata">

**Author:** ![warron.french](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/warron.french/32/869_2.png) [@warron.french](https://forums.rockylinux.org/u/warron.french)\
**Post date:** [January 5, 2022, 2:25pm UTC](https://forums.rockylinux.org/t/partitioning-hand-holding-needed/4998/9 "2022-01-05T14:25:56Z")

</div>

> [@gerry666uk](#):
>
> I don’t think this is a good setup, the Volume Group (VG) called ‘rl’, is spanning across two disks, so what happens if one disk fails? The other problem is that you should really limit the size of /home, otherwise it will eat all the space, and you can’t shrink it.

Since when can you not shrink an LVM? I have done it many times. True, there are limitations on how much you can shrink an LVM - _without causing damage to data_, but you can shrink an LVM. It is risky, but it can be done. Here is a useful link that I have used myself:

[https://www.tecmint.com/extend-and-reduce-lvms-in-linux/](https://www.tecmint.com/extend-and-reduce-lvms-in-linux/)

Using RAID0 is risky as jlehtone pointed out, if you lose one disk you lose all of the data in the RAID0 volume. RAID0 is meant for artificially creating larger “disk” which in reality are larger volume groups which can then be broken down into smaller logical chunks (LVMs).

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [January 5, 2022, 3:42pm UTC](https://forums.rockylinux.org/t/partitioning-hand-holding-needed/4998/10 "2022-01-05T15:42:13Z")

</div>

Every non-redundant span has the risk. Only redundant arrays can tolerate some disk breakage.

> [@warron.french](#):
>
> Since when can you not shrink an LVM?

When you put XFS into the LV. You can’t shrink LV that contains unshrinkable filesystem.

---

<div class="post-metadata">

**Author:** ![anemarkus](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@anemarkus](https://forums.rockylinux.org/u/anemarkus)\
**Post date:** [January 5, 2022, 3:54pm UTC](https://forums.rockylinux.org/t/partitioning-hand-holding-needed/4998/11 "2022-01-05T15:54:15Z")

</div>

Not all filesystems are shrinkable. ext4 for instance is, XFS (which is the default) is not.

---

<div class="post-metadata">

**Author:** ![warron.french](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/warron.french/32/869_2.png) [@warron.french](https://forums.rockylinux.org/u/warron.french)\
**Post date:** [January 6, 2022, 12:00am UTC](https://forums.rockylinux.org/t/partitioning-hand-holding-needed/4998/12 "2022-01-06T00:00:03Z")

</div>

I thought I had done both a shrinking of an XFS and also ext4. I know I have grown both, perhaps that is where I am confused. Thanks for the clarification.

Why doesn’t XFS permit LVM shrinking, that is a silly design change.

---

<div class="post-metadata">

**Author:** ![anemarkus](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@anemarkus](https://forums.rockylinux.org/u/anemarkus)\
**Post date:** [January 6, 2022, 12:57am UTC](https://forums.rockylinux.org/t/partitioning-hand-holding-needed/4998/13 "2022-01-06T00:57:36Z")

</div>

> [@warron.french](#):
>
> Why doesn’t XFS permit LVM shrinking, that is a silly design change.

XFS was implemented by SGI and is surprisingly old. The technical standards and related design paradigms might be different today, although XFS must have been quite good so that it was ported to linux.

That reminds me that I have a SGI Indy [1] lying around, which was running IRIX, a real UNIX with XFS as one of it’s filesystems. I used that some years ago as workstation approximately around the turn of the century, but switched soon back to Linux. It was not the most powerful computer made by SGI, but with decent graphics for that time and the IndyCam (a webcam). Not so many years later SGI went bankrupt.

[1] [https://www.digibarn.com/collections/articles/sgi-indy/index.html](https://www.digibarn.com/collections/articles/sgi-indy/index.html)

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [January 6, 2022, 10:14am UTC](https://forums.rockylinux.org/t/partitioning-hand-holding-needed/4998/14 "2022-01-06T10:14:45Z")

</div>

XFS does not shrink. That is not specific to LVM.

> [@anemarkus](#):
>
> XFS was implemented by SGI and is surprisingly old. The technical standards and related design paradigms might be different today, although XFS must have been quite good so that it was ported to linux.

It is and is. See max file and filesystem sizes in [Red Hat Enterprise Linux Technology Capabilities and Limits - Red Hat Customer Portal](https://access.redhat.com/articles/rhel-limits)

We too had SGI/IRIX (as long as we could). SGI had 3D stereo graphics hardware, was involved in OpenGL and C++, etc. Them gone, out main fileserver – now Linux – had XFS before Red Hat adopted it.

Back then disks were “small”. Everybody had interest to get more, almost nobody was shrinking. When one could get more disks, the question – just like OP – was how to conveniently share that resource to users? One big volume is much more attractive than many small. XFS could be much larger volume than the ext\*.

Extending filesystem is adding something to it. That is easier than deallocating, because deallocation requires to first move data away from blocks that will be deallocated. XFS metadata layout, whatever it is, lacks such feature. _“Take what you can and give nothing back!”_

XFS has _project quota_ in addition to user and group quotas. That is awesome.

---

<div class="post-metadata">

**Author:** ![warron.french](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/warron.french/32/869_2.png) [@warron.french](https://forums.rockylinux.org/u/warron.french)\
**Post date:** [January 6, 2022, 1:01pm UTC](https://forums.rockylinux.org/t/partitioning-hand-holding-needed/4998/15 "2022-01-06T13:01:46Z")

</div>

> [@anemarkus](#):
>
> That reminds me that I have a SGI Indy [1] lying around, which was running IRIX, a real UNIX with XFS as one of it’s filesystems. I used that some years ago as workstation approximately around the turn of the century, but switched soon back to Linux. It was not the most powerful computer made by SGI, but with decent graphics for that time and the IndyCam (a webcam). Not so many years later SGI went bankrupt.

I remember working with Irix back in the mid-1990s myself. Their graphics were legendary back in those days. They were heavily used for flight simulators to train pilots. I never worked with the filesystems on the different Irix systems we had to use. I worked with Indigos and an O2 (_I think that was the model_); it’s been so long.

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)\
**Post date:** [August 25, 2023, 3:58am UTC](https://forums.rockylinux.org/t/partitioning-hand-holding-needed/4998/16 "2023-08-25T03:58:03Z")

</div>


