Senin, 25 Maret 2019

Rename Guest ldom in Primary or Controll Domain

Save the guest domain config into an XML file
# ldm list-constraints -x oldname >/var/tmp/oldname.xml
Shutdown and unbind your guest domain
# ldm stop oldname
# ldm unbind oldname
Copy and edit the XML file to have the new ldom host name (do a replace in vi)
# cp /var/tmp/oldname.xml /var/tmp/newname.xml

// change oldname to newname in line "
# vi /var/tmp/newname.xml

Delete the old guest domain
# ldm destroy oldname
Import the new xml file for the guest domain

# ldm add-domain -i /var/tmp/newname.xml
Bind and start guest domain
# ldm bind newname

# ldm start newname

============ rename Siebel SMJKT-PRSBA01 to SMJKT-PRSBD02 ================
ldm list-constraints -x SMJKT-PRSBA01 > /export/home/admin/SMJKT-PRSBA01.xml
ldm stop SMJKT-PRSBA01
ldm unbind SMJKT-PRSBA01
cp /export/home/admin/SMJKT-PRSBA01.xml /export/home/admin/SMJKT-PRSBD02.xml
vi /export/home/admin/SMJKT-PRSBD02.xml
ldm destroy SMJKT-PRSBA01
ldm add-domain -i /export/home/admin/SMJKT-PRSBD02.xml
ldm bind SMJKT-PRSBD02
ldm start SMJKT-PRSBD02


============ rename HR SMJKT-PRHRA01 to SMJKT-PRHRD02 ================
ldm list-constraints -x SMJKT-PRHRA01 > /export/home/admin/SMJKT-PRHRA01.xml
ldm stop SMJKT-PRHRA01
ldm unbind SMJKT-PRHRA01
cp /export/home/admin/SMJKT-PRHRA01.xml /export/home/admin/SMJKT-PRHRD02.xml
vi /export/home/admin/SMJKT-PRHRD02.xml
ldm destroy SMJKT-PRHRA01
ldm add-domain -i /export/home/admin/SMJKT-PRHRD02.xml
ldm bind SMJKT-PRHRD02
ldm start SMJKT-PRHRD02


Reference :  [How To Rename a guest domain in LDOMs (Doc ID 1459440.1)]

How to update SRU solaris 11 (simple step)

1. Copy ISO file repo full to the system
- i.e. sol-11_1-repo-full.iso
2. Copy ISO file repo incremental to the system
- i.e. sol-11_1_11_4_0-incr-repo.iso
3. Mount to a directory
# mount -F hsfs sol-11_1-repo-full.iso /repo-full
# mount -F hsfs sol-11_1_11_4_0-incr-repo.iso /repo-incr
4. Set pkg publisher
# pkg set-publisher -G "*" -g file:///repo-full/repo solaris
# pkg set-publisher -g file:///repo-incr/repo solaris
5. Check pkg publisher
# pkg publisher
PUBLISHER TYPE STATUS P LOCATION
solaris origin online F file:///repo-full/repo/
solaris origin online F file:///repo-incr/repo/
6. Update SRU
# pkg update --accept

Backup and Recovery O/S solaris 11 using ZFS snapshot

Creating a ZFS Snapshot Archive for Recovery

Activity

Preparation
Capture the root pool properties
# zpool get all rpool

Identify the size and current capacity of the root pool disk
# zpool list
# mount -F nfs 10.20.201.162:/sol10 /sol10
# mount -F nfs 10.20.201.162:/eis /eis

Identify the root pool components.
# zfs list -r rpool

Create a ZFS Snapshot Archive
Create a recursive snapshot of the root pool
# zfs snapshot -r rpool@rpool.snap1

Reduce the snapshot archive by removing the swap and dump snapshots, if desired
# zfs destroy rpool/dump@rpool.snap1
# zfs destroy rpool/swap@rpool.snap1

Send the recursive root pool snapshot to another pool on another system
using NFS, SAN storage, etc

Send the recursive root pool snapshot to a remote system
# zfs send -Rv rpool@rpool.snap1 | gzip > //rpool.snap1.gz


Recreating The Root Pool and Recovering Root Pool Snapshots

Identify and replace the failed root pool disk or system component

Boot the system from the Oracle Solaris 11 installation media
ok boot cdrom
"ok boot rcdrom
.
.
.Welcome to the Oracle Solaris 11 installation menu

1 Install Oracle Solaris
2 Install Additional Drivers
3 Shell
4 Terminal type (currently xterm)
5 Reboot

Please enter a number [1]: 3"

Prepare the root pool disk
Confirm that the replacement root pool disk is visible from the format utility
# format

Recreate the root pool
# zpool create rpool c2t0d0s0

Mount the file system that contains the snapshots

Restore the root pool snapshots
# gzcat /mnt/rpool.snap1.gz | zfs receive -Fv rpool

Set the bootfs property
# zpool set bootfs=rpool/ROOT/solaris rpool

Recreate swap and dump devices, if necessary
# zfs create -V 4G rpool/swap
# zfs create -V 64G rpool/dump"

Mount the BE
# beadm mount solaris /tmp/mnt (bisa di ignore)

Install the boot blocks on the new disk
# installboot -F zfs /usr/platform/`uname -i`/lib/fs/zfs/bootblk /dev/rdsk/c1t9d0s0

