goo blog サービス終了のお知らせ 

B級好きですが何か?

世の中にある様々なB級があります。そんな愛すべきB級たちを紹介するブログです。

トラヒック理論

2020-12-18 00:14:59 | Weblog
運ばれた呼量=出回線数x平均回線利用率

呼損量=生起呼量ー運ばれた呼量

呼損率=呼損量/生起呼量

生起呼量=(平均回線保留時間x呼数)/調査時間

使用率(a/n)=生起呼量/回線数

呼量(erl)=(平均回線保留時間x運ばれた呼数)/調査時間


運ばれた呼数=(呼量x調査時間)/平均回線保留時間

即時式不完全線郡は、入回線から全ての出回線を選択できる結線ではなく、一部接続できない出回線がある。
出回線が空いていても損失呼を生じる事がある。

アーランB方式
①呼の生起はランダム
②呼の保留時間は指数分布
③入線数無限、出回線数有限
④出線塞がりに遭い、損失となった呼は消滅

ランダム呼
①定常性がある(対象とする時間中の呼の生起確率は一定)
②残留効果がない(それぞれの呼の生起は互いに独立、任意の時刻に呼が生起する確率は、それまでに生起した呼数に無関係)
③希少性がある(十分短い時間をとれば、その間に2つ以上の呼が生起する確率は無視できるほど小さい)


CLSTセットアップ

2020-07-08 12:19:33 | Weblog
Data ONTAP 8.3.xならびにONTAP 9.xの場合
クラスタセットアップ(1ノード目)
※ Maintenance Modeで稼働している場合は再起動します。
*> halt ← シャットダウン
(中略)
LOADER-A> boot_ontap ← システム起動
(中略)

※ Data ONTAP 8.3.xでは、起動完了後にnode setupが開始されます。ONTAP 9.xではnode setupは開始されません。
Welcome to node setup.

You can enter the following commands at any time:
"help" or "?" - if you want to have a question clarified,
"back" - if you want to change previously answered questions, and
"exit" or "quit" - if you want to quit the setup wizard.
Any changes you made before quitting will be saved.

To accept a default or omit a question, do not enter a value.

This system will send event messages and weekly reports to NetApp Technical
Support.
To disable this feature, enter "autosupport modify -support disable" within 24
hours.
Enabling AutoSupport can significantly speed problem determination and
resolution should a problem occur on your system.
For further information on AutoSupport, see:
http://support.netapp.com/autosupport/

Type yes to confirm and continue {yes}: yes ← yesを入力

Enter the node management interface port [e0M]: e0M ← e0Mを入力
Enter the node management interface IP address: *.*.*.* ← コントローラに付与するIPアドレスを指定
Enter the node management interface netmask: 255.255.255.0 ← ネットマスクを指定
Enter the node management interface default gateway: *.*.*.* ← ゲートウェイを指定
A node management interface on port e0M with IP address *.*.*.* has been created.

This node has its management address assigned and is ready for cluster setup.

To complete cluster setup after all nodes are ready, download and run the System Setup utility from the NetApp Support Site and use it to discover the configured nodes.

For System Setup, this node's management address is: *.*.*.*.

Alternatively, you can use the "cluster setup" command to configure the cluster.

Tue Apr 21 02:02:42 UTC 2015
login: admin← adminユーザー(パスワード無し)でログイン
::> cluster setup← cluster setupを実行

※ cluster setup wizard以降はData ONTAP 8.3.x/ONTAP 9.x共通
Welcome to the cluster setup wizard.

You can enter the following commands at any time:
"help" or "?" - if you want to have a question clarified,
"back" - if you want to change previously answered questions, and
"exit" or "quit" - if you want to quit the cluster setup wizard.
Any changes you made before quitting will be saved.

You can return to cluster setup at any time by typing "cluster setup".
To accept a default or omit a question, do not enter a value.

Do you want to create a new cluster or join an existing cluster? {create, join}:
create← createを入力


Do you intend for this node to be used as a single node cluster? {yes, no} [no]:
no ← HA構成の場合はno、シングルコントローラ構成の場合はyes
Will the cluster network be configured to use network switches? [yes]:
no ← switchless clusterの場合はno、switched clusterの場合はyes
Non-HA mode, Reboot node to activate HA

Warning: Ensure that the HA partner has started disk initialization before
rebooting this node to enable HA.
Do you want to reboot now to set storage failover (SFO) to HA mode?
{yes, no} [yes]: yes ← yesを入力

Rebooting now

Terminated
.
(中略)
login: admin ← adminユーザー(パスワード無し)でログイン
::> cluster setup ← cluster setupを実行


Welcome to the cluster setup wizard.

You can enter the following commands at any time:
"help" or "?" - if you want to have a question clarified,
"back" - if you want to change previously answered questions, and
"exit" or "quit" - if you want to quit the cluster setup wizard.
Any changes you made before quitting will be saved.

You can return to cluster setup at any time by typing "cluster setup".
To accept a default or omit a question, do not enter a value.

Do you want to create a new cluster or join an existing cluster? {create, join}:
create ← createを入力

Do you intend for this node to be used as a single node cluster? {yes, no} [no]:
no ← HA構成の場合はno、シングルコントローラ構成の場合はyes
Will the cluster network be configured to use network switches? [no]:
no ← switchless clusterの場合はno、switched clusterの場合はyes

Existing cluster interface configuration found:

