*New 12.1 series Release:
2019-11-08: XigmaNAS 12.1.0.4.7091 - released!

*New 11.3 series Release:
2019-10-19: XigmaNAS 11.3.0.4.7014 - released


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

grow /usr/local for software install

Filesystems(UFS, EXT2, FAT, NTFS, ZFS), mount points, partitions
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
birnbacs
Starter
Starter
Posts: 22
Joined: 04 Oct 2018 19:04
Status: Offline

grow /usr/local for software install

#1

Post by birnbacs » 08 Oct 2018 14:34

I recently migrated of of my servers from NAS4free 9.x to XigmaNAS 11.2.0.4. The server is required to run jails and I was planning on using iocage for administration.

Installing iocage requires python, which installation fails because of insufficient disk space in /usr/local.

Here is my mass memory layout:

Code: Select all

Filesystem        Size    Used   Avail Capacity  Mounted on
/dev/md0          126M     97M     29M    77%    /
devfs             1.0k    1.0k      0B   100%    /dev
/dev/md1          754M    655M     99M    87%    /usr/local
procfs            4.1k    4.1k      0B   100%    /proc
moonpool          1.2T     26G    1.2T     2%    /mnt/moonpool
moonpool/data     1.3T     32k    1.3T     0%    /mnt/moonpool/data
moonpool/files    1.6T    431G    1.2T    27%    /mnt/moonpool/files
moonpool/jail     1.2T     15G    1.2T     1%    /mnt/moonpool/jail
/dev/md2          520M     86M    423M    17%    /var
tmpfs             268M     49k    268M     0%    /var/tmp
/dev/da0p2        999M    268M    731M    27%    /cf
I am hesitatant to touch anything because the file server is business critical.
I have disks ada0 and ada1, which are mirrored for a zpool. Booting is done from a 16 GB USB stick with these partitions:

Code: Select all

[devel@blackbox ~]$ gpart list
Geom name: da0
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 30515159
first: 40
entries: 152
scheme: GPT
Providers:
1. Name: da0p1
   Mediasize: 524288 (512K)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 20480
   Mode: r0w0e0
   efimedia: HD(1,GPT,288f846d-c7ff-11e8-b8c9-c04a00040632,0x28,0x400)
   rawuuid: 288f846d-c7ff-11e8-b8c9-c04a00040632
   rawtype: 83bd6b9d-7f41-11dc-be0b-001560b84f0f
   label: gptboot
   length: 524288
   offset: 20480
   type: freebsd-boot
   index: 1
   end: 1063
   start: 40
