金钱能买来什么但买不来什么| 美蛙是什么蛙| 正团级是什么军衔| 胃不舒服恶心想吐吃什么药| 打呼噜是什么引起的| 像什么似的| 口腔扁平苔藓挂什么科| 得了子宫肌瘤注意什么| 尿白细胞定量高是什么意思| 惊喜的英文是什么| 息怒是什么意思| 使婢差奴过一生是什么意思| 什么唱什么和| 木耳与什么食物相克| 牙周炎吃什么药最有效| 虾仁配什么蔬菜包饺子| 什么叫窦性心律不齐| 大学校长是什么级别| 什么是血小板| 茶卡是什么意思| 睡觉为什么会磨牙| a7是什么意思| 高血压挂什么科| 月经不调有什么症状| 血象高会导致什么后果| 乳腺结节是什么| pct是什么材质| 腹泻吃什么药见效最快| 30岁属什么的生肖| 什么相关四字成语| 检查肾挂什么科| 薄荷叶有什么功效| 什么是原生家庭| 手麻木是什么原因| 护照是什么意思| 吃什么催奶| 心脾两虚吃什么食物补最快| 嘴巴里发苦是什么原因| 胃热是什么原因引起的| 天兵神将是什么动物| 大便不成形是什么原因| 细菌性阴道炎吃什么药| 什么时候受孕率最高| 康复治疗学是做什么的| 胃疼吐酸水是什么原因| gy是什么意思| 不值一提是什么意思| 哺乳期可以吃什么感冒药| 秉承是什么意思| 人生最重要的是什么| 二尖瓣反流吃什么药| 吃什么拉什么是什么原因| 薇诺娜适合什么年龄| 血小板分布宽度偏低是什么意思| animals什么意思| 牙齿过敏吃什么药| 上午10点是什么时辰| 交警中队长是什么级别| 巧克力囊肿有什么症状表现| 总放屁是什么原因| hb什么意思| 美林是什么药| 都市丽人什么意思| 喝冰水牙疼是什么原因| 午安是什么意思| 付肾是什么药| 茯苓的作用是什么| 什么原因导致心肌缺血| ala是什么| 摩羯座男生喜欢什么样的女生| 消化不良用什么药| 项链突然断了预示什么| 鞘膜积液是什么病| 什么样的智齿需要拔| 看输卵管是否堵塞做什么检查| 耐克属于什么档次| 7月30日什么星座| 嗓子痒咳嗽吃什么药| 愚公移山是什么故事| 什么什么二什么成语| 心动过速吃什么药| 耳鸣是什么意思| 人为什么会有头皮屑| 室上性早搏是什么意思| 牟利什么意思| 加是什么生肖| 心肌受损会出现什么症状| ngs什么意思| 发烧挂什么科| 什么的雷雨| 白芍有什么功效和作用| 80分贝相当于什么声音| 女性尿急憋不住尿是什么原因| 心包积液是什么意思| 栀子花叶子发黄是什么原因| 埋线是什么| 午火是什么火| PA医学上是什么意思| 龙猫是什么动物| 虎口长痣代表什么| 胃痛可以吃什么水果| 眩晕挂号挂什么科| 随便你是什么意思| 牙医靠什么吃饭| 蟾蜍吃什么| 小肠换气什么症状| 埃及是什么人种| 早孕挂什么科检查| 牙神经疼吃什么药| 休学什么意思| 淘宝预售是什么意思| 摄政王是什么意思| 为什么指甲会凹凸不平| 肌肉纤维化是什么意思| 观音菩萨的坐骑是什么| 茉莉花茶适合什么人喝| 新陈代谢是指什么| 尿偏红色是什么原因| 舌头有麻木感什么原因| 若是什么意思| 舌头肥大是什么原因| 吃炒黑豆有什么好处和坏处| 势力是什么意思| 医院属于什么单位| 防小人应该佩戴什么| 卢字五行属什么| 为什么会停电| 舌头发苦是什么原因造成的| 金牛座是什么星象| 中国的国树是什么| 女人小便出血是什么原因| 鸟喙是什么意思| 镶是什么意思| 最近我和你都有一样的心情什么歌| 枕头太低了有什么危害| 心管是什么部位| 舍友什么意思| 牛鬼蛇神是什么意思| 肾功能不全是指什么| 久卧伤什么| 看舌头应该挂什么科| 叶子发黄缺什么肥| 神经病和精神病有什么区别| 淋巴瘤是什么症状| 猫可以看到什么颜色| 吃什么补蛋白质最快| 小孩胃疼吃什么药好| 子宫为什么长肌瘤| gn是什么意思| 肝功七项查的是什么| 电压mv是什么意思| lime是什么水果| 天上的月亮是什么生肖| 为什么手比脸白那么多| 肝吸虫病有什么症状| 起酥油是什么做的| 学生吃什么补脑子增强记忆力最快| 清考是什么意思| 70属什么生肖| 犬子是什么意思| 九秩是什么意思| 头晕是什么引起的| 水仙茶属于什么茶| 妯娌什么意思| 马齿苋煮水喝有什么功效| 求人办事送什么礼物好| 吃什么可以让子宫内膜变薄| 12月22号是什么星座| 十月一日是什么日子| 尿崩症吃什么药最有效| 总胆汁酸是什么意思| 6.25什么星座| 竹外桃花三两枝的下一句是什么| aosc是什么病| 叩是什么意思| eft是什么意思| fa什么意思| 抢沙发是什么意思| juicy什么意思| 水化是什么意思| 身旺是什么意思| 有什么黄色网站| 阴囊湿疹用什么药效果最好| 出球小动脉流什么血| 大便羊屎粒是什么原因| 孝喘吃什么药好| 什么尾花| 稀料对人体有什么危害| 生抽和老抽有什么区别| 纳是什么| 必修课是什么意思| 媚是什么意思| 父母是什么意思| 医美是什么意思| 检查痛风挂什么科| 右位是什么意思| 荣辱与共是什么意思| 梅毒吃什么药最好| 受孕是什么意思| 蛐蛐进屋有什么预兆| 侧重点是什么意思| 1999年属什么| 公丁香和母丁香有什么区别| headache什么意思| 经期吃什么补气血| 什么的北京| 哺乳期吃什么水果| 儿童过敏性皮炎用什么药膏| sunglasses什么意思| herry是什么意思| 有情人终成眷属是什么意思| 河南属于什么气候| 施华洛世奇什么档次| 阻生牙是什么意思| 浑身没劲什么原因| 吃什么消炎药可以喝酒| 梦见小猪仔什么意思| 承五行属什么| 回盲肠在什么位置| 四点水的字与什么有关| 胆固醇高吃什么食物最好| 补气固表什么意思| 1995年是什么年| 蜜蜂蜇人后为什么会死去| 血糖用什么字母表示| 甲状腺结节3类什么意思| 肾彩超能查出什么| 除异味用什么效果最好| 1999年出生属什么生肖| 小肚子胀痛什么原因| 什么口罩| tki是什么意思| 做春梦是什么意思| 产后为什么脸部松弛| 笑靥是什么意思| 为什么疤痕会增生| 丘疹性荨麻疹吃什么药| 办理结婚证需要什么材料| 什么的挑选| 精子碎片率高吃什么药| 甘草泡水喝有什么好处和坏处| 什么的飞机| 干细胞有什么作用| 陈皮和橘子皮有什么区别| 护手霜什么牌子的效果好| 枸橼酸西地那非片有什么副作用| 南无阿弥陀佛是什么意思| 凝血酶是什么| 小孩睡觉流鼻血是什么原因引起的| 通草是什么| poscer是什么牌子手表| r的平方是什么意思| 属狗的和什么属相最配| 吃了火龙果小便红色是什么原因| 舌头伸不出来是什么原因| 男生学什么技术吃香| eod是什么意思| 离职原因写什么| 零八年属什么生肖| 古怪是什么意思| 水便分离的原因是什么| 舌头灼热感是什么原因| 生蚝补什么| 淋巴滤泡增生是什么意思严重吗| 百度

