# Persistent State Partition Questions

**URL:** <https://forums.suse.com/t/persistent-state-partition-questions/7384>\
**Category:** RancherOS\
**Created:** [September 22, 2017, 11:44am UTC](https://forums.suse.com/t/persistent-state-partition-questions/7384 "2017-09-22T11:44:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sdevries](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@sdevries](https://forums.suse.com/u/sdevries)\
**Post date:** [September 22, 2017, 11:44am UTC](https://forums.suse.com/t/persistent-state-partition-questions/7384/1 "2017-09-22T11:44:51Z")

</div>

Are there some examples of what state consists of?  
Is it a lot of data written?  
How do you recover from Persistent State Partition drive death?

Can the Persistent State be mirrored: zpool, btrfs, lvm, etc?  
Can the Persistent State be stored with MinIO distributed within a cluster?  
Can the Persistent State be stored with Longhorn? (When its available)

In the cloud-config.yml, can you specify the disks in the various ways listed:  
/dev/sda  
/dev/by-label/rancher\_state  
/dev/by-uuid/0a3407de-014b-458b-b5c1-848e92a327a3  
/dev/by-path/…

The docs page does show dev: LABEL=RANCHER\_STATE.  
I was curious if you can do by-path specifically.

---

<div class="post-metadata">

**Author:** ![Atze](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/atze/32/2855_2.png) [@Atze](https://forums.suse.com/u/Atze)\
**Post date:** [September 25, 2017, 9:00am UTC](https://forums.suse.com/t/persistent-state-partition-questions/7384/2 "2017-09-25T09:00:30Z")

</div>

the documentation states that you can use  
`devices` and `labels` and `uuid`  
[http://rancher.com/docs/os/v1.1/en/storage/state-partition/](http://rancher.com/docs/os/v1.1/en/storage/state-partition/)

do by path is possible (same as /dev/sda1 etc)

---

<div class="post-metadata">

**Author:** ![sdevries](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@sdevries](https://forums.suse.com/u/sdevries)\
**Post date:** [September 25, 2017, 11:51am UTC](https://forums.suse.com/t/persistent-state-partition-questions/7384/3 "2017-09-25T11:51:56Z")

</div>

Good to know that by-path works as expected. I assume you could do UUID or LABEL the long way as well, but the LABEL= and UUID= were provided as a shortcut.

I also found:

> **[rancher/os](https://github.com/rancher/os/tree/master/scripts/installer)**
>
> os - Tiny Linux distro that runs the entire OS as Docker containers

It seems that only EXT4 is supported at the moment. So no zpools, mirrors, etc. (EDIT: for the persistent state partition).

---

<div class="post-metadata">

**Author:** ![Atze](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/atze/32/2855_2.png) [@Atze](https://forums.suse.com/u/Atze)\
**Post date:** [September 25, 2017, 11:58am UTC](https://forums.suse.com/t/persistent-state-partition-questions/7384/4 "2017-09-25T11:58:15Z")

</div>

[http://rancher.com/docs/os/v1.1/en/storage/using-zfs/](http://rancher.com/docs/os/v1.1/en/storage/using-zfs/)

---

<div class="post-metadata">

**Author:** ![sdevries](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@sdevries](https://forums.suse.com/u/sdevries)\
**Post date:** [September 25, 2017, 8:25pm UTC](https://forums.suse.com/t/persistent-state-partition-questions/7384/5 "2017-09-25T20:25:17Z")

</div>

The linked guide is definitely a good guide for using ZFS with RancherOS. But it is not quite the same as RancherOS on ZFS root; which I am not sure is possible.

As far as my previous comment. I think ros install will always use EXT4 _if you turn on auto-format_, or have not already manually partitioned. Otherwise, you can manually format any extlinux supported file system? (FAT12/16/32, NTFS, ext2/3/4, Btrfs, XFS, UFS/FFS). Then use fstype: auto, XFS, btrfs, etc.

Here is something I found for using mdraid:

> **[Rancher OS & Raid – Simon Thulbourn – Medium](https://medium.com/@sthulb/rancher-os-raid-fc1128385de6)**
>
> Disclaimer: Most of the information for this post is from a script from the Rancher OS repository.
