<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>2017/07/18 on Yano&#39;s digital garage</title>
    <link>https://www.bravotouring.com/~yano/archives/2017/07/18/</link>
    <description>Recent content in 2017/07/18 on Yano&#39;s digital garage</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 18 Jul 2017 23:56:00 +0900</lastBuildDate>
    <atom:link href="https://www.bravotouring.com/~yano/archives/2017/07/18/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>mdadmとRAID5</title>
      <link>https://www.bravotouring.com/~yano/diary/it/20170718_mdadm.htm</link>
      <pubDate>Tue, 18 Jul 2017 23:56:00 +0900</pubDate>
      <guid>https://www.bravotouring.com/~yano/diary/it/20170718_mdadm.htm</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://www.bravotouring.com/~yano/diary/it/20170711_nuc.htm&#34;&gt;先週&lt;/a&gt;書いた&lt;a href=&#34;https://www.bravotouring.com/~yano/diary/it/20150805_nuc.htm&#34;&gt;Intel NUC&lt;/a&gt;のNICが落ちてしまう件。&lt;/p&gt;&#xA;&lt;p&gt;懸案だった&lt;a href=&#34;https://www.bravotouring.com/~yano/diary/it/20161208_kiokuikipool.htm&#34;&gt;記憶域プール／スペース&lt;/a&gt;の問題は&lt;a href=&#34;https://www.bravotouring.com/~yano/diary/it/20170411_usb3hub.htm&#34;&gt;USB3.0ハブ&lt;/a&gt;で解消したのだが、結局&lt;a href=&#34;https://www.bravotouring.com/~yano/diary/it/20150805_nuc.htm&#34;&gt;Intel NUC&lt;/a&gt;にサーバ運用は荷が重過ぎると判断し、&lt;a href=&#34;https://www.bravotouring.com/~yano/diary/it/20160602_hs423u3s.htm&#34;&gt;4SATA HDD はい～るKit Super Turbo 3&lt;/a&gt;は素直に&lt;span class=&#34;Host&#34;&gt;gt110b&lt;/span&gt;のUSB接続に戻す事に。&lt;/p&gt;&#xA;&lt;p&gt;折角3TB×4構成なので&lt;span class=&#34;Command&#34;&gt;mdadm&lt;/span&gt;でRaid構築を再確認。まずは普通に&lt;span class=&#34;Command&#34;&gt;parted&lt;/span&gt;で各ドライブに区画を切る。形式は最近のお約束xfsにしておこう。&#xA;&lt;blockquote class=&#34;Log&#34;&gt;&#xA;root@GT110b:~# &lt;span class=&#34;Command&#34;&gt;mdadm&lt;/span&gt; --zero-superblock /dev/sde&lt;br/&gt;&#xA;root@GT110b:~# &lt;span class=&#34;Command&#34;&gt;parted&lt;/span&gt; /dev/sde&lt;br/&gt;&#xA;GNU Parted 2.3&lt;br/&gt;&#xA;Using /dev/sde&lt;br/&gt;&#xA;Welcome to GNU Parted! Type &#39;help&#39; to view a list of commands.&lt;br/&gt;&#xA;(parted) mklabel gpt&lt;br/&gt;&#xA;Warning: The existing disk label on /dev/sde will be destroyed and all data on this disk will be lost. Do you want to&lt;br/&gt;&#xA;continue?&lt;br/&gt;&#xA;Yes/No? yes&lt;br/&gt;&#xA;(parted) p&lt;br/&gt;&#xA;Model: JMicron Generic DISK00 (scsi)&lt;br/&gt;&#xA;Disk /dev/sde: 3001GB&lt;br/&gt;&#xA;Sector size (logical/physical): 512B/4096B&lt;br/&gt;&#xA;Partition Table: gpt&lt;br/&gt;&#xA;&lt;br/&gt;&#xA;Number  Start  End  Size  File system  Name  Flags&lt;br/&gt;&#xA;&lt;br/&gt;&#xA;(parted) unit GB&lt;br/&gt;&#xA;(parted) mkpart DISK00 xfs 1 -1&lt;br/&gt;&#xA;(parted) set 1 raid on&lt;br/&gt;&#xA;(parted) unit s&lt;br/&gt;&#xA;(parted) p&lt;br/&gt;&#xA;Model: JMicron Generic DISK00 (scsi)&lt;br/&gt;&#xA;Disk /dev/sde: 5860533168s&lt;br/&gt;&#xA;Sector size (logical/physical): 512B/4096B&lt;br/&gt;&#xA;Partition Table: gpt&lt;br/&gt;&#xA;&lt;br/&gt;&#xA;Number  Start  End          Size         File system  Name    Flags&lt;br/&gt;&#xA; 1      2048s  5860532223s  5860530176s  xfs          DISK00  raid&lt;br/&gt;&#xA;&lt;br/&gt;&#xA;(parted) q&lt;br/&gt;&#xA;Information: You may need to update /etc/fstab.&lt;br/&gt;&#xA;&lt;br/&gt;&#xA;root@GT110b:~# &lt;span class=&#34;Command&#34;&gt;mkfs.xfs&lt;/span&gt; -f /dev/sde1&lt;br/&gt;&#xA;meta-data=/dev/sde1              isize=256    agcount=32, agsize=22892696 blks&lt;br/&gt;&#xA;         =                       sectsz=4096  attr=2, projid32bit=0&lt;br/&gt;&#xA;data     =                       bsize=4096   blocks=732566272, imaxpct=5&lt;br/&gt;&#xA;         =                       sunit=0      swidth=0 blks&lt;br/&gt;&#xA;naming   =version 2              bsize=4096   ascii-ci=0&lt;br/&gt;&#xA;log      =internal log           bsize=4096   blocks=357698, version=2&lt;br/&gt;&#xA;         =                       sectsz=4096  sunit=1 blks, lazy-count=1&lt;br/&gt;&#xA;realtime =none                   extsz=4096   blocks=0, rtextents=0&lt;br/&gt;&#xA;root@GT110b:~# &lt;/blockquote&gt;&#xA;&lt;span class=&#34;Path&#34;&gt;/dev/sdf～sdh&lt;/span&gt;に対しても同じく&lt;span class=&#34;Command&#34;&gt;mdadm&lt;/span&gt;、&lt;span class=&#34;Command&#34;&gt;parted&lt;/span&gt;、&lt;span class=&#34;Command&#34;&gt;mkfs.xfs&lt;/span&gt;を実施。&#xA;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