Port MTU IP Netmask
e0a 9000 169.254.157.96 255.255.0.0 ← 「クラスタインターコネクトネットワーク結線」で接続した
e0b 9000 169.254.212.192 255.255.0.0 クラスタインターコネクトのポートが提示されていることを確認する。
そうならない場合はCtrl+Cでセットアップを中断し、「クラスタインターコネクト構成確認」と同様の確認、ならびに結線の再確認を行った上で、再度初期化を行う。

Do you want to use this configuration? {yes, no} [yes]: yes ← yesを入力
Enter the cluster administrator's (username "admin") password: ← 仮パスワードを設定

Retype the password: ← 仮パスワードを再入力

Step 1 of 5: Create a Cluster
You can type "back", "exit", or "help" at any question.

Enter the cluster name: cluster1 ← クラスタ名を指定
Enter the cluster base license key: UJBGVLVQJHOJKBAAAAAAAAAAAAAA ← 評価用base license keyを入力

Creating cluster cluster1

Starting cluster support services

Cluster cluster1 has been created.

Step 2 of 5: Add Feature License Keys
You can type "back", "exit", or "help" at any question.

Enter an additional license key []:(Enterを入力)

Step 3 of 5: Set Up a Vserver for Cluster Administration
You can type "back", "exit", or "help" at any question.

Enter the cluster management interface port [e0e]: e0M ← e0Mを入力
Enter the cluster management interface IP address: *.*.*.* ← クラスタに付与するIPアドレスを指定
Enter the cluster management interface netmask: 255.255.255.0 ← ネットマスクを指定
Enter the cluster management interface default gateway [*.*.1.*]:
192.168.1.254 ← ゲートウェイを指定

A cluster management interface on port e0M with IP address *.*.*.* has been created. You can use this address to connect to and manage the cluster.

Enter the DNS domain names: (Enterを入力)

Step 4 of 5: Configure Storage Failover (SFO)
You can type "back", "exit", or "help" at any question.

SFO will be enabled when the partner joins the cluster.

※ ONTAP 9.xでは起動直後にnode setupが開始されないので、node management interfaceの設定はここで行います。
Step 5 of 5: Set Up the Node
You can type "back", "exit", or "help" at any question.

Where is the controller located []:(Enterを入力)
Enter the node management interface port [e0M]: ← node setup時の指定内容で相違なければEnterを入力
Enter the node management interface IP address [*.*.*.*]: ← node setup時の指定内容で相違なければEnterを入力

Enter the node management interface netmask [255.255.255.0]: ← node setup時の指定内容で相違なければEnterを入力
Enter the node management interface default gateway [*.*.*.*]: ← node setup時の指定内容で相違なければEnterを入力

Cluster "cluster1" has been created.
To complete cluster setup, you must join each additional node to the cluster
by running "cluster setup" on each node.

Once all nodes have been joined to the cluster, see the Clustered Data ONTAP
Software Setup Guide for information about additional system configuration
tasks. You can find the Software Setup Guide on the NetApp Support Site.

To complete system configuration, you can use either OnCommand System Manager
or the Data ONTAP command-line interface.

To access OnCommand System Manager, point your web browser to the cluster
management IP address (192.168.1.10).
To access the command-line interface, connect to the cluster management
IP address (for example, ssh admin@192.168.1.10).

cluster1::> system service-processor network modify -node localhost -address-family IPv4 -ip-address *.*.*.* -netmask 255.255.255.0 -gateway *.*.*.* -enable true
← Service Processor(SP)に付与するIPアドレス、ネットマスク、ゲートウェイを指定
cluster1::> system service-processor network show -node localhost ← SPのネットワーク設定を確認
Address
Node Status Family Link State IP Address
------------- -------------- --------- ----------- ------------------------
cluster1-01 online IPv4 up *.*.*.*

DHCP: none
MAC Address: 00:a0:98:7a:d2:de
Network Gateway: *.*.*.*
Network Mask (IPv4 only): 255.255.255.0
Prefix Length (IPv6 only): -
IPv6 RA Enabled: -
Subnet Name: -
SP Network Setup Status: succeeded

cluster1-01 online IPv6 disabled -

DHCP: none
MAC Address: 00:a0:98:7a:d2:de
Network Gateway: -
Network Mask (IPv4 only): -
Prefix Length (IPv6 only): -
IPv6 RA Enabled: -
Subnet Name: -
SP Network Setup Status: not-setup

2 entries were displayed.

cluster1::>

クラスタセットアップ(2ノード目以降)
This system will send event messages and weekly reports to NetApp Technical
Support.
To disable this feature, enter "autosupport modify -support disable" within 24
hours.
Enabling AutoSupport can significantly speed problem determination and
resolution should a problem occur on your system.
For further information on AutoSupport, see:
http://support.netapp.com/autosupport/

Type yes to confirm and continue {yes}: yes ← yesを入力

Enter the node management interface port [e0M]: e0M ← e0Mを入力
Enter the node management interface IP address: *.*.*.* ← コントローラに付与するIPアドレスを指定
Enter the node management interface netmask: 255.255.255.0 ← ネットマスクを指定
Enter the node management interface default gateway: *.*.*.* ← ゲートウェイを指定
A node management interface on port e0M with IP address *.*.*.* has been created.


This node has its management address assigned and is ready for cluster setup.

To complete cluster setup after all nodes are ready, download and run the System Setup utility from the NetApp Support Site and use it to discover the configured nodes.

For System Setup, this node's management address is: *.*.*.*.