2. Name: da0p2
   Mediasize: 1073741824 (1.0G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 4194304
   Mode: r1w0e0
   efimedia: HD(2,GPT,28bfdcb0-c7ff-11e8-b8c9-c04a00040632,0x2000,0x200000)
   rawuuid: 28bfdcb0-c7ff-11e8-b8c9-c04a00040632
   rawtype: 516e7cb6-6ecf-11d6-8ff8-00022d09712b
   label: gptroot
   length: 1073741824
   offset: 4194304
   type: freebsd-ufs
   index: 2
   end: 2105343
   start: 8192
3. Name: da0p3
   Mediasize: 8589934592 (8.0G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 1077936128
   Mode: r1w1e0
   efimedia: HD(3,GPT,28d06f54-c7ff-11e8-b8c9-c04a00040632,0x202000,0x1000000)
   rawuuid: 28d06f54-c7ff-11e8-b8c9-c04a00040632
   rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
   label: gptswap
   length: 8589934592
   offset: 1077936128
   type: freebsd-swap
   index: 3
   end: 18882559
   start: 2105344
4. Name: da0p4
   Mediasize: 5951717376 (5.5G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 1077936128
   Mode: r0w0e0
   efimedia: HD(4,GPT,28e0dabe-c7ff-11e8-b8c9-c04a00040632,0x1202000,0xb16000)
   rawuuid: 28e0dabe-c7ff-11e8-b8c9-c04a00040632
   rawtype: 516e7cb6-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 5951717376
   offset: 9667870720
   type: freebsd-ufs
   index: 4
   end: 30507007
   start: 18882560
Consumers:
1. Name: da0
   Mediasize: 15623782400 (15G)
   Sectorsize: 512
   Mode: r2w1e1
Could anybody please tell me how to grow /dev/md1 in the given constellation?

Besides: is this a good idea? I am not planning on installing much software in the master system anyway.

User avatar
ms49434
Developer
Developer
Posts: 751
Joined: 03 Sep 2015 18:49
Location: Neuenkirchen-Vörden, Germany - GMT+1
Contact:
Status: Offline

Re: grow /usr/local for software install

#2

Post by ms49434 » 08 Oct 2018 14:58

You are running an embedded installation of XigmaNAS - /usr/local is on a memory device (md). A software installation will not survive a reboot.
You should consider to switch to a full install if you want to add additional ports.

Fyi, Python is already available in XigmaNAS:

Code: Select all

xigmanas: /etc# python2.7 
Python 2.7.15 (default, Sep 29 2018, 17:44:00) 
[GCC 4.2.1 Compatible FreeBSD Clang 6.0.0 (tags/RELEASE_600/final 326565)] on freebsd11
Type "help", "copyright", "credits" or "license" for more information.
>>> quit()
xigmanas: /etc# 
1) XigmaNAS 12.0.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7U2, 22GB out of 32GB ECC RAM, LSI 9300-8i IT mode in passthrough mode. Pool 1: 2x HGST 10TB, mirrored, SLOG: Samsung 850 Pro, L2ARC: Samsung 850 Pro, Pool 2: 1x Samsung 860 EVO 1TB , services: Samba AD, CIFS/SMB, ftp, ctld, rsync, syncthing, zfs snapshots.
2) XigmaNAS 12.0.0.4 amd64-embedded on a Dell T20 running in a VM on ESXi 6.7U2, 8GB out of 32GB ECC RAM, IBM M1215 crossflashed, IT mode, passthrough mode, 2x HGST 10TB , services: rsync.

User avatar
lux
Advanced User
Advanced User
Posts: 200
Joined: 23 Jun 2012 11:37
Location: Bielefeld, Germany
Contact:
Status: Offline

Re: grow /usr/local for software install

#3

Post by lux » 11 Oct 2018 10:16

or using Jails!

viewforum.php?f=79

you could intstall with OneButtonInstaller (OBI) -> viewtopic.php?f=71&t=11189

I'm using Jails for my Emby Server Install & for "certbot" (Lets Encrypt)

Greetings
Home:11.2.x.6881/emb@32GB USB|1270v2@X9SCA-F|ECC32GB|i340-T4[lagg@GS108Tv2&smb-mch]|M1015@IT|9HDD~40TB@3xRaidZ1+1HDD+2SSD i335&i520+1xi800P@ZIL|~44W idle@SS-400FL2|Nanoxia Deep Silence 6B|24/7
Services: CIFS, FTP, TFTP, SSH, NFS, Rsync, Syncthing, Webserver, BitTorrent, VirtualBox | Extensions: OBI, TheBrig[certbot, Asterisk] | Extensions via vBox: Pi-hole & Jellyfin @DebianVM's
Test:12.x/emb@16GB USB|X3 420e@M4A88TD-V|16GB|i350-T2|M1015@IT|7xHDD+1xSSD[different Size&Brand]RaidZ1+2|for TESTing only

Shperrung
experienced User
experienced User
Posts: 102
Joined: 04 Apr 2018 16:29
Status: Offline

Re: grow /usr/local for software install

#4

Post by Shperrung » 11 Oct 2018 12:33

lux wrote:
11 Oct 2018 10:16
or using Jails!
I'm using Jails for my Emby Server Install & for "certbot" (Lets Encrypt)

Greetings
Hi lux!
Can you share how did you installed "certbot" in jail and how to forward certificate to lighttpd?
Thanks!
11.2.0.4 - Omnius (revision 6177) embedded -> XigmaNAS 12.0.0.4.6928 RootOnZFS
ASRock J3710-ITX, LAN: Winyao 2 ports; 16Gb RAM; WD 1Tbx2, WD 2Tb; UPS Powercom WOW500U.

User avatar
lux
Advanced User
Advanced User
Posts: 200
Joined: 23 Jun 2012 11:37
Location: Bielefeld, Germany
Contact:
Status: Offline

Re: grow /usr/local for software install

#5

Post by lux » 16 Oct 2018 11:21

Hi Shperrung

there's nothing special to say...

add a new Jail "Full" & install "certbot" inside

Code: Select all

pkg install certbot
BUT i don't use lighttpd from outside my LAN & inside only for tftp and such things!

i need certbot to generate Certificates for my Webspace hosted by hosteurope, had to call certbot with the "--manual" plugin & need to put a DNS TXT Record to get it working...
Home:11.2.x.6881/emb@32GB USB|1270v2@X9SCA-F|ECC32GB|i340-T4[lagg@GS108Tv2&smb-mch]|M1015@IT|9HDD~40TB@3xRaidZ1+1HDD+2SSD i335&i520+1xi800P@ZIL|~44W idle@SS-400FL2|Nanoxia Deep Silence 6B|24/7
Services: CIFS, FTP, TFTP, SSH, NFS, Rsync, Syncthing, Webserver, BitTorrent, VirtualBox | Extensions: OBI, TheBrig[certbot, Asterisk] | Extensions via vBox: Pi-hole & Jellyfin @DebianVM's
Test:12.x/emb@16GB USB|X3 420e@M4A88TD-V|16GB|i350-T2|M1015@IT|7xHDD+1xSSD[different Size&Brand]RaidZ1+2|for TESTing only

Post Reply

Return to “Basic storage concept”