※ 非洲豬瘟恐怖超越口蹄疫!


請勿網購、攜帶肉製品入境,12月18日起初犯罰款20萬,最高可罰100萬!!!

How to NAS a HP Server DL380 Gen8 with Solaris ZFS, up to 12 3.5” hard drive!

How to NAS a HP Server DL380 Gen8 with Solaris ZFS, up to 12 3.5” hard drive!

分享至您喜愛的社群
  •   
  • 12
  •  
  •  
  •  
  •  
  •  
  •  
    12
    Shares

How to NAS a HP Server DL380 Gen8 with Solaris ZFS, up to 12 3.5” hard drive!

近來由於Solaris 11.4 導致原本的NAS無法再順暢跑virtualbox ,於是想升級NAS

看來看去,覺得不如挑台 #洋垃圾 伺服器(服務器),便宜又好用,最終選擇了 HP DL380 Gen 8,這台簡單好用。DL380 gen8 由於打死不支援UEFI,如果需要跑些特殊的作業系統,會非常有問題(黑蘋果)。

請原諒我很糟的英文,不過我的確認為國外網友比較會想玩系統。

也許有人會問買洋垃圾不怕嗎?

實際上這些洋垃圾遠比一般電腦穩定,而且設備齊全,殺肉零件也易於取得。

整台 E5-2620 + 32GB reg ram,弄好到台灣,不用一萬台幣,哈哈哈哈哈😄

就算將來升級硬碟成 raidz2 10TB*6*2或是 10TB*8+3raidz3,升級記憶體都不是問題,這絕對不是一般PC或市售高價NAS能夠做到的事。


當然,NAS可以利用 freenas最簡單,不過Solaris 11.4 增進了 smb的效能,原生的ZFS也是,經測試即使用到只剩200GB空間,效能都嚇嚇叫,比以前open solaris11.3世代都要好上太多。

There are many ways to make a sever being NAS, like freenas, but I love to use Solaris.

這似乎不是freenas或其他衍生的ZFS 可以達到。

此外,架設virtualbox windows,加掛目錄,管理資料也超輕鬆。

一機多用不浪費。

圖形介面?

Napa-it 就能滿足web介面管理,免驚。

Go~~~


Server: HP DL380P GEN 8

It’s very cheap.

C602 (X79) ,  can plug two cpu, E5-2620 V1 or V2, these CPU too cheap, from taobao, from China.

recommendation:

1. Command environment 

E5-2620 V1 *2

ZFS 1TB->1GB Ram, depends on how large your zpool is.

2. Desktop GUI

E5-2667 V2 *2

If wants to run windows under virtualbox, plug more ram.


Install:

DL380 Gen8 is difficult to install a system, if not windows or Linux, and really usb has problems. 

USB is totally a disaster, google it, you will find.

If you can’t install from external usb, try internal usb, or internal SD card slot.


Download Solaris 11.4

x86 USB Automated Installer Boot Image (483 MB)

https://www.oracle.com/solaris/solaris11/downloads/solaris11-install-downloads.html

Do not use ISO, this can not boot successfully.

Use dd to write to USB DRIVE.

sudo dd if=/download/Solaris.usb of=/dev/diskx 

Check the disk number of usb drive.

Be careful, wrong disk number will cause data loss.

I use a SSD plugged to usb, it’s faster, 30MB/s.

Sorry, this machine has no USB 3.0.


install Solaris 11.4

Plug a SSD to onboard sata port, but needs a special power cable, This cable is CDROM cable, you can MODIFY, or buy a cable of HP 10 pins to sata power.

When install finished, default user name is “root”, password is “solaris”.

Input command “reboot”

Never to input optional account, it will cause lots of problems. I can’t modify a user to role root, try many times. Just use root as your account.


-1 Oracle Solaris Account Management BUI

#pkg install webui-usermgr

On your browser, go to the following location:

https://hostname:6787/solaris

-2

Optional) To add the  solaris-large-server and  solaris-desktop packages, issue the following commands. 

#  pkg install solaris-desktop

贊助廣告


Or

 #  pkg install solaris-large-server

When you need to run windows 10 under virtualbox to manage files.

-3 napp-it, install for webui, third party.

#wget -O – www.napp-it.org/nappit | perl

Document:

http://openzfs.hfg-gmuend.de/napp-it_manuals/napp-it.pdf

Reboot.


setting SMB

# svcadm enable -r smb/server

# smbadm join -w workgroup

After joining workgroup the smb service will be restarted automatically.

Would you like to continue? [no]: y

Successfully joined workgroup

# echo “password required pam_smb_passwd.so.1 nowarn” >> /etc/pam.d/other

👉actually this to edit a txt file called “other”         

/etc/Pam.d/other <-location 

Or you can edit manually, put this at last line “password required pam_smb_passwd.so.1 nowarn”

Then must reset password!!!

#passwd root

New Password: 

Re-enter new Password: 

passwd: password successfully changed for root

# zfs set share.smb=on Your_Zpool

# zfs set share.smb=on Your directories

Done  


But if you want to change mtu of NIC, or put a new 10Gbe card, follow these steps.

Existing NIC

delete NIC IP

$ ipadm delete-ip interface

change mtu

#dladm show-linkprop -p mtu net1

LINK     PROPERTY       PERM VALUE   EFFECTIVE DEFAULT   POSSIBLE

net1     mtu       rw 1500   1500 1500     1500

# dladm set-linkprop -p mtu=9000 net1

# dladm show-link net1

LINK     CLASS MTU      STATE BRIDGE   OVER

web1     phys 9000     up —   —

create NIC IP

$ ipadm create-ip interface

$ ipadm create-address parameters

https://docs.oracle.com/cd/E23824_01/html/821-1458/gjwiq.html

Example 9-1

New plugged NIC

Just do ❷❸

One more thing, if peer to peer, no further things.

But if you want to connect through a router, switch, needs to setup gateway.

https://docs.oracle.com/cd/E37838_01/html/E60992/gmyag.html

NathanYung

廣告

發佈留言

Close Menu
×
×

Cart