车讯:奥迪A3的死对头 宝马全新1系三厢版下线

By Ruben Schade in Sydney, Australia. ??


百度 来自365家高校、科研院所、医院和公司的1938个研究组的12674名用户在这里进行了实验,已发表论文近2500篇,其中SCI1区的文章400余篇,包括《科学》、《自然》、《细胞》等国际顶级刊物论文50余篇,取得了丰硕的成果。

I had one of my other HP Microservers brought back from the office last week to help with this working-from-home world we’re in right now. I was going to wipe an old version of Debian Wheezy/Xen and install FreeBSD to mirror my other machines before thinking: why not NetBSD?

For people on Twitter asking why I’d want to, I discussed where I use NetBSD in a post back in December, along with the below wallpaper that’s become a running joke here! Some people were polite when asking, others… weren’t so much. That’s a heavier topic for another post.

But I digress: this in the NetBSD 9.0 release notes that had me most excited:

Updated ZFS. This is the first release with ZFS usable for daily use

This is huge! ZFS is the only file system I trust with data I care about, so to have that confidence along with a familiar and flexible toolchain on NetBSD is too cool. Of course I had to try it.

Setting up encryption

On FreeBSD I use GELI to provide encrypted devices to build my zpools on. I didn’t have experience with doing this on NetBSD, but some reading of their always excellent documentation showed I could use the cryptographic device driver cgd(4), and its cgdconfig(8) interface.

