Latest News:
2019-03-31: XigmaNAS 11.2.0.4.6625 - released!

Latest BETA Release:
2019-03-31: XigmaNAS 12.0.0.4.6625 - BETA released!

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

Producing and hosting XigmaNAS cost money, please consider a donation to our project so we can continue to offer you the best.
We need your support! eg: PAYPAL

MOVE SWAP FILE FROM USB TO A LOCAL DISK ( EMBEDDED SYSTEM )

Filesystems(UFS, EXT2, FAT, NTFS, ZFS), mount points, partitions
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
Transistor1
NewUser
NewUser
Posts: 9
Joined: 19 Jun 2015 14:04
Status: Offline

MOVE SWAP FILE FROM USB TO A LOCAL DISK ( EMBEDDED SYSTEM )

#1

Post by Transistor1 » 04 Jan 2019 23:24

Hi to all...
I recently installed latest version.. 11.2.0.4 - Omnius (revision 6315).. Clean installation of the embedded variant.
I came from an old version 9.2 Shigawire..

I followed the guide and a swap partition was created at my boot usb stick ( doesn't seem to have the option to place it at my HDD ), but afterwards i read that read - write operations might destroy it..

I created a swap file ( not partition ) at a local HDD..

My question is simple..

How can i discard the swap partition in usb stick and enable it at the swap file i created at my HDD?

Is it possible to make the system boot using the swap file? ( not the usb partition )

Thanks for any answer.. :)

User avatar
Snufkin
Advanced User
Advanced User
Posts: 276
Joined: 01 Jul 2012 11:27
Location: Etc/GMT-3 (BSD style)
Status: Offline

Re: MOVE SWAP FILE FROM USB TO A LOCAL DISK ( EMBEDDED SYSTEM )

#2

Post by Snufkin » 04 Jan 2019 23:30

See XigmaNAS wiki page.
XNAS 11.2.0.4 embedded, ASUS P5B-E, Intel DC E6600, 4 GB DDR2, 2 x HGST HDN726040ALE614, 2 x WDC WD5000AAKS, Ippon Back Power Pro 400

Transistor1
NewUser
NewUser
Posts: 9
Joined: 19 Jun 2015 14:04
Status: Offline

Re: MOVE SWAP FILE FROM USB TO A LOCAL DISK ( EMBEDDED SYSTEM )

#3

Post by Transistor1 » 04 Jan 2019 23:46

Thanks a lot Snufkin!!!
I didn't notice these settings at all..
the system created a swap at /dev/md3 .. I guess it is at my HDD.
Is there a way to see where the /dev/md3, refers to?

User avatar
Snufkin
Advanced User
Advanced User
Posts: 276
Joined: 01 Jul 2012 11:27
Location: Etc/GMT-3 (BSD style)
Status: Offline

Re: MOVE SWAP FILE FROM USB TO A LOCAL DISK ( EMBEDDED SYSTEM )

#4

Post by Snufkin » 04 Jan 2019 23:53

Transistor1 wrote:
04 Jan 2019 23:46
the system created a swap at /dev/md3 .. I guess it is at my HDD.
Transistor1 wrote:
04 Jan 2019 23:24
I created a swap file ( not partition ) at a local HDD..
And who created the file? ;)

Try Diagnostics | Information
  • Disks
  • Disks (Info)
  • Partitions (fdisk output)
  • Mount points
XNAS 11.2.0.4 embedded, ASUS P5B-E, Intel DC E6600, 4 GB DDR2, 2 x HGST HDN726040ALE614, 2 x WDC WD5000AAKS, Ippon Back Power Pro 400

Transistor1
NewUser
NewUser
Posts: 9
Joined: 19 Jun 2015 14:04
Status: Offline

Re: MOVE SWAP FILE FROM USB TO A LOCAL DISK ( EMBEDDED SYSTEM )

#5

Post by Transistor1 » 05 Jan 2019 00:14

/dev/md3 refers to the file i created, giving some commands manually
I named the file swap0..
Is this the file that is used now?
or i must delete it to gain the 2GB space?

ginggs
Starter
Starter
Posts: 25
Joined: 27 Jun 2012 14:30
Status: Offline

Re: MOVE SWAP FILE FROM USB TO A LOCAL DISK ( EMBEDDED SYSTEM )

#6

Post by ginggs » 11 Feb 2019 12:59

I'm trying to create a swap file in 11.2.0.4.6400, but I cannot select a Mount Point:
default-swap.png
My disks are in a ZFS pool and mounted.
You do not have the required permissions to view the files attached to this post.

User avatar
JoseMR
Hardware & Software Guru
Hardware & Software Guru
Posts: 1003
Joined: 16 Apr 2014 04:15
Location: PR
Contact:
Status: Offline

Re: MOVE SWAP FILE FROM USB TO A LOCAL DISK ( EMBEDDED SYSTEM )

#7

Post by JoseMR » 15 Feb 2019 17:45

ginggs wrote:
11 Feb 2019 12:59
I'm trying to create a swap file in 11.2.0.4.6400, but I cannot select a Mount Point:
default-swap.png
My disks are in a ZFS pool and mounted.

Hi, your server already using native default Swap partition and is at 0% usage, between you need an UFS formatted disk to create a Swap file(non recommended), if this system uses an USB2.0, then swapping by with an USB3.0 at least may benefit, alternatively you can create a ZVOL to use as Swap device as a last resort.

However creating a Swap file on top of a filesystem may not be the best choice if performance/reliability if a concern, use a native Swap partition whenever possible if this system hits Swap constantly, in such case a small HDD/SSD is the best choice for performance and reliability.

Regards
System: FreeBSD 12, MB: Supermicro X8SI6-F, Xeon X3450, 16GB DDR3 ECC RDIMMs.
Addons at GitHub
JoseMRPubServ

Post Reply

Return to “Basic storage concept”