Unmount the BE
#beadm unmount solaris

Activate the boot environment, if necessary
# beadm list
# beadm activate solaris



Reff
http://docs.oracle.com/cd/E23824_01/html/821-1448/recover-3.html#scrolltoc
http://docs.oracle.com/cd/E23824_01/html/821-1448/recover-4.html#scrolltoc

How to install EMC powerpath solaris 11

root@SMJKT-PRHRA01:/export/home/admin# tar -xvf EMCPower.SOLARIS11.5.5.P02.b012.tar

root@SMJKT-PRHRA01:/export/home/admin# pkg set-publisher -g file:///export/home/admin/EMCpower emc.com
root@SMJKT-PRHRA01:/export/home/admin# pkg publisher
PUBLISHER TYPE STATUS P LOCATION
solaris origin online F file:///repo-full/repo/
solaris origin online F file:///repo-incr/repo/
emc.com origin online F file:///export/home/admin/EMCpower/


root@SMJKT-PRHRA01:/mnt# pkg install EMCpower
Packages to install: 1
Create boot environment: No
Create backup boot environment: No
Services to change: 1

DOWNLOAD PKGS FILES XFER (MB) SPEED
Completed 1/1 226/226 28.4/28.4 0B/s

PHASE ITEMS
Installing new actions 320/320
Updating package state database Done
Updating image state Done
Creating fast lookup database Done


root@SMJKT-PRHRA01:~# powermt config
root@SMJKT-PRHRA01:~# powermt manage class=vnx
root@SMJKT-PRHRA01:~# powermt save

root@SMJKT-PRHRA01:~# powermt set policy=co
ERROR: License not installed.
root@SMJKT-PRHRA01:~# emcpreg -add xxxx-xxxx-xxxx-xxxx-xxxx-xxxx
1 key(s) successfully added.
root@SMJKT-PRHRA01:~# powermt set policy=co
root@SMJKT-PRHRA01:~# powermt save
root@SMJKT-PRHRA01:~# powermt display dev=all
# powermt display options

check multipath powermt
=======================
# powermt display


root@GGJKTEBSDB01:~# powermt display
VNX logical device count=15
==============================================================================
----- Host Bus Adapters --------- ------ I/O Paths ----- ------ Stats ------
### HW Path Summary Total Dead IO/Sec Q-IOs Errors
==============================================================================
3080 pci@400/pci@2/pci@0/pci@1/pci@0/pci@2/SUNW,qlc@0,1/fp@0,0 optimal 15 0 - 0 0
3081 pci@400/pci@1/pci@0/pci@4/pci@0/pci@2/SUNW,qlc@0,1/fp@0,0 optimal 15 0 - 1 0
3082 pci@400/pci@2/pci@0/pci@2/pci@0/pci@2/SUNW,qlc@0/fp@0,0 optimal 15 0 - 1 0
3083 pci@400/pci@2/pci@0/pci@2/pci@0/pci@2/SUNW,qlc@0,1/fp@0,0 optimal 15 0 - 0 0
3086 pci@400/pci@2/pci@0/pci@1/pci@0/pci@2/SUNW,qlc@0/fp@0,0 optimal 15 0 - 1 0
3090 pci@400/pci@1/pci@0/pci@4/pci@0/pci@2/SUNW,qlc@0/fp@0,0 optimal 15 0 - 0 0
3092 pci@400/pci@2/pci@0/pci@3/pci@0/pci@2/SUNW,qlc@0/fp@0,0 optimal 15 0 - 1 0
3094 pci@400/pci@2/pci@0/pci@3/pci@0/pci@2/SUNW,qlc@0,1/fp@0,0 optimal 15 0 - 0 0

Check all dev
=============
# powermt display dev=all

root@GGJKTEBSDB01:~# powermt display dev=all
Pseudo name=emcpower0a
VNX ID=CKM00123201530 [GGJKTEBSDB01]
Logical device ID=6006016049C03100CFA640D1CF66E211 [EbsProdOraData2]
state=alive; policy=CLAROpt; queued-IOs=0
Owner: default=SP A, current=SP A Array failover mode: 4
==============================================================================
--------------- Host --------------- - Stor - -- I/O Path -- -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
3086 pci@400/pci@2/pci@0/pci@1/pci@0/pci@2/SUNW,qlc@0/fp@0,0 c5t5006016C3EA0759Fd10s0 SP B4 active alive 0 0
3081 pci@400/pci@1/pci@0/pci@4/pci@0/pci@2/SUNW,qlc@0,1/fp@0,0 c4t500601613EA0759Fd10s0 SP A1 active alive 0 0
3094 pci@400/pci@2/pci@0/pci@3/pci@0/pci@2/SUNW,qlc@0,1/fp@0,0 c10t500601693EA0759Fd10s0 SP B1 active alive 0 0
3080 pci@400/pci@2/pci@0/pci@1/pci@0/pci@2/SUNW,qlc@0,1/fp@0,0 c6t500601673EA0759Fd10s0 SP A7 active alive 0 0
3082 pci@400/pci@2/pci@0/pci@2/pci@0/pci@2/SUNW,qlc@0/fp@0,0 c7t500601643EA0759Fd10s0 SP A4 active alive 0 0
3083 pci@400/pci@2/pci@0/pci@2/pci@0/pci@2/SUNW,qlc@0,1/fp@0,0 c8t5006016F3EA0759Fd10s0 SP B7 active alive 0 0
3092 pci@400/pci@2/pci@0/pci@3/pci@0/pci@2/SUNW,qlc@0/fp@0,0 c9t500601653EA0759Fd10s0 SP A5 active alive 0 0
3090 pci@400/pci@1/pci@0/pci@4/pci@0/pci@2/SUNW,qlc@0/fp@0,0 c3t5006016D3EA0759Fd10s0 SP B5 active alive 0 0