Alternatively, you can use the "cluster setup" command to configure the cluster.

Tue Apr 21 02:21:52 UTC 2015
login: admin ← adminユーザー(パスワード無し)でログイン
::> cluster setup ← cluster setupを実行



※ cluster setup wizard以降はData ONTAP 8.3.x/ONTAP 9.x共通です。
Welcome to the cluster setup wizard.

You can enter the following commands at any time:
"help" or "?" - if you want to have a question clarified,
"back" - if you want to change previously answered questions, and
"exit" or "quit" - if you want to quit the cluster setup wizard.
Any changes you made before quitting will be saved.

You can return to cluster setup at any time by typing "cluster setup".
To accept a default or omit a question, do not enter a value.


Do you want to create a new cluster or join an existing cluster? {create, join}:
join ← joinを入力

Non-HA mode, Reboot node to activate HA

Warning: Ensure that the HA partner has started disk initialization before
rebooting this node to enable HA.
Do you want to reboot now to set storage failover (SFO) to HA mode?
{yes, no} [yes]: yes ← yesを入力

Rebooting now

Terminated
.
(中略)
login: admin ← adminユーザー(パスワード無し)でログイン
::> cluster setup ← cluster setupを実行

This node's storage failover partner is already a member of a cluster.
Storage failover partners must be members of the same cluster.
The cluster setup wizard will default to the cluster join dialog.

Welcome to the cluster setup wizard.

You can enter the following commands at any time:
"help" or "?" - if you want to have a question clarified,
"back" - if you want to change previously answered questions, and
"exit" or "quit" - if you want to quit the cluster setup wizard.
Any changes you made before quitting will be saved.

You can return to cluster setup at any time by typing "cluster setup".
To accept a default or omit a question, do not enter a value.

Do you want to create a new cluster or join an existing cluster? {join}:
join ← joinを入力

Existing cluster interface configuration found:

Port MTU IP Netmask
e0a 9000 169.254.235.79 255.255.0.0 ← 「4.4 クラスタインターコネクトネットワーク結線」で接続した
e0b 9000 169.254.58.30 255.255.0.0 クラスタインターコネクトのポートが提示されていることを確認する。
そうならない場合はCtrl+Cでセットアップを中断し、
「9.2 クラスタインターコネクト構成確認」と同様の確認、ならびに
結線の再確認を行った上で、再度初期化を行う。

Do you want to use this configuration? {yes, no} [yes]: yes ← yesを入力

Step 1 of 3: Join an Existing Cluster
You can type "back", "exit", or "help" at any question.

Enter the name of the cluster you would like to join [cluster1]: cluster1 ← 1ノード目で指定したクラスタ名を入力

Joining cluster cluster1

Starting cluster support services ..

This node has joined the cluster cluster1.

Step 2 of 3: Configure Storage Failover (SFO)
You can type "back", "exit", or "help" at any question.

SFO is enabled.

※ ONTAP 9.xでは起動直後にnode setupが開始されないので、node management interfaceの設定はここで行います。
Step 3 of 3: Set Up the Node
You can type "back", "exit", or "help" at any question.

Notice: HA is configured in management.

Enter the node management interface port [e0M]: ← node setup時の指定内容で相違なければEnterを入力
Enter the node management interface IP address [*.*.*.*]: ← node setup時の指定内容で相違なければEnterを入力

Enter the node management interface netmask [255.255.255.0]: ← node setup時の指定内容で相違なければEnterを入力
Enter the node management interface default gateway [*.*.*.*]: ← node setup時の指定内容で相違なければEnterを入力

This node has been joined to cluster "cluster1".
To complete cluster setup, you must join each additional node to the cluster
by running "cluster setup" on each node.

Once all nodes have been joined to the cluster, see the Clustered Data ONTAP
Software Setup Guide for information about additional system configuration
tasks. You can find the Software Setup Guide on the NetApp Support Site.

To complete system configuration, you can use either OnCommand System Manager
or the Data ONTAP command-line interface.

To access OnCommand System Manager, point your web browser to the cluster
management IP address (*.*.*.*).
To access the command-line interface, connect to the cluster management
IP address (for example, ssh admin@*.*.*.*).

cluster1::> system service-processor network modify -node localhost -address-family IPv4 -ip-address *.*.*.* -netmask 255.255.255.0 -gateway *.*.*.* -enable true
← Service Processor(SP)に付与するIPアドレス、ネットマスク、ゲートウェイを指定
cluster1::> system service-processor network show -node localhost ← SPのネットワーク設定を確認
Address
Node Status Family Link State IP Address
------------- -------------- --------- ----------- ------------------------
cluster1-02 online IPv4 up *.*.*.*

DHCP: none
MAC Address: 00:a0:98:7a:c9:46
Network Gateway: *.*.*.*
Network Mask (IPv4 only): 255.255.255.0
Prefix Length (IPv6 only): -
IPv6 RA Enabled: -
Subnet Name: -
SP Network Setup Status: succeeded

cluster1-02 online IPv6 disabled -

DHCP: none
MAC Address: 00:a0:98:7a:c9:46
Network Gateway: -
Network Mask (IPv4 only): -
Prefix Length (IPv6 only): -
IPv6 RA Enabled: -
Subnet Name: -
SP Network Setup Status: not-setup

2 entries were displayed.

cluster1::>

9.1対応

