problem partionning and zfs/nfs etc

pinedours

New Member
Jul 28, 2017
12
0
1
42
First, sorry for my english..(I m french)
I have a 2x2 TB server on So You Start.
I want use all my space, so no raid. (Or raid software to see only one disk, even I know i ts not offical)
To do that :
- one lxc for plex 50gb
- one lxc for torrent 100gb
- one lxc for a webserver 100gb
- one lxc for a mini game server 250gb
...and.. this is my problem, the rest of my 2 hdd's space for my library. And I don't know to do that.. I saw zfs or nfs is good but I dont understanding my partition.
In my SYS interface I thicked only install on disk1 (to have no raid) and I specified 500GB on my /var/lib/vz partition

1st Partition : primary, ext4, /, 20000 MB.
2nd Partition: primary, swap, swap, 1024 MB.
3rd Partition: lv, ext4, /var/lib/vz, 500000 MB.


But when I
this is the result :

Code:
Disque /dev/sda : 1,8 TiB, 2000398934016 octets, 3907029168 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Type d'étiquette de disque : dos
Identifiant de disque : 0x9b37d3f7

Périphérique Amorçage    Début        Fin   Secteurs Taille Id Type
/dev/sda1    *            4096   40962047   40957952  19,5G 83 Linux
/dev/sda2             40962048   43057151    2095104  1023M 82 partition d'échange Linux / Solaris
/dev/sda3             43057152 3907020799 3863963648   1,8T  f Étendue W95 (LBA)
/dev/sda5             43059200 3907020799 3863961600   1,8T 8e LVM Linux


Disque /dev/sdb : 1,8 TiB, 2000398934016 octets, 3907029168 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Type d'étiquette de disque : dos
Identifiant de disque : 0x7cc9f334

Périphérique Amorçage    Début        Fin   Secteurs Taille Id Type
/dev/sdb1                 4096   40962047   40957952  19,5G fd RAID Linux autodétecté
/dev/sdb2             40962048   43057151    2095104  1023M 82 partition d'échange Linux / Solaris
/dev/sdb3             43057152 3907020799 3863963648   1,8T  f Étendue W95 (LBA)
/dev/sdb5             43059200 3907020799 3863961600   1,8T 8e LVM Linux


Disque /dev/mapper/pve-data : 484,3 GiB, 519988838400 octets, 1015603200 secteurs
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets

So how Can I use my free space on my first hard disk and my entire 2 hdd ? And in which format ? Can we "ZFS" just a partition and not an entire hdd ?

Thx by advance ! :D

edit : Where is my free space of my sda ??

edit 2 : If you can advice me if an other structure is better for me, so dont hesitate ! ;)

edit 3 : I want to share a folder with my plex ct and my torrent ct like those :
"Media - Movies
- TV Show
- Books "
My torrent write and my plex (or other ) read..
I found some guide with Google Drive to do that, but I ve 4 to in total and I dont want to take google drive with all gb I have ! ;)

(It was my last edit ;) )
 
Last edited:
Hi,

edit : Where is my free space of my sda ??

your Disk System is configured as a Raid.
So you have to reconfigure your raid or make a new installation without raid.

edit 2 : If you can advice me if an other structure is better for me, so dont hesitate ! ;)
It is better to use a whole disk for ZFS another way you will have massive performance impacts.
 
Hello, thx for your response !
Hi,



your Disk System is configured as a Raid.
So you have to reconfigure your raid or make a new installation without raid.


It is better to use a whole disk for ZFS another way you will have massive performance impacts.

Yes but for the raid, in So You Start, I ve checked "only install on disk 1" it is the only choice I have . And strangely it seems to keep me the raid again..

So if it is better to have entire disk for zfs so it s not a good idea for me I think ? because I eventually can do it on the /sdb but not on /sda cause the system files of proxmox are on /sda so I lost many place... If I have understand?

So what's my better solution for plex with my system ?
A big CT on sda and sdb mount as ZfS if I m able to deactive the Raid (the question is how)? And in the CT I ve to found a solution to have the same folder read by plex and other automatisations tools... So it's complicated. Tell me if you ve a idea..

Or

Two separate CT's, one sda, one big sdb but I always need to mount sdb without this strangely raid..and find a sync tool and use NFS to mount folders too and always find a way to fusion (unionfs maybe) my folders in one?

Or

Softraid.. I know it s not official but it s seems work for CT's..But I had some I/O errors on disk with a kvm.

Or

....maybe you have a proposition to do and there is an easy solution to realize my dream I don't know and see ? ;)

Cheers!
 
Yes but for the raid, in So You Start, I ve checked "only install on disk 1" it is the only choice I have . And strangely it seems to keep me the raid again..

What did you get with this command?
Code:
cat /proc/mdstat

So if it is better to have entire disk for zfs so it s not a good idea for me I think ?

It is very much handwork necessary to bring ZFS such preinstall system to work.

because I eventually can do it on the /sdb but not on /sda cause the system files of proxmox are on /sda so I lost many place... If I have understand?
I would recommend you to make a single Disk installation and then use the sdb as the full disk for your media server.
You can use bind mounts in Container to achieve this.
 