Pseudo name=emcpower10a
VNX ID=CKM00123201530 [GGJKTEBSDB01]
Logical device ID=6006016049C031009F91568BCF66E211 [EbsProdOraLogB]
state=alive; policy=CLAROpt; queued-IOs=0
Owner: default=SP A, current=SP A Array failover mode: 4
==============================================================================
--------------- Host --------------- - Stor - -- I/O Path -- -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
3086 pci@400/pci@2/pci@0/pci@1/pci@0/pci@2/SUNW,qlc@0/fp@0,0 c5t5006016C3EA0759Fd6s0 SP B4 active alive 0 0
3081 pci@400/pci@1/pci@0/pci@4/pci@0/pci@2/SUNW,qlc@0,1/fp@0,0 c4t500601613EA0759Fd6s0 SP A1 active alive 0 0
3094 pci@400/pci@2/pci@0/pci@3/pci@0/pci@2/SUNW,qlc@0,1/fp@0,0 c10t500601693EA0759Fd6s0 SP B1 active alive 0 0
3080 pci@400/pci@2/pci@0/pci@1/pci@0/pci@2/SUNW,qlc@0,1/fp@0,0 c6t500601673EA0759Fd6s0 SP A7 active alive 0 0
3082 pci@400/pci@2/pci@0/pci@2/pci@0/pci@2/SUNW,qlc@0/fp@0,0 c7t500601643EA0759Fd6s0 SP A4 active alive 0 0
3083 pci@400/pci@2/pci@0/pci@2/pci@0/pci@2/SUNW,qlc@0,1/fp@0,0 c8t5006016F3EA0759Fd6s0 SP B7 active alive 0 0
3092 pci@400/pci@2/pci@0/pci@3/pci@0/pci@2/SUNW,qlc@0/fp@0,0 c9t500601653EA0759Fd6s0 SP A5 active alive 0 0
3090 pci@400/pci@1/pci@0/pci@4/pci@0/pci@2/SUNW,qlc@0/fp@0,0 c3t5006016D3EA0759Fd6s0 SP B5 active alive 0 0

log truncated

How to install QFS solaris 11

http://docs.oracle.com/cd/E71197_01/SAMIC/installpkgs.htm#SAMIC919

1. download packages in edelivery
2. unzip files
3. install using command # pkg install -g . --accept SUNWsamfs SUNWsamqassy in dir : /export/home/admin/qfs-source/Oracle-HSM_6.1/solaris_sparc/S11_ips/repo.samqfs
4. check result of installation

# pkg info SUNWsamfs
Name: SUNWsamfs
Summary: StorageTek QFS and Oracle HSM software
Description: Oracle Hierarchical Storage Manager
Category: System/File System
State: Installed
Publisher: samqfs
Version: 6.1
Build Release: 5.11
Branch: None
Packaging Date: March 25, 2016 05:36:05 AM
Last Install Time: December 22, 2016 06:41:32 AM
Size: 70.81 MB
FMRI: pkg://samqfs/SUNWsamfs@6.1,5.11:20160325T053605Z

# pkg info SUNWsamqassy
Name: SUNWsamqassy
Summary: StorageTek QFS and Oracle HSM IPS assembly services
Description: Oracle Hierarchical Storage Manager Assembly Services
Category: System/File System
State: Installed
Publisher: samqfs
Version: 6.1
Build Release: 5.11
Branch: None
Packaging Date: March 25, 2016 05:47:54 AM
Last Install Time: December 22, 2016 06:41:32 AM
Size: 15.14 kB
FMRI: pkg://samqfs/SUNWsamqassy@6.1,5.11:20160325T054754Z


go to directory below 
/opt/SUNWsamfs/util
5. run # ./sam-qfs-post-install

Add volume ASM Solaris 10


1. check new disk  / scan new disk
dhartisdb01 and dhartisdb02
---------------------------------
root@dhartisdb02:/dev/rdsk# echo |format
Searching for disks...done

c5t60060E80054857000000485700000B00d0: configured with capacity of 199.99GB |
c5t60060E80054857000000485700000B01d0: configured with capacity of 49.99GB   | ===> this is new disks


AVAILABLE DISK SELECTIONS:
0. c5t5000C5003A38DCBBd0
/scsi_vhci/disk@g5000c5003a38dcbb
1. c5t5000C5003A217863d0
-----------------------------------

2. label it

root@dhartisdb02:/dev/rdsk# format c5t60060E80054857000000485700000B00d0

c5t60060E80054857000000485700000B00d0: configured with capacity of 199.99GB
selecting c5t60060E80054857000000485700000B00d0
[disk formatted]


FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
! - execute , then return
quit
format> label
Ready to label disk, continue? y

format> p


PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
! - execute , then return
quit
partition> p
Current partition table (default):
Total disk cylinders available: 54611 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 34 131.25MB (35/0/0) 268800
1 swap wu 35 - 69 131.25MB (35/0/0) 268800
2 backup wu 0 - 54610 199.99GB (54611/0/0) 419412480
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 usr wm 70 - 54610 199.74GB (54541/0/0) 418874880
7 unassigned wm 0 0 (0/0/0) 0

partition>

3. check slices on the disk that will assign to ASM and make sure not started from cylinder 0
==> 6 usr wm 70 - 54610 199.74GB (54541/0/0) 418874880

4. we use slice6 due to not started form 0 and same with existing configuration ASM disks
# ls -lL c5t60060E80054857000000485700000B00d0s6

root@dhartisdb02:/dev/rdsk# ls -lL c5t60060E80054857000000485700000B00d0s6
crw-r----- 1 root sys 118, 254 Jul 27 11:46 c5t60060E80054857000000485700000B00d0s6
root@dhartisdb02:/dev/rdsk#

5. change owner from root:sys to oracle:oinstall
# chown oracle:oinstall c5t60060E80054857000000485700000B00d0s6


------- before
root@dhartisdb02:/dev/rdsk# ls -lL |grep oracle
crw-rw---- 1 oracle oinstall 118, 222 May 30 2012 c5t60060E8006D732000000D73200000100d0s6
crw-rw---- 1 oracle oinstall 118, 214 May 30 2012 c5t60060E8006D732000000D73200000101d0s6
crw-rw---- 1 oracle oinstall 118, 206 May 30 2012 c5t60060E8006D732000000D73200000102d0s6
crw-rw---- 1 oracle oinstall 118, 198 Jul 27 17:31 c5t60060E8006D732000000D73200000103d0s6
crw-rw---- 1 oracle oinstall 118, 190 May 30 2012 c5t60060E8006D732000000D73200000104d0s6
crw-rw---- 1 oracle oinstall 118, 182 May 30 2012 c5t60060E8006D732000000D73200000105d0s6
crw-rw---- 1 oracle oinstall 118, 174 Jul 27 17:31 c5t60060E8006D732000000D73200000106d0s6
crw-rw---- 1 oracle oinstall 118, 166 May 30 2012 c5t60060E8006D732000000D73200000107d0s6
crw-rw---- 1 oracle oinstall 118, 158 May 30 2012 c5t60060E8006D732000000D73200000108d0s6
crw-rw---- 1 oracle oinstall 118, 150 Jul 27 17:31 c5t60060E8006D732000000D73200000109d0s6
crw-rw---- 1 oracle oinstall 118, 142 May 30 2012 c5t60060E8006D732000000D7320000010Ad0s6
crw-rw---- 1 oracle oinstall 118, 134 May 30 2012 c5t60060E8006D732000000D7320000010Bd0s6
crw-rw---- 1 oracle oinstall 118, 126 Jun 9 22:05 c5t60060E8006D732000000D7320000010Cd0s6
crw-rw---- 1 oracle oinstall 118, 118 Jul 22 14:35 c5t60060E8006D732000000D7320000010Dd0s6
crw-rw---- 1 oracle oinstall 118, 110 Jul 27 14:36 c5t60060E8006D732000000D7320000010Ed0s6
crw-rw---- 1 oracle oinstall 118, 102 Jun 30 08:31 c5t60060E8006D732000000D7320000010Fd0s6

------- after

root@dhartisdb02:/dev/rdsk# ls -lL |grep oracle
crw-r----- 1 oracle oinstall 118, 254 Jul 27 17:32 c5t60060E80054857000000485700000B00d0s6
crw-rw---- 1 oracle oinstall 118, 222 May 30 2012 c5t60060E8006D732000000D73200000100d0s6
crw-rw---- 1 oracle oinstall 118, 214 May 30 2012 c5t60060E8006D732000000D73200000101d0s6
crw-rw---- 1 oracle oinstall 118, 206 May 30 2012 c5t60060E8006D732000000D73200000102d0s6
crw-rw---- 1 oracle oinstall 118, 198 Jul 27 17:32 c5t60060E8006D732000000D73200000103d0s6
crw-rw---- 1 oracle oinstall 118, 190 May 30 2012 c5t60060E8006D732000000D73200000104d0s6
crw-rw---- 1 oracle oinstall 118, 182 May 30 2012 c5t60060E8006D732000000D73200000105d0s6
crw-rw---- 1 oracle oinstall 118, 174 Jul 27 17:32 c5t60060E8006D732000000D73200000106d0s6
crw-rw---- 1 oracle oinstall 118, 166 May 30 2012 c5t60060E8006D732000000D73200000107d0s6
crw-rw---- 1 oracle oinstall 118, 158 May 30 2012 c5t60060E8006D732000000D73200000108d0s6
crw-rw---- 1 oracle oinstall 118, 150 Jul 27 17:32 c5t60060E8006D732000000D73200000109d0s6
crw-rw---- 1 oracle oinstall 118, 142 May 30 2012 c5t60060E8006D732000000D7320000010Ad0s6
crw-rw---- 1 oracle oinstall 118, 134 May 30 2012 c5t60060E8006D732000000D7320000010Bd0s6
crw-rw---- 1 oracle oinstall 118, 126 Jun 9 22:05 c5t60060E8006D732000000D7320000010Cd0s6
crw-rw---- 1 oracle oinstall 118, 118 Jul 22 14:35 c5t60060E8006D732000000D7320000010Dd0s6
crw-rw---- 1 oracle oinstall 118, 110 Jul 27 14:36 c5t60060E8006D732000000D7320000010Ed0s6
crw-rw---- 1 oracle oinstall 118, 102 Jun 30 08:31 c5t60060E8006D732000000D7320000010Fd0s6