2020-07-08 11:58:47 | Weblog
Boot Loader version 5.1
Copyright (C) 2000-2003 Broadcom Corporation.
Portions Copyright (C) 2002-2014 NetApp, Inc. All Rights Reserved.



Starting AUTOBOOT press Ctrl-C to abort... ← Ctrl+Cで起動を停止

Autoboot the image aborted by user.

LOADER-A>
LOADER-A> printenv ←LOADER変数確認(記録を取るのみで、適否判断は不要)

Variable Name Value
-------------------- --------------------------------------------------
CPU_NUM_CORES 4
BOOT_CONSOLE sp0a
BIOS_VERSION 8.3.0
BIOS_DATE 04/08/2014
SYS_MODEL FAS2552
SYS_REV C0
SYS_SERIAL_NUM 941445000042
MOBO_MODEL FAS
MOBO_REV C0
MOBO_SERIAL_NUM 031442001060
(中略)
LOADER-A>

Service Processor情報収集
(コンソールよりCtrl+Gを入力)
Switching console to Service Processor


Service Processor Login: admin ←adminユーザーでログイン
Password: ←パスワード無し(Enterを入力)
SP> date ←時刻確認 (記録を取るのみで、適否判断は不要)
Tue Mar 15 07:45:31 GMT 2016
SP> events all ←イベント記録確認(記録を取るのみで、適否判断は不要)
(中略)
SP> sp status -d ←各種稼働状況確認(記録を取るのみで、適否判断は不要)
(中略)
SP> (Ctrl+Dを入力)
LOADER-A>

Maintenance modeブート実施
LOADER-A> boot_ontap ← システム起動
Loading X86_64/freebsd/image1/kernel:0x100000/7950592 0x895100/4206472 Entry at 0x80171230
Loading X86_64/freebsd/image1/platform.ko:0xc99000/1985879 0xe7e000/288800 0xec4820/272560
Starting program at 0x80171230
NetApp Data ONTAP 8.3
Copyright (C) 1992-2015 NetApp.
All rights reserved.
*******************************
* *
* Press Ctrl-C for Boot Menu. *
* *
*******************************
^CBoot Menu will be available. ← Ctrl+Cを入力

Please choose one of the following:

(1) Normal Boot.
(2) Boot without /etc/rc.
(3) Change password.
(4) Clean configuration and initialize all disks.
(5) Maintenance mode boot.
(6) Update flash from backup config.
(7) Install new software first.
(8) Reboot node.
Selection (1-8)? 5 ← maintenance modeで起動
(中略)
Continue with boot? y
*>

OSバージョン等構成確認
*> version ← versionコマンド実行
NetApp Release 8.3: Mon Mar 9 19:20:57 PDT 2015 ← OSバージョン
*> version -b ← boot mediaの内容確認(記録を取るのみで、適否判断は不要)
*> sysconfig -v ← ハードウェア構成確認(記録を取るのみで、適否判断は不要)
*> aggr status -r ← RAID構成確認(記録を取るのみで、適否判断は不要)
*> aggr status -v ← aggregateオプション確認(記録を取るのみで、適否判断は不要)
*> disk show -v ←ディスク構成確認(記録を取るのみで、適否判断は不要)
*> environment status ←環境情報確認(記録を取るのみで、適否判断は不要)
*> storage show acp ←ACP構成確認(記録を取るのみで、適否判断は不要。ONTAP 9.xでは収集不可)
*> ucadmin show ←UTA2デバイス構成確認(記録を取るのみで、適否判断は不要)
*> ha-config show ←HA構成確認(記録を取るのみで、適否判断は不要)
*> fru_led status

ディスク構成確認
*> disk show -v ← ディスク情報確認
Local System ID: 536912592 ← 当コントローラのSystem ID
DISK OWNER POOL SERIAL NUMBER HOME DR HOME CHKSUM
------------ ------------- ----- ------------- ------------- ------------- --------
0b.00.21 (536912592) Pool0 S0M3MD0N (536912592) Block
0b.00.21P1 (536912592) Pool0 S0M3MD0NNP001 (536912592) Block
0b.00.21P2 (536912592) Pool0 S0M3MD0NNP002 (536912592) Block
0a.00.14 (536912527) Pool0 S0M3NALQ0000M51265TG (536912527) Block
0a.00.14P1 (536912527) Pool0 S0M3NALQ0000M51265TGNP001 (536912527) Block
0a.00.14P2 (536912527) Pool0 S0M3NALQ0000M51265TGNP002 (536912527) Block
0b.00.19 (536912592) Pool0 S0M3MEEY (536912592) Block
(中略)
*>

UTA2ポートモード確認・変更
*> ucadmin show ← モード確認
Current Current Pending Pending Admin
Adapter Mode Type Mode Type Status
------- ------- --------- ------- --------- -------
0c fc target - - offline
0d fc target - - offline
0e fc target - - offline ← cnaでは無くfcとなっている場合は要変更
0f fc target - - offline ← cnaでは無くfcとなっている場合は要変更
*>

※ 0e, 0fのCurrent Modeがcnaとなっている場合は、この節の以後の操作は省略する