I found this guide and yes I ve only two disk but this is what I m doing during my install on so you start.
And what do you think about volume group like on the Tuto ? it s not good to do that with one and half disk ?
What guide do you mean?
 
What guide do you mean?


Sorry, forgot the line .. that guide :

https://cyberpersons.com/2017/01/17/install-soyoustart-ovh-server-without-raid-1/

I just did that :

https://imgur.com/a/ynUYy

and my result for

Code:
fdisk -l

is always

Code:
Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xcaae8db7

Device     Boot    Start        End    Sectors  Size Id Type
/dev/sda1  *        4096   40962047   40957952 19.5G 83 Linux
/dev/sda2       40962048   43057151    2095104 1023M 82 Linux swap / Solaris
/dev/sda3       43057152 3907020799 3863963648  1.8T  f W95 Ext'd (LBA)
/dev/sda5       43059200 3907020799 3863961600  1.8T 8e Linux LVM


Disk /dev/sdb: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xfbdf521f

Device     Boot    Start        End    Sectors  Size Id Type
/dev/sdb1           4096   40962047   40957952 19.5G fd Linux raid autodetect
/dev/sdb2       40962048   43057151    2095104 1023M 82 Linux swap / Solaris
/dev/sdb3       43057152 3907020799 3863963648  1.8T  f W95 Ext'd (LBA)
/dev/sdb5       43059200 3907020799 3863961600  1.8T 8e Linux LVM


Disk /dev/mapper/pve-data: 582 GiB, 624846438400 bytes, 1220403200 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Code:
cat /proc/mdstat

is

Code:
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
unused devices: <none>

MAybe during the installation I have to change my partition LVM to Primary ? or it doesnt care ?
 
ok I understand what the answer to the command means.. there is no raid.. ? Just So you Start format my disk like that ?
because I just "cfdisk" and delete all my partitions of /sdb and create only one ext4 and reboot my server and my system and proxmox are up.. So I suppose there was no raid finally ??
I m not sure to understand .. :)
 
Now after "cfdisk" when
Code:
fdisk -l
I have
Code:
Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xcaae8db7

Device     Boot    Start        End    Sectors  Size Id Type
/dev/sda1  *        4096   40962047   40957952 19.5G 83 Linux
/dev/sda2       40962048   43057151    2095104 1023M 82 Linux swap / Solaris
/dev/sda3       43057152 3907020799 3863963648  1.8T  f W95 Ext'd (LBA)
/dev/sda5       43059200 3907020799 3863961600  1.8T 8e Linux LVM


Disk /dev/sdb: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xfbdf521f

Device     Boot Start        End    Sectors  Size Id Type
/dev/sdb1        2048 3907029167 3907027120  1.8T 83 Linux


Disk /dev/mapper/pve-data: 582 GiB, 624846438400 bytes, 1220403200 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

So all is ok or I m wrong ?
 
..I m wrong. I just see that my disk /sda has 1.8T used.. But I dont know why ? During my server's installation I create only a 600gb partition for /var/lib/vz.. so where is the rest of my disk ? And of course I format this 1.8 tb to try to have them and my server is dead..(I suppose that the pve system of proxmox is in ?)
I m reinstalling it ;)
 
It looks ok to me.

Fdisk will show ou the partition size, not the usage.
use 'df -h' for this information.

Hello thx !

Ok I see my free space on sda..

But how can I mount my free storage? I see on the net that I can (and it s apparently good) do a zfs for my entire disk /sdb
But for my free storage in my /sda ? Bind mounts ? And is there a solution to merge them together in one (or more) lxc ?
 
..and for you it s better to do that than a Raid0 in my installation to have a "fake" 4 to ?
I dont know if it was normal but when I did that before, a raid0, lxc were ok but I had several errors and boot crash on a Ubuntu VM..
 
Oh and FYI my system is a Serveur E3-SAT-3-32 - E3-1245v2 - 32GB - SoftRaid 2x2To
 
Last edited:
But how can I mount my free storage?
With the 'mount' command
Code:
mount /dev/sdb </somedirectory >

And is there a solution to merge them together in one (or more) lxc ?
Yes, lets asume you have mount the sdb on dir path '/ctshare'

Then create 2 containers. After this, you can add the '/ctshare' to this two containers.
Code:
pct set 100 --mp0 /ctshare,mp=/share
pct set 101 --mp0 /ctshare,mp=/share
 
Yes, lets asume you have mount the sdb on dir path '/ctshare'

And.. the rest of my /sda ? Because I ve my entire sdb disk, ok, but when I installed my server I only did a var/lib/vz of 600gb ..of my 2TB..
So Can I mount them in the same way ?
And when I speak about "merging", Can I do "one fake" volume with my /sdb and the rest of my /sda together ?
In fact.. I need only ONE folder or a system to merge two folder in one after mounting. Before or after, it s the same.. But I want to use a software who can read only in one folder.. not two. With all my movies in..
Is it possible to do that ? I read some post about unionfs, is it for that ? Sorry with all my questions but I dont want to make an error with my system and I love proxmox. !! :D
..and home I m clear with my explications !