My Microserver had two 4.0 TB SATA drives, wd0 and wd1. So the first step was to create cgd configuration files for these and back them up:

# cgdconfig -g -o /etc/cgd/wd0 aes-xts 256
# cgdconfig -g -o /etc/cgd/wd1 aes-xts 256

Then I needed to set passphrases. You can use the re-enter verification option so you know you’ve typed the passwords correctly.

# cgdconfig -V re-enter cgd0 /dev/wd0
# cgdconfig -V re-enter cgd1 /dev/wd1

Unmounting and mounting them again with my password confirmed they’d been configured correctly:

# cgdconfig -u /dev/cgd0
# cgdconfig -u /dev/cgd1
# cgdconfig cgd0 /dev/wd0
# cgdconfig cgd1 /dev/wd1

Avoiding making puns about jumping into pools

Now I had cgd0 and cgd1, which would broadly correspond to ada0.eli and ada1.eli in FreeBSD with GELI, for example. Which means setting up a basic ZFS pool is as easy as this:

# zpool create tank mirror /dev/cgd0 /dev/cgd1

And sure enough, there it is: an encrypted ZFS pool on NetBSD! How friggen awesome is that!?

# zpool status
  pool: tank
 state: ONLINE
  scan: none requested
config:
    
        NAME        STATE     READ WRITE CKSUM
        tankaino0   ONLINE       0     0     0
          mirror-0  ONLINE       0     0     0
            cgd0    ONLINE       0     0     0
            cgd1    ONLINE       0     0     0

The next steps will be to research if I can (or should!) do ZFS send/receive with my FreeBSD ZFS boxes, what the performance delta is between them, and what parts of NetBSD are well suited for snapshotting, like my pkgsrc tree.

Disclaimers

In production you should create a partition layout with gpt(8) or fdisk(8), and a NetBSD cgd partition first before running the above. This would be equivalent to running gpart on FreeBSD rather just running GELI against a blank disk. It’s good for so many practical reasons to label disks, but also because NetBSD’s cgdconfig can be told to verify drive layouts like disklabels, gpt, etc.

Cryptography is critical to get right, or it’s not worth doing. Read and follow the official documentation, this post should only be treated as the fun proof of concept that it was.



Me!

I'm Ruben Schade, a technical writer and IaaS engineer in Australia. Hi! You can shout me a coffee or send a comment here. Thanks for reading.



为什么吃火龙果会拉肚子 肾积水有什么症状表现 男人左眼皮跳是什么预兆 志司是什么意思 人乳头瘤病毒16型阳性是什么意思
肠易激综合症吃什么药 吃什么生发 喝什么可以减肥瘦肚子 石榴是什么生肖 818是什么星座
预防中暑喝什么水 悬雍垂发炎吃什么药 形式是什么意思 胆囊病变是什么意思 口干舌燥挂什么科
pr什么意思 丁是什么意思 六月二号什么星座 彩色多普勒超声检查是什么 大便干燥拉不出来是什么原因
断头婚是什么意思hcv9jop3ns9r.cn 梦见车丢了是什么意思hcv9jop3ns6r.cn 绿草如茵是什么生肖hcv8jop8ns2r.cn 亲子鉴定需要什么样本hcv8jop0ns5r.cn 捌是什么数字hcv8jop5ns8r.cn
囊肿和肿瘤有什么区别hcv9jop2ns1r.cn .什么意思hcv9jop6ns9r.cn def是什么意思hcv8jop2ns5r.cn 吃完榴莲不能吃什么hcv7jop5ns0r.cn 低头头晕是什么原因tiangongnft.com
老公梦见老婆出轨是什么意思hcv9jop5ns4r.cn 皮赘用什么药膏去除hcv8jop9ns6r.cn 宝宝手心热是什么原因hcv8jop7ns2r.cn 妃子是什么意思bjhyzcsm.com 硬化是什么意思beikeqingting.com
为什么地球是圆的hcv9jop5ns4r.cn 冠脉硬化什么意思hcv8jop4ns5r.cn kdj是什么意思xinjiangjialails.com 吃东西没有味道是什么原因beikeqingting.com 去医院看头发挂什么科fenrenren.com
百度