*> ucadmin modify -m cna 0e ←0e(並びに0f)のモードをcnaに変更
ucadmin modify: Mode on adapter 0e and also adapter 0f will be changed to cna.
Do you want to continue (y/n)? y ← 0eの変更により0fも変更される。yを入力
*> ucadmin show ← モード確認
Current Current Pending Pending Admin
Adapter Mode Type Mode Type Status
------- ------- --------- ------- --------- -------
0c fc target - - offline
0d fc target - - offline
0e fc target cna - offline ← 次回再起動時にcnaに変更される
0f fc target cna - offline ← 次回再起動時にcnaに変更される
*> halt ← シャットダウン
(中略)
LOADER-A> boot_ontap maint ← maintenance modeでシステム起動
Loading X86_64/freebsd/image1/kernel:0x100000/7950592 0x895100/4206472 Entry at 0x80171230
Loading X86_64/freebsd/image1/platform.ko:0xc99000/1985879 0xe7e000/288800 0xec4820/272560
Starting program at 0x80171230
NetApp Data ONTAP 8.3
Copyright (C) 1992-2015 NetApp.
All rights reserved.
*******************************
* *
* Press Ctrl-C for Boot Menu. *
* *
*******************************
(中略)
*> ucadmin show ← モード確認
Current Current Pending Pending Admin
Adapter Mode Type Mode Type Status
------- ------- --------- ------- --------- -------
0c fc target - - offline
0d fc target - - offline
0e cna target - - offline
0f cna target - - offline
*>

ADP root partitioning解除
*> aggr status ← aggregate名を確認
Aggr State Status Options
aggr0 online raid_dp, aggr root, nosnap=on
64-bit
*>
*> aggr offline aggr0 ← aggregateをoffline化

WARNING! aggr0 is the root aggregate. If you take it offline, you must
use "aggr options" to set a new root aggregate or traditional volume
before rebooting.

Are you sure want to take the root aggregate (aggr0) offline? y ← yを入力
Aggregate 'aggr0' is now offline.
Apr 02 10:40:24 [localhost:volaggr.offline:CRITICAL]: Some aggregates are offline. Volume creation could cause duplicate FSIDs.
No root aggregate or root traditional volume found.
You must specify a root aggregate or traditional volume with
"aggr options <name> root" before rebooting the system.
*>
*> aggr destroy aggr0 ← aggregateを削除
Apr 02 10:41:20 [localhost: :raid.assim.tree.noRootVol:error]: No usable root volume was found!
Are you sure you want to destroy this aggregate? y ← yを入力
Aggregate 'aggr0' destroyed.
No root aggregate or root traditional volume found.
You must specify a root aggregate or traditional volume with
"aggr options <name> root" before rebooting the system.
*>
*> aggr status ← aggregateが存在しないことを確認
Apr 02 10:41:48 [localhost:raid.assim.tree.noRootVol:error]: No usable root volume was found!
Disk label processing failed!

unable to run aggr command
No root aggregate or root traditional volume found.
You must specify a root aggregate or traditional volume with
"aggr options <name> root" before rebooting the system.
*>
*> disk show -v ← ディスクのownerを確認
Local System ID: 536912592 出荷状態では物理ディスクと論理ディスクのownerは同一のはずだが、確認する

DISK OWNER POOL SERIAL NUMBER HOME DR HOME CHKSUM
------------ ------------- ----- ------------- ------------- ------------- --------
0b.00.1 (536912592) Pool0 S0M3QGB8 (536912592) Block
0b.00.1P1 (536912592) Pool0 S0M3QGB8NP001 (536912592) Block
0b.00.1P2 (536912592) Pool0 S0M3QGB8NP002 (536912592) Block
0a.00.8 (536912527) Pool0 S0M3NXCE (536912527) Block
0a.00.8P1 (536912592) Pool0 S0M3NXCENP001 (536912592) Block
0a.00.8P2 (536912527) Pool0 S0M3NXCENP002 (536912527) Block
0a.00.16 (536912527) Pool0 S0M3QH9J (536912527) Block
(中略)
*> disk assign 0a.00.8P1 -s 536912527 -f ← 論理ディスク(P1,P2,P3)のownerを物理ディスクのownerに統一させる
Cannot do remote rescan. Use 'run local disk show' on the console of for it to scan the newly assigned disks
Apr 02 10:48:22 [localhost:diskown.RescanMessageFailed:warning]: Could not send rescan message to . Use the "disk show" command in nodeshell of for it to scan the newly inserted disks.
*> disk show -v ← ディスクのownerを確認
Local System ID: 536912592

DISK OWNER POOL SERIAL NUMBER HOME DR HOME CHKSUM
------------ ------------- ----- ------------- ------------- ------------- --------
0b.00.1 (536912592) Pool0 S0M3QGB8 (536912592) Block
0b.00.1P1 (536912592) Pool0 S0M3QGB8NP001 (536912592) Block
0b.00.1P2 (536912592) Pool0 S0M3QGB8NP002 (536912592) Block
0a.00.8 (536912527) Pool0 S0M3NXCE (536912527) Block
0a.00.8P1 (536912527) Pool0 S0M3NXCENP001 (536912527) Block
0a.00.8P2 (536912527) Pool0 S0M3NXCENP002 (536912527) Block
0a.00.16 (536912527) Pool0 S0M3QH9J (536912527) Block
(中略)
*> disk unpartition 0b.00.1 ← partitioningを解除する
Apr 02 10:54:29 [localhost: :raid.assim.tree.noRootVol:error]: No usable root volume was found!
Disk 0b.00.1 must not have file system partitions. All partitions must be spare
Do not proceed with unpartition if disk has file system partitions. Abort unpartition (y/n)? n ← nを入力
disk unpartition: 0b.00.1 unpartitioned successfully
*>
(partitioning解除を各ディスクに対して繰り返す)
*>
*> disk show -v ← partitioning解除を確認
Local System ID: 536912592