5. change mode ke 660
chmod 660 c5t60060E80054857000000485700000B00d0s6

root@dhartisdb02:/dev/rdsk# ls -lL |grep oracle
crw-rw---- 1 oracle oinstall 118, 254 Jul 27 17:32 c5t60060E80054857000000485700000B00d0s6
crw-rw---- 1 oracle oinstall 118, 222 May 30 2012 c5t60060E8006D732000000D73200000100d0s6
crw-rw---- 1 oracle oinstall 118, 214 May 30 2012 c5t60060E8006D732000000D73200000101d0s6
crw-rw---- 1 oracle oinstall 118, 206 May 30 2012 c5t60060E8006D732000000D73200000102d0s6
crw-rw---- 1 oracle oinstall 118, 198 Jul 27 17:36 c5t60060E8006D732000000D73200000103d0s6
crw-rw---- 1 oracle oinstall 118, 190 May 30 2012 c5t60060E8006D732000000D73200000104d0s6
crw-rw---- 1 oracle oinstall 118, 182 May 30 2012 c5t60060E8006D732000000D73200000105d0s6
crw-rw---- 1 oracle oinstall 118, 174 Jul 27 17:36 c5t60060E8006D732000000D73200000106d0s6
crw-rw---- 1 oracle oinstall 118, 166 May 30 2012 c5t60060E8006D732000000D73200000107d0s6
crw-rw---- 1 oracle oinstall 118, 158 May 30 2012 c5t60060E8006D732000000D73200000108d0s6
crw-rw---- 1 oracle oinstall 118, 150 Jul 27 17:36 c5t60060E8006D732000000D73200000109d0s6
crw-rw---- 1 oracle oinstall 118, 142 May 30 2012 c5t60060E8006D732000000D7320000010Ad0s6
crw-rw---- 1 oracle oinstall 118, 134 May 30 2012 c5t60060E8006D732000000D7320000010Bd0s6
crw-rw---- 1 oracle oinstall 118, 126 Jun 9 22:05 c5t60060E8006D732000000D7320000010Cd0s6
crw-rw---- 1 oracle oinstall 118, 118 Jul 22 14:35 c5t60060E8006D732000000D7320000010Dd0s6
crw-rw---- 1 oracle oinstall 118, 110 Jul 27 14:36 c5t60060E8006D732000000D7320000010Ed0s6
crw-rw---- 1 oracle oinstall 118, 102 Jun 30 08:31 c5t60060E8006D732000000D7320000010Fd0s6


6. create soft link to ASM directory
$ ln -s {/path/to/file-name} {link-name} ====> WARNING !!!

su - oracle
ln -s /dev/rdsk/c5t60060E80054857000000485700000B00d0s6 new-data1


------ before link created
root@dhartisdb02:/oracle/oradata/hartis# ls -ltrh
total 32
lrwxrwxrwx 1 oracle oinstall 49 May 30 2012 ocr_vdisk1 -> /dev/rdsk/c5t60060E8006D732000000D73200000109d0s6
lrwxrwxrwx 1 oracle oinstall 49 May 30 2012 ocr_vdisk2 -> /dev/rdsk/c5t60060E8006D732000000D73200000106d0s6
lrwxrwxrwx 1 oracle oinstall 49 May 30 2012 ocr_vdisk3 -> /dev/rdsk/c5t60060E8006D732000000D73200000103d0s6
lrwxrwxrwx 1 oracle oinstall 49 May 30 2012 ocr_vdisk4 -> /dev/rdsk/c5t60060E8006D732000000D73200000100d0s6
lrwxrwxrwx 1 oracle oinstall 49 May 30 2012 data_disk1 -> /dev/rdsk/c5t60060E8006D732000000D7320000010Dd0s6
lrwxrwxrwx 1 oracle oinstall 49 May 30 2012 data_disk2 -> /dev/rdsk/c5t60060E8006D732000000D7320000010Ed0s6
lrwxrwxrwx 1 oracle oinstall 49 May 30 2012 data_disk3 -> /dev/rdsk/c5t60060E8006D732000000D7320000010Fd0s6
lrwxrwxrwx 1 oracle oinstall 49 May 30 2012 reco_disk1 -> /dev/rdsk/c5t60060E8006D732000000D7320000010Ad0s6
lrwxrwxrwx 1 oracle oinstall 49 May 30 2012 reco_disk2 -> /dev/rdsk/c5t60060E8006D732000000D7320000010Bd0s6
lrwxrwxrwx 1 oracle oinstall 49 May 30 2012 reco_disk3 -> /dev/rdsk/c5t60060E8006D732000000D73200000108d0s6
lrwxrwxrwx 1 oracle oinstall 49 May 30 2012 reco_disk4 -> /dev/rdsk/c5t60060E8006D732000000D73200000107d0s6
lrwxrwxrwx 1 oracle oinstall 49 May 30 2012 reco_disk5 -> /dev/rdsk/c5t60060E8006D732000000D73200000105d0s6
lrwxrwxrwx 1 oracle oinstall 49 May 30 2012 reco_disk6 -> /dev/rdsk/c5t60060E8006D732000000D73200000104d0s6
lrwxrwxrwx 1 oracle oinstall 49 May 30 2012 reco_disk7 -> /dev/rdsk/c5t60060E8006D732000000D73200000102d0s6
lrwxrwxrwx 1 oracle oinstall 49 May 30 2012 reco_disk8 -> /dev/rdsk/c5t60060E8006D732000000D73200000101d0s6
lrwxrwxrwx 1 oracle oinstall 49 May 30 2012 arch_disk1 -> /dev/rdsk/c5t60060E8006D732000000D7320000010Cd0s6
root@dhartisdb02:/oracle/oradata/hartis#

