1台のHDDにCentOSをインストールしたシステムを,あとからソフトウェアRAIDにする時の作業メモです. LVM+ext3の少し古い環境を想定していますが,LVM+XFSでもだいたい同じはずです.
ポイントは
- OSインストールしてから,あとでソフトウェアRAID
- RAIDのレベルはRAID1(ミラーリング)
TEST=123 | |
FOO=bar | |
hoge=FUGA |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: ubuntu | |
spec: | |
replicas: 2 | |
selector: | |
matchLabels: | |
app: ubuntu | |
template: |
# _ _ 2020.-1.26 | |
# | |_| |_ __ _ __ __ ___ ______ | |
# _| ' \ _/ _` / _/ _/ -_|_-<_-< | |
# (_)_||_\__\__,_\__\__\___/__/__/ | |
# Apache preferences | |
# ------------------ | |
AddDefaultCharset UTF-8 | |
DirectoryIndex index.html .forbidden |
<mso:cmd app="Excel" dt="1" /> | |
<mso:customUI xmlns:msox="http://schemas.microsoft.com/office/2006/01/customui/special" xmlns:mso="http://schemas.microsoft.com/office/2009/07/customui"> | |
<mso:ribbon> | |
<mso:qat> | |
<mso:sharedControls> | |
<mso:control idQ="mso:ReadOnly" visible="true"/> | |
<mso:control idQ="mso:Filter" visible="true"/> | |
<mso:control idQ="mso:SortClear" visible="true"/> | |
<mso:control idQ="mso:FilterReapply" visible="true"/> | |
<mso:control idQ="mso:InsertPivotTableDropdown" visible="true"/> |
#!/usr/bin/env ruby | |
# a1 : [ int, int, ... ] | |
# a2 : [ int, int, ... ] | |
def merge(a1, a2 = nil) | |
return a1 if a2.nil? | |
r = [] | |
loop do | |
case |
#!/usr/bin/env python3 | |
# coding: utf-8 | |
import json | |
from urllib import request,parse | |
from lxml import html | |
WEBHOOK = 'https://127.1.1.1/' # Put your webhook endpoint here |
#!/usr/bin/env python3 | |
import hashlib | |
import json | |
import os | |
from urllib import request,parse | |
TARGET_DIR = './bing/' | |
BING_URI_FORMAT = 'https://www.bing.com/HPImageArchive.aspx?format=js&idx={}&n=8&mkt={}' # n > 8 is ignored | |
LOCALE = { |
#!/usr/bin/env python3 | |
import json | |
import hashlib | |
from urllib import request,parse | |
BING_URI = 'https://www.bing.com/HPImageArchive.aspx?format=js&idx=0&n=1' | |
req = request.urlopen(BING_URI) | |
bing = json.loads(req.read()) |
#cloud-config | |
package_update: true | |
package_upgrade: true | |
package_reboot_if_required: false | |
packages: | |
- boinc-client | |
locale: en_US.UTF-8 | |
timezone: Asia/Tokyo |