DISK OWNER POOL SERIAL NUMBER HOME DR HOME CHKSUM
------------ ------------- ----- ------------- ------------- ------------- --------
0b.00.1 (536912592) Pool0 S0M3QGB8 (536912592) Block
0b.00.3 (536912592) Pool0 S0M3M59C (536912592) Block
0b.00.5 (536912592) Pool0 S0M3Q71J (536912592) Block
0a.00.8 (536912527) Pool0 S0M3NXCE (536912527) Block
0a.00.16 (536912527) Pool0 S0M3QH9J (536912527) Block
(中略)
*>

ディスクOwnership修正
*> disk show -v ← ディスクのownerを確認
Local System ID: 536942669

DISK OWNER POOL SERIAL NUMBER HOME DR HOME CHKSUM
------------ ------------- ----- ------------- ------------- ------------- --------
(中略)
0b.00.1 (536942669) Pool0 P6JRH60W (536942669) Block
0b.00.7 Not Owned NONE P6JRKATW Block
0b.00.13 Not Owned NONE P6JRKRZW Block
0a.00.0 (536942669) Pool0 P6J404KP (536942669) Block
(中略)
*> disk assign 0a.00.7 ← ディスクを割り当てさせるコントローラ上で実行
disk assign: Disk assigned but unable to obtain owner name. Re-run 'disk assign' with -o option to specify name.
*> disk assign 0a.00.13 ← ディスクを割り当てさせるコントローラ上で実行
disk assign: Disk assigned but unable to obtain owner name. Re-run 'disk assign' with -o option to specify name.
(中略)
*> disk show -v
Local System ID: 536942669

DISK OWNER POOL SERIAL NUMBER HOME DR HOME CHKSUM
------------ ------------- ----- ------------- ------------- ------------- --------
(中略)
0b.00.1 (536942669) Pool0 P6JRH60W (536942669) Block
0b.00.7 (536942669) Pool0 P6JRKATW (536942669) Block
0b.00.13 (536942669) Pool0 P6JRKRZW (536942669) Block
0a.00.0 (536942669) Pool0 P6J404KP (536942669) Block
(中略)
*>

RD構成ならびに非AFFでのRD2構成の場合
*> disk remove_ownership
All disks owned by system ID 536942669 will have their ownership information removed.
Do you wish to continue? y
Volumes must be taken offline. Are all impacted volumes offline(y/n)?? y
Removing the ownership of aggregate disks may lead to partition of aggregates between high-availability pair.
Do you want to continue(y/n)? y
*> disk show -v ← ディスクのownerを確認
Local System ID: 536942669

DISK OWNER POOL SERIAL NUMBER HOME DR HOME CHKSUM
------------ ------------- ----- ------------- ------------- ------------- --------
(中略)
0b.00.1 Not Owned NONE P6JRH60W Block
0b.00.7 Not Owned NONE P6JRKATW Block
0b.00.13 Not Owned NONE P6JRKRZW Block
0a.00.0 Not Owned NONE P6JRH60W Block
*>

AFFでのRD2構成の場合
*> disk show -v ← ディスクのownerを確認
Local System ID: 536942669

DISK OWNER POOL SERIAL NUMBER HOME DR HOME CHKSUM
------------ ------------- ----- ------------- ------------- ------------- --------
(中略)
0b.00.1 (536942669) Pool0 P6JRH60W (536942669) Block
0b.00.7 Not Owned NONE P6JRKATW Block
0b.00.13 Not Owned NONE P6JRKRZW Block
0a.00.0 (536942669) Pool0 P6J404KP (536942669) Block
(中略)
*> disk assign 0a.00.7 ← ディスクを割り当てさせるコントローラ上で実行
disk assign: Disk assigned but unable to obtain owner name. Re-run 'disk assign' with -o option to specify name.
(中略)
*> disk show -v ← ディスクのownerを確認
Local System ID: 536942669

DISK OWNER POOL SERIAL NUMBER HOME DR HOME CHKSUM
------------ ------------- ----- ------------- ------------- ------------- --------
(中略)
0b.00.1 (536942669) Pool0 P6JRH60W (536942669) Block
0b.00.7 (536942669) Pool0 P6JRKATW (536942669) Block
0b.00.13 (536878542) Pool0 P6JRKRZW (536878542) Block
0a.00.0 (536942669) Pool0 P6J404KP (536942669) Block
(中略)
*>

OSインストール
*> halt ← システム停止
Terminated
.
Uptime: 12m20s
System halting...
(中略)
LOADER-A> boot_ontap ← システム起動
Loading X86_64/freebsd/image1/kernel:0x100000/7950592 0x895100/4206472 Entry at 0x80171230
Loading X86_64/freebsd/image1/platform.ko:0xc99000/1985879 0xe7e000/288800 0xec4820/272560
Starting program at 0x80171230
NetApp Data ONTAP 8.3
Copyright (C) 1992-2015 NetApp.
All rights reserved.
*******************************
* *
* Press Ctrl-C for Boot Menu. *
* *
*******************************
^CBoot Menu will be available. ← Ctrl+Cを入力

Please choose one of the following:

(1) Normal Boot.
(2) Boot without /etc/rc.
(3) Change password.
(4) Clean configuration and initialize all disks.
(5) Maintenance mode boot.
(6) Update flash from backup config.
(7) Install new software first.
(8) Reboot node.
Selection (1-8)? 7 ← 7を入力