======= after

oracle@dhartisdb02 $ ln -s /dev/rdsk/c5t60060E80054857000000485700000B00d0s6 new-data1
oracle@dhartisdb02 $ ls -la
total 38
drwxr-xr-x 2 oracle oinstall 512 Jul 27 18:02 .
drwxr-xr-x 3 oracle oinstall 512 Mar 24 2012 ..
lrwxrwxrwx 1 oracle oinstall 49 May 30 2012 arch_disk1 -> /dev/rdsk/c5t60060E8006D732000000D7320000010Cd0s6
lrwxrwxrwx 1 oracle oinstall 49 May 30 2012 data_disk1 -> /dev/rdsk/c5t60060E8006D732000000D7320000010Dd0s6
lrwxrwxrwx 1 oracle oinstall 49 May 30 2012 data_disk2 -> /dev/rdsk/c5t60060E8006D732000000D7320000010Ed0s6
lrwxrwxrwx 1 oracle oinstall 49 May 30 2012 data_disk3 -> /dev/rdsk/c5t60060E8006D732000000D7320000010Fd0s6
lrwxrwxrwx 1 oracle oinstall 49 Jul 27 18:02 new-data1 -> /dev/rdsk/c5t60060E80054857000000485700000B00d0s6
lrwxrwxrwx 1 oracle oinstall 49 May 30 2012 ocr_vdisk1 -> /dev/rdsk/c5t60060E8006D732000000D73200000109d0s6
lrwxrwxrwx 1 oracle oinstall 49 May 30 2012 ocr_vdisk2 -> /dev/rdsk/c5t60060E8006D732000000D73200000106d0s6
lrwxrwxrwx 1 oracle oinstall 49 May 30 2012 ocr_vdisk3 -> /dev/rdsk/c5t60060E8006D732000000D73200000103d0s6
lrwxrwxrwx 1 oracle oinstall 49 May 30 2012 ocr_vdisk4 -> /dev/rdsk/c5t60060E8006D732000000D73200000100d0s6
lrwxrwxrwx 1 oracle oinstall 49 May 30 2012 reco_disk1 -> /dev/rdsk/c5t60060E8006D732000000D7320000010Ad0s6
lrwxrwxrwx 1 oracle oinstall 49 May 30 2012 reco_disk2 -> /dev/rdsk/c5t60060E8006D732000000D7320000010Bd0s6
lrwxrwxrwx 1 oracle oinstall 49 May 30 2012 reco_disk3 -> /dev/rdsk/c5t60060E8006D732000000D73200000108d0s6
lrwxrwxrwx 1 oracle oinstall 49 May 30 2012 reco_disk4 -> /dev/rdsk/c5t60060E8006D732000000D73200000107d0s6
lrwxrwxrwx 1 oracle oinstall 49 May 30 2012 reco_disk5 -> /dev/rdsk/c5t60060E8006D732000000D73200000105d0s6
lrwxrwxrwx 1 oracle oinstall 49 May 30 2012 reco_disk6 -> /dev/rdsk/c5t60060E8006D732000000D73200000104d0s6
lrwxrwxrwx 1 oracle oinstall 49 May 30 2012 reco_disk7 -> /dev/rdsk/c5t60060E8006D732000000D73200000102d0s6
lrwxrwxrwx 1 oracle oinstall 49 May 30 2012 reco_disk8 -> /dev/rdsk/c5t60060E8006D732000000D73200000101d0s6


Minggu, 24 Maret 2019

Growfs solaris 10

Extend Volume / Lun di STK 7420,
Storage team extended volume 600144F09227C6E30000508FD88A000A,
Previous size 64GB, extended 128GB


1. umount , kalau tidak di umount nanti minta fsck
2. format, choose disk
3. choose type, choose Auto configure
5. and then label it,
6. mounted
7. and perform growfs

detail below
=============

