GT110bのUbuntu 14.04(Trusty Tahr)アップデート。eyefiserver2やfplug_for_linuxなどの積み残し案件も無事解決。
最後に動画ファイルなどの保存用ドライブをXFSに切り替えていたところ、
root@GT110b:~# /sbin/parted /dev/sdc
GNU Parted 2.3
Using /dev/sdc
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: ATA WDC WD25EZRX-00M (scsi)
Disk /dev/sdc: 2500GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Number Start End Size File system Name Flags
(parted) mklabel gpt
(parted) unit GB
(parted) mkpart ts_file xfs 0 2500
(parted) p
Model: ATA WDC WD25EZRX-00M (scsi)
Disk /dev/sdc: 2500GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Number Start End Size File system Name Flags
1 0.00GB 2500GB 2500GB xfs ts_file
(parted) quit
Information: You may need to update /etc/fstab.
# /sbin/mkfs.xfs /dev/sdc1
-bash: /sbin/mkfs.xfs: No such file or directory
となったので調べてみると、どうやら
XFSは標準では入っておらず、
xfsprogs パッケージを入れる必要があるらしい。というわけで
# apt-get install xfsprogs
root@GT110b:~# /sbin/mkfs.xfs -f /dev/sdc1
meta-data=/dev/sdc1 isize=256 agcount=32, agsize=22892696 blks
= sectsz=4096 attr=2, projid32bit=0
data = bsize=4096 blocks=732566272, imaxpct=5
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0
log =internal log bsize=4096 blocks=357698, version=2
= sectsz=4096 sunit=1 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
root@GT110b:~# mount -t xfs /dev/sdc1 /mnt/ts_file
という形で万全。
新しいUUIDを調べて
yano@GT110b:~$ sudo blkid -o value -s UUID /dev/sdc1
bc45dfaa-5fac-48d3-8955-800d21c1359b
yano@GT110b:~$
/etc/fstabを書換えて、
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda1 during installation
UUID=70ba23ba-0ecc-402c-a2d6-2bbb15f3acef / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=4c309e51-0d3f-4b8c-ab58-dd638093bc3b none swap sw 0 0
# /home was on /dev/sdb1
UUID=3519f0b4-52d4-4c00-b574-915292b8e115 /home ext4 defaults 0 2
# /mnt/ts_file was on /dev/sdc1
UUID=bc45dfaa-5fac-48d3-8955-800d21c1359b /mnt/ts_file xfs inode64,noatime 0 2
# /mnt/video was on /dev/sdd1
UUID=6406230f-60a1-462d-a145-ca95543664e0 /mnt/video xfs inode64,noatime 0 2
再起動。
これでひと安心…と思ったら、起動時にsambaのfailureが出ていたのに気付いた。SambaのUSB外付けドライブ共有設定を残したまま切り離したりフォーマットしたりしているせいで、構成が落ち着いたら消えるだろうと思っていたのだが、dmesgにあった
[ 18.305493] init: samba-ad-dc main process (1097) terminated with status 1
というログが気になった。
どうやらTrustyTahrでバージョン 4 (正確には4.1.6)に上がったSambaに追加されたActive DirectoryサービスのSamba AD DC絡みで出ているらしい。
Active Directoryサービスは不要だし、Samba自体は問題無く稼動しているようなので実害は無いのだが、気になるのでホントに停止させておく必要が無いのかどうか調べてみた。
Samba AD DCの起動や停止は/etc/init.d/samba-ad-dcで制御されるが、smbdやnmbdと同じく/etc/init.d/sambaから呼ばれる。/etc/init.d/samba-ad-dcは"server role"が"active directory domain controller"でなければ"exit 1"するようになっているのだが、/etc/samba/smb.confを見たところ
# Server role. Defines in which mode Samba will operate. Possible
# values are "standalone server", "member server", "classic primary
# domain controller", "classic backup domain controller", "active
# directory domain controller".
#
# Most people will want "standalone sever" or "member server".
# Running as "active directory domain controller" will require first
# running "samba-tool domain provision" to wipe databases and create a
# new domain.
server role = standalone server
となっていた。実際のdaemonのstatusも
yano@GT110b:~$ sudo /etc/init.d/samba status
* nmbd is running
* smbd is running
yano@GT110b:~$ sudo /etc/init.d/samba-ad-dc status
* samba is not running
となっているので問題は無さそうだ。
【参照】
●Samba - opening windows to a wider world http://www.samba.org/
●SambaWiki https://wiki.samba.org/
┗Samba AD DC HOWTO
●@IT http://www.atmarkit.co.jp/
┗Linuxファイルシステム技術解説(7):64bitファイルシステム XFSの実装 (3/3) 2004年8月24日
●Ubuntu Wiki https://wiki.ubuntu.com/
┣Releases
┣LucidLynx 10.04
┗TrustyTahr 14.04
●Wikipedia http://ja.wikipedia.org/wiki/
┣XFS
┣Samba
┗Active Directory