This procedure is not supported for Non-Disruptive Upgrade on an HA pair.
The software will be installed to the alternate image, from which the node is
not currently running. Do you want to continue? {y|n} y ← yを入力

In order to download the package, a temporary network interface needs to be
configured.

Select the network port you want to use for the download (for example, 'e0a')
e0M ← e0Mを入力

The node needs to reboot for this setting to take effect. Reboot now? {y|n}
(selecting yes will return you automatically to this install wizard) y ← yを入力



Rebooting...
Terminated
.
Uptime: 2m52s
System rebooting...
(中略)
Starting AUTOBOOT press Ctrl-C to abort...
Loading X86_64/freebsd/image1/kernel:0x100000/7950592 0x895100/4206472 Entry at 0x80171230
Loading X86_64/freebsd/image1/platform.ko:0xc99000/1985879 0xe7e000/288800 0xec4820/272560
Starting program at 0x80171230
NetApp Data ONTAP 8.3
Copyright (C) 1992-2015 NetApp.
All rights reserved.
*******************************
* *
* Press Ctrl-C for Boot Menu. *
* *
*******************************
Proceeding with Install

In order to download the package, a temporary network interface needs to be
configured.

Enter the IP address for port e0M: 192.168.1.11 ← コントローラに付与するIPアドレスを指定
Enter the netmask for port e0M: 255.255.255.0 ← ネットマスクを指定
Enter IP address of default gateway: 192.168.1.254 ← ゲートウェイを指定(HTTPサーバが同一サブネット上なら省略可)

What is the URL for the package? http://192.168.1.1/DataONTAP/83_q_image.tgz ←Data ONTAPイメージファイルのURLを入力
What is the user name on "<HTTPサーバ>", if any? ← Enterを押す

Checking network link... success.
Checking route to host "192.168.1.1"... success.
Attempting to reach 192.168.1.1... success.
Looking up URL "http://192.168.1.1/DataONTAP/83_q_image.tgz"... success.
Downloading package... success.
(中略)
Installation complete.

Do you want to set the newly installed software as the default to be used for
subsequent reboots? {y|n} y ← yを入力

The node must be rebooted to start using the newly installed software. Do you
want to reboot now? {y|n} y ← yを入力

Rebooting...
/var version is up to date
Setting default boot image to image1... done.
Terminated
.
Uptime: 5m43s
System rebooting...
(中略)
Starting AUTOBOOT press Ctrl-C to abort... ← Ctrl+Cで起動を停止

Autoboot the image aborted by user.
LOADER-A>

初期化
LOADER-A> setenv root-uses-shared-disks? false ← 非ADP root partitioning構成で使用する場合のみ実施
LOADER-A> setenv root-uses-shared-ssds? false ← 非ADP root partitioning構成で使用する場合のみ実施
LOADER-A> setenv allow-root-partitions-on-external? False   ← 非ADP root partitioning構成で使用する場合のみ実施
LOADER-A> setenv allow-root-data1-data2-partitions? false ← RD2対応構成で非ADPもしくはRD構成にする場合のみ実施
LOADER-A> saveenv ← 変更を保存
LOADER-A> boot_ontap ← システム起動
Loading X86_64/freebsd/image1/kernel:0x100000/7950592 0x895100/4206472 Entry at 0x80171230
Loading X86_64/freebsd/image1/platform.ko:0xc99000/1985879 0xe7e000/288800 0xec4820/272560
Starting program at 0x80171230
NetApp Data ONTAP 8.3
Copyright (C) 1992-2015 NetApp.
All rights reserved.
*******************************
* *
* Press Ctrl-C for Boot Menu. *
* *
*******************************
^CBoot Menu will be available. ← Ctrl+Cを入力
※ BIOS, FirmwareアップデートによりCtrl+C入力が無効となる場合あり
Please choose one of the following: その場合はアップデート後の再起動時に再試行してください

(1) Normal Boot.
(2) Boot without /etc/rc.
(3) Change password.
(4) Clean configuration and initialize all disks.
(5) Maintenance mode boot.
(6) Update flash from backup config.
(7) Install new software first.
(8) Reboot node.
Selection (1-8)? 4 ← 4を入力
(中略)
Zero disks, reset config and install a new file system?: y ← yを入力
※ プロンプトが起動時のメッセージに埋もれている場合あり
This will erase all the data on the disks, are you sure?: y ← yを入力
※ プロンプトが起動時のメッセージに埋もれている場合あり

Rebooting to finish wipeconfig request.
Skipped backing up /var file system to CF.
Terminated
.
Uptime: 3m19s
System rebooting...
(中略)
Apr 02 04:03:59 [localhost:diskown.RescanMessageFailed:warning]: Could not send rescan message to . Use the "disk show" command in nodeshell of for it to scan the newly inserted disks.
.......................................................................................................................
(中略:ディスク種別次第で1~12時間程度を要する)


Officeライセンス認証

2020-07-07 23:11:37 | Weblog
32ビットの場合
cscript "C:\Program Files\Microsoft Office\Office16\OSPP.VBS" /act

64ビットの場合
cscript "C:\Program Files (x86)\Microsoft Office\Office16\OSPP.VBS" /act

Office のプロダクト キーを変更するバッチファイル
@echo off
set strPARAM=ABCDE-FGHIJ-KLMNO-PQRST-UVWXY
cscript //nologo "C:\Program Files (x86)\Microsoft Office\Office16\OSPP.VBS" /inpkey:%strPARAM%
pause
exit

Windowsライセンス認証をする

2020-07-07 22:36:41 | Weblog
コマンドプロンプトから以下コマンドを実行

slui.exe 4

このコマンドを入力した後はGUIでの操作となる。

[国または地域を選んでください] と表示されたら、[日本] を選択し [次へ] をクリック

画面に表示されたライセンス認証窓口 (0120-801-734) に電話し、インストール ID を電話機で入力

入力が完了したら [確認 ID を入力] ボタンをクリック

電話で応答のあった確認 ID を画面に入力し、[Windows のライセンス認証] ボタンをクリック
以上でライセンス認証が完了します。

@echo off
set strPARAM=ABCDE-FGHIJ-KLMNO-PQRST-UVWXY
cscript //nologo "C:\Windows\System32\slmgr.vbs" /ipk %strPARAM%
pause
exit


1.「Windows」と「R」キーを押して、ダイアログに「regedit」を入力してEnterキーを押します。

2.「regedit」を入力

2.「ユーザーアカウント制御」の画面が表示されたら「はい」をクリックします。

3. レジストリエディター画面が表示されたら、以下のレジストリツリーのように「CurrentVersion」ファイルに移動します。
\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\

4.
「CurrentVersion」ファイルの中に、「ProductId」を探して、その横に表示される25文字のコードがプロダクトキーです。

ドライバインストールバッチ

2020-07-05 18:39:24 | Weblog
次のコマンド1行ですべて実行できます。コマンド プロンプト ウィンドウにコマンドをコピー/貼り付けします。

for /f "tokens=*" %a in ('dir *.inf /b /s') do (pnputil –i -a "%a\..\*.inf")

上記のコマンドの詳細を見てみましょう。

「for /f "tokens=*" %a in ('dir *.inf /b /s'」

は、現在のWindowsコマンド プロンプトがポイントしているフォルダーから、再帰的にすべてのサブディレクトリを読み取ります。ディレクトリーに.INFファイルが含まれる場合、フォルダー名はセッション変数%aに格納され、コマンドの2番目の部分

pnputil –i -a "%a\..\*.inf”を実行します

構文: pnputil.exe [-i] –a

-a - すべてのドライバーをWindowsドライバー ストアに追加しますが、ドライバーはインストールしません。

-i - ストアに追加した後、ドライバーをインストールします。

(「-a」スイッチ自身は、ドライバーを追加するのみですが、Windowsデバイス マネージャーからの手動ドライバー更新など、トリガーされるまでインストールされません。)

ドライバ一覧表示

2020-07-05 18:23:23 | Weblog
pnputil /enum-drivers
または
pnputil -e
後者は少し古いWindows向けのコマンド。
pnputilはVistaから追加されたコマンド。
Windows 10は両方使える。前者の方が情報量が多い。


日本語環境向けに最適化されてなくてインデントがずれてるのが気になる場合は
chcp 437
でコマンドプロンプトのコードページを英語にするとインデントがそろうようになる。
日本語に戻す場合は
chcp 932
ちなみにchcpとは Changes the active console code page. だ。


dismでも追加されたドライバーの一覧を取得することができる。
dism /online /get-drivers
さらにdismならテーブル形式に出力することができる。
dism /online /get-drivers /format:table
pnputil同様インデントがずれる。ただしコードページの変更では一部しか英語にならない。
dismの場合、以下のようにして出力を英語にすることができる。(コードページの変更は不要)
dism /online /get-drivers /format:table /english

コンソールの出力結果をテキストに保存したい場合、Windows 10は80文字で折り返さないため、ウィンドウを最大化したうえでコマンドを実行しコピー & ペーストするだけでいいが、それ以外のWindowsの場合は、コマンドの末尾に
> テキストファイルのパス
を付け加え、出力をファイルへ書き出すことで80文字目で折り返されることがなくなる。なお、有無を問わず上書きしようとするので既存のファイルを上書きしてしまわないように注意すること。
例: dismコマンドにて追加したドライバーの一覧をテーブル形式で、かつインデントがずれないように英語出力を行い、出力結果をデスクトップにdrivers.txtという名前で保存する場合
dism /online /get-drivers /format:table /english > %userprofile%\desktop\drivers.txt

Windowsエクスペリエンスコマンド
winsat formal

C$にアクセスできるようになる

2020-07-05 17:50:17 | Weblog
Windowsキー + Rで「regedit」とたたいてレジストリエディタを起動しましょう。

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

にアクセスして新規にDWORD値を作成します。

名前 LocalAccountTokenFilterPolicy
値 1

不良セクタを修復する

2020-07-05 17:44:17 | Weblog
不良セクタがあると、Windows 10でCドライブのアクセスが拒否されることがあります。システムファイルチェッカーを使用して不良セクタをスキャンして修復できます。

このツールを使用するには、コマンドプロンプトを開き、コマンドプロンプトで次のコマンドを入力し、それぞれの後にEnterキーを押します。

sfc /scannow

chkdsk c: /f /r

bootrec /fixmbr

bootrec /fixboot

bootrec /scanos

bootrec /rebuildbcd

WindowsUpdate確認コマンド

2020-07-04 23:29:20 | Weblog
wmic qfe list full
wmic qfe list full /format:list > hotfixes.txt
WMIC QFE LIST /FORMAT:htable > HotFix1.html