root@gzgfmscimb02 # format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
0. c0t5000CCA03C092CCCd0 solaris
/scsi_vhci/disk@g5000cca03c092ccc
/dev/chassis//SYS/SASBP/HDD0/disk
1. c0t5000CCA03C08973Cd0 solaris
/scsi_vhci/disk@g5000cca03c08973c
/dev/chassis//SYS/SASBP/HDD1/disk
2. c0t5000CCA03C08B55Cd0
/scsi_vhci/disk@g5000cca03c08b55c
/dev/chassis//SYS/SASBP/HDD2/disk
3. c0t5000CCA03C080F5Cd0
/scsi_vhci/disk@g5000cca03c080f5c
/dev/chassis//SYS/SASBP/HDD3/disk
4. c0t600144F09227C6E3000050B8C5D40016d0
/scsi_vhci/ssd@g600144f09227c6e3000050b8c5d40016
5. c0t600144F09227C6E30000508FD7BD0009d0 db2c1v1
/scsi_vhci/ssd@g600144f09227c6e30000508fd7bd0009
6. c0t600144F09227C6E30000508FD88A000Ad0 db2c1v2
/scsi_vhci/ssd@g600144f09227c6e30000508fd88a000a
7. c0t600144F09227C6E30000508FD6060003d0 ap2c1v1
/scsi_vhci/ssd@g600144f09227c6e30000508fd6060003

truncated

19. c0t600144F09227C6E30000508FDB820013d0 db3c2v5
/scsi_vhci/ssd@g600144f09227c6e30000508fdb820013
20. c0t600144F09227C6E30000508FDBA10014d0 db3c2v6
/scsi_vhci/ssd@g600144f09227c6e30000508fdba10014
Specify disk (enter its number): 6
selecting c0t600144F09227C6E30000508FD88A000Ad0: db2c1v2
[disk formatted]


FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show disk ID
volname - set 8-character volume name
! - execute , then return
quit
format> type


AVAILABLE DRIVE TYPES:
0. Auto configure
1. Quantum ProDrive 80S
2. Quantum ProDrive 105S
3. CDC Wren IV 94171-344
4. SUN0104
5. SUN0207
6. SUN0327
7. SUN0340
8. SUN0424
9. SUN0535
10. SUN0669
11. SUN1.0G
12. SUN1.05
13. SUN1.3G
14. SUN2.1G
15. SUN2.9G
16. Zip 100
17. Zip 250
18. Peerless 10GB
19. SUN600G
20. SUN-ZFS Storage 7420-1.0
21. SUN-ZFS Storage 7420-1.0
22. SUN-ZFS Storage 7420-1.0
23. SUN-ZFS Storage 7420-1.0
24. SUN-ZFS Storage 7420-1.0
25. other
Specify disk type (enter its number)[23]: 0
c0t600144F09227C6E30000508FD88A000Ad0: configured with capacity of 127.92GB

selecting c0t600144F09227C6E30000508FD88A000Ad0: db2c1v2
[disk formatted]
format> verirfy

Primary label contents:

Volume name = < db2c1v2>
ascii name =
pcyl = 4160
ncyl = 4158
acyl = 2
nhead = 254
nsect = 254
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 4 157.51MB (5/0/0) 322580
1 swap wu 5 - 9 157.51MB (5/0/0) 322580
2 backup wu 0 - 4157 127.92GB (4158/0/0) 268257528
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 usr wm 10 - 4157 127.61GB (4148/0/0) 267612368
7 unassigned wm 0 0 (0/0/0) 0

format> label
Ready to label disk, continue? y

format> verify

Primary label contents:

Volume name = < db2c1v2>
ascii name =
pcyl = 4160
ncyl = 4158
acyl = 2
nhead = 254
nsect = 254
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 4 157.51MB (5/0/0) 322580
1 swap wu 5 - 9 157.51MB (5/0/0) 322580
2 backup wu 0 - 4157 127.92GB (4158/0/0) 268257528
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 usr wm 10 - 4157 127.61GB (4148/0/0) 267612368
7 unassigned wm 0 0 (0/0/0) 0

format>


login to host
==============

root@dbgfmscimb02:~# mount /dev/dsk/c2d2s2 /u02
root@dbgfmscimb02:~# df -h
Filesystem Size Used Available Capacity Mounted on
rpool/ROOT/solaris 270G 4.9G 108G 5% /
/devices 0K 0K 0K 0% /devices
/dev 0K 0K 0K 0% /dev
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 16G 2.5M 16G 1% /system/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
fd 0K 0K 0K 0% /dev/fd
rpool/ROOT/solaris/var
270G 250M 108G 1% /var
swap 16G 0K 16G 0% /tmp
rpool/export 270G 32K 108G 1% /export
rpool/export/home 270G 38K 108G 1% /export/home
rpool/export/home/admin
270G 134G 108G 56% /export/home/admin
rpool/export/home/appldev1
270G 38K 108G 1% /export/home/appldev1
rpool/export/home/appldev2
270G 40K 108G 1% /export/home/appldev2
rpool/export/home/orcldev1
270G 2.2M 108G 1% /export/home/orcldev1
rpool/export/home/orcldev2
270G 45K 108G 1% /export/home/orcldev2
rpool/export/home/orclsit
270G 37K 108G 1% /export/home/orclsit
rpool 270G 73K 108G 1% /rpool
/dev/dsk/c2d1s2 378G 127G 249G 34% /u01
/dev/dsk/c2d2s2 63G 44G 19G 71% /u02


root@dbgfmscimb02:~# growfs -M /u01 /dev/rdsk/c2d2s2
Warning: 1800 sector(s) in last cylinder unallocated
/dev/rdsk/c2d2s2: 268257528 sectors in 43662 cylinders of 48 tracks, 128 sectors
130985.1MB in 2729 cyl groups (16 c/g, 48.00MB/g, 5824 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 787488, 885920,
Initializing cylinder groups:
......................................................
super-block backups for last 10 cylinder groups at:
267292576, 267391008, 267489440, 267587872, 267686304, 267784736, 267883168,
267981600, 268080032, 268178464
root@dbgfmscimb02:~# df -h
Filesystem Size Used Available Capacity Mounted on
rpool/ROOT/solaris 270G 4.9G 108G 5% /
/devices 0K 0K 0K 0% /devices
/dev 0K 0K 0K 0% /dev
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 16G 2.5M 16G 1% /system/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
fd 0K 0K 0K 0% /dev/fd
rpool/ROOT/solaris/var
270G 250M 108G 1% /var
swap 16G 0K 16G 0% /tmp
rpool/export 270G 32K 108G 1% /export
rpool/export/home 270G 38K 108G 1% /export/home
rpool/export/home/admin
270G 134G 108G 56% /export/home/admin
rpool/export/home/appldev1
270G 38K 108G 1% /export/home/appldev1
rpool/export/home/appldev2
270G 40K 108G 1% /export/home/appldev2
rpool/export/home/orcldev1
270G 2.2M 108G 1% /export/home/orcldev1
rpool/export/home/orcldev2
270G 45K 108G 1% /export/home/orcldev2
rpool/export/home/orclsit
270G 37K 108G 1% /export/home/orclsit
rpool 270G 73K 108G 1% /rpool
/dev/dsk/c2d1s2 378G 127G 249G 34% /u01
/dev/dsk/c2d2s2 126G 44G 82G 35% /u02
root@dbgfmscimb02:~# exit
logout

reference link :
http://www.tofu.org/drupal/node/77

Problem : Cant boot After recovering root Pool snapshots in newrpool : no pool_props

Problem :
=========
{0} ok boot newrpoolhrdb02
NOTICE: Entering OpenBoot.
NOTICE: Fetching Guest MD from HV.
NOTICE: Starting additional cpus.
NOTICE: Initializing LDC services.
NOTICE: Probing PCI devices.
NOTICE: Finished PCI probing.


SPARC T5-4, No Keyboard
Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
OpenBoot 4.35.3, 63.0000 GB memory available, Serial #83497796.
Ethernet address 0:14:4f:fa:13:44, Host ID: 84fa1344.



Boot device: /virtual-devices@100/channel-devices@200/disk@4 File and args:

no pool_props

Evaluating:
The file just loaded does not appear to be executable.

solustion
========
recreate snapshot and restore again

Problem : S7-2L panic when ok boot rcdrom

Dear team,

we get panic system when we try to re-install this machine using rcdrom
{0} ok boot rcdrom
Boot device: /pci@300/pci@1/pci@0/pci@2/usb@0/hub@2/storage@1/disk@0 File and args:
SunOS Release 5.11 Version 11.3 64-bit
Copyright (c) 1983, 2016, Oracle and/or its affiliates. All rights reserved.
NOTICE: Can not read the pool label from ''
NOTICE: zfs_do_tboot: failed to import root pool, error 5.
NOTICE: spa_get_bootfs: can not get bootfs name
Cannot mount root on /pci@300/pci@1/pci@0/pci@2/usb@0/hub@2/storage@1/disk@0,0:a fstype zfs

panic[cpu0]/thread=20012000: vfs_mountroot: cannot mount root

Warning - stack not written to the dumpbuf
000000002000fa00 genunix:main+1dc (208a1c00, 20122eb8, 202f68c0, 0, 0, 1)
%l0-3: 0000000000000000 00000000203be000 0000000000000000 0000000010071400
%l4-7: 0000000020122c00 0000000010071400 0000000000000000 0000000000000000

Deferred dump not available.
dump subsystem not initialised
rebooting...

please help me to solve this issue

regards
Sysadmin

solution
======
ACTION PLAN (What, Why)
-------------------------------------------------------
Hi Sysadmin,

Please check the ILOM config:-

-> ls

/SP/services/kvms/host_storage_device
Targets:
remote

Properties:
mode = miniroot
status = operational

Commands:
cd
show

-> help mode
Properties:
mode : KVMS host storage mode
mode : Possible values = miniroot,remote,disabled
mode : User role required for set = a

If the mode is set to miniroot, then change it to "disabled".

-> set mode=disabled

After that, need to do reset-all in OBP. Then connect local iso image in KVMS storage of remote console, and do reset-all again before trying to boot rcdrom.

"reset-all" seems to be redundant but it is possible to run into various errors without doing it when using rcdrom.

Kind regards,
Oracle Support


----
referensi :
SPARC S7/T7 rKVM Storage redirection fails to boot with sol-11_3-text-sparc.iso (Doc ID 2102941.1)