Tutto-Unix
25 K
telnet a la lan
user root
passwd O&….
su – sms-svc
i log che chiede sun sono dentro cd $SMSLOGGER
varie directory A, B,……..
se non puoi entrare in console fai un ps -ef e vedi se c’è processo che la occupa
—————————————————————————————————————–
# Apr 16 00:37:02 2009 dvbh-prod1-sc0-hme0 dsmd[1860]-D(): [6312 17051811255294733 NOTICE xirDomain.cc 911] XIR dump: /var/opt/SUNWSMS/SMS1.5/adm/D/dump/dsmd.dump.090416.0037.02 ——————-> altro problema capitato
——————————————————————————————————————
#Comandi h3mis169 SC e explorer esteso
explorer -w scextended
Ciao,
purtroppo non si sono raccolti i dati lato sc.
Potete a questo punto eseguire questi comandi singolarmente?
showboards -v
showplatform -v
showenvironment
showsc
showerrorbuffer
showlogs
—————————————————————————————————————
bash-2.05$ setkeyswitch -d f on
Powering on: CSB at CS0
Already powered on: CSB at CS0
Powering on: CSB at CS1
Already powered on: CSB at CS1
Powering on: EXB at EX14
Powering on: HPCI+ at IO14
Powering on: CPU at SB14
………………………………………………
………………………………………….
structures in Slot IO14…
Writing domain information to PCD…
CPU_Brds: Proc Mem P/B: 3/1 3/0 2/1 2/0 1/1 1/0 0/1 0/0
Slot Gen 3210 /L: 10 10 10 10 10 10 10 10 CDC
SB14: P PPPP PP PP PP PP PP PP PP PP P
I/O_Brds: IOC P1/Bus/Adapt IOC P0/Bus/Adapt
Slot Gen Type P1 B1/10 B0/10 P0 B1/eb10 B0/10 (e=ENet, b=BBC)
IO14: P hsPCI+ P p _p p _e P p PP_p p _e
Configured in 333 with 4 procs, 16.000 GBytes, 2 IO adapters.
Interconnect frequency is 149.978 MHz, Measured.
Golden sram is on Slot IO14.
POST (level=16, verbose=40) execution time 3:32
bash-2.05$ showplatform
PLATFORM:
=========
Platform Type: Sun Fire E25K
CSN:
====
Chassis Serial Number: SFC241A2006
COD:
====
Chassis HostID: 5014936C47010
Proc RTUs installed: 0
PROC Headroom Quantity: 0
Proc RTUs reserved for domain A: 0
Proc RTUs reserved for domain B: 0
Proc RTUs reserved for domain C: 0
Proc RTUs reserved for domain D: 0
Proc RTUs reserved for domain E: 0
Proc RTUs reserved for domain F: 0
Proc RTUs reserved for domain G: 0
Proc RTUs reserved for domain H: 0
Proc RTUs reserved for domain I: 0
Proc RTUs reserved for domain J: 0
Proc RTUs reserved for domain K: 0
Proc RTUs reserved for domain L: 0
Proc RTUs reserved for domain M: 0
Proc RTUs reserved for domain N: 0
Proc RTUs reserved for domain O: 0
Proc RTUs reserved for domain P: 0
Proc RTUs reserved for domain Q: 0
Proc RTUs reserved for domain R: 0
Available Component List for Domains:
=====================================
Available Component List for domain h3mis680:
SB0 SB1 SB2 SB3 SB4 SB5 SB6 SB7 SB8 SB9 SB10 SB11 SB12 SB13 SB14 SB15 SB16 SB17
IO0 IO1 IO2 IO3 IO4 IO5 IO6 IO7 IO8 IO9 IO10 IO11 IO12 IO13 IO14 IO15 IO16 IO17
Available Component List for domain h3mis412:
SB0 SB1 SB2 SB3 SB4 SB5 SB6 SB7 SB8 SB9 SB10 SB11 SB12 SB13 SB14 SB15 SB16 SB17
IO0 IO1 IO2 IO3 IO4 IO5 IO6 IO7 IO8 IO9 IO10 IO11 IO12 IO13 IO14 IO15 IO16 IO17
Available Component List for domain h3mis701:
SB0 SB1 SB2 SB3 SB4 SB5 SB6 SB7 SB8 SB9 SB10 SB11 SB12 SB13 SB14 SB15 SB16 SB17
IO0 IO1 IO2 IO3 IO4 IO5 IO6 IO7 IO8 IO9 IO10 IO11 IO12 IO13 IO14 IO15 IO16 IO17
Available Component List for domain h3mis054:
SB0 SB1 SB2 SB3 SB4 SB5 SB6 SB7 SB8 SB9 SB10 SB11 SB12 SB13 SB14 SB15 SB16 SB17
IO0 IO1 IO2 IO3 IO4 IO5 IO6 IO7 IO8 IO9 IO10 IO11 IO12 IO13 IO14 IO15 IO16 IO17
Available Component List for domain h3mis728:
No System boards
No IO boards
Available Component List for domain h3mis717:
No System boards
No IO boards
Available Component List for domain h3mis725:
No System boards
No IO boards
Available Component List for domain h3mis709:
SB12 SB13
No IO boards
Available Component List for domain h3mis710:
SB11
No IO boards
Available Component List for domain J:
SB9 SB10
IO9 IO10
Available Component List for domain K:
No System boards
No IO boards
Available Component List for domain L:
No System boards
No IO boards
Available Component List for domain M:
No System boards
No IO boards
Available Component List for domain N:
No System boards
No IO boards
Available Component List for domain O:
No System boards
No IO boards
Available Component List for domain P:
SB14
No IO boards
Available Component List for domain Q:
No System boards
No IO boards
Available Component List for domain R:
No System boards
No IO boards
Domain Ethernet Addresses:
==========================
Domain ID Domain Tag Ethernet Address
A h3mis680 0:0:be:a8:78:f4
B h3mis412 0:0:be:a8:78:f5
C h3mis701 0:0:be:a8:78:f6
D h3mis054 0:0:be:a8:78:f7
E h3mis728 0:0:be:a8:78:f8
F h3mis717 0:0:be:a8:78:f9
G h3mis725 0:0:be:a8:78:fa
H h3mis709 0:0:be:a8:78:fb
I h3mis710 0:0:be:a8:78:fc
J - 0:0:be:a8:78:fd
K - 0:0:be:a8:78:fe
L - 0:0:be:a8:78:ff
M - 0:0:be:a8:79:0
N - 0:0:be:a8:79:1
O - 0:0:be:a8:79:2
P - 0:0:be:a8:79:3
Q - 0:0:be:a8:79:4
R - 0:0:be:a8:79:5
Domain configurations:
======================
Domain ID Domain Tag Solaris Nodename Domain Status
A h3mis680 h3mis680 Running Solaris
B h3mis412 - Powered Off
C h3mis701 - Powered Off
D h3mis054 h3mis054 Running Solaris
E h3mis728 h3mis728 Running Solaris
F h3mis717 - Running OBP
G h3mis725 h3mis725 Running Solaris
H h3mis709 h3mis709 Running Solaris
I h3mis710 h3mis710 Running Solaris
J - h3mis861 Running Solaris
K - - Powered Off
L - - Powered Off
M - - Powered Off
N - - Powered Off
O - - Powered Off
P - - Powered Off
Q - - Powered Off
R - - Powered Off
bash-2.05$ console d f
Invalid command line argument: d
optarg: d
usage:
console -d domain_indicator [[-f] | [-l] | [-g] | [-r]] [-e escapeChar]
console -h
bash-2.05$ console -d f
Trying to connect…
Connected to Domain Server.
Your console is in exclusive mode now.
{1c0} ok
{1c0} ok boot
Boot device: vx-rootdisk File and args:
Loading ufs-file-system package 1.4 04 Aug 1995 13:02:54.
FCode UFS Reader 1.11 97/07/10 16:19:15.
Loading: /platform/SUNW,Sun-Fire-15000/ufsboot
Loading: /platform/sun4u/ufsboot
SunOS Release 5.8 Version Generic_117350-58 64-bit
Copyright 1983-2003 Sun Microsystems, Inc. All rights reserved.
ERROR: Last Trap: Data Access Error
———————————————————————————————————-
- switch Vip
Mar 27 00:45:28 h3mis720 in.mpathd[463]: [ID 215189 daemon.error] The link has gone down on hme0
Mar 27 00:45:28 h3mis720 in.mpathd[463]: [ID 594170 daemon.error] NIC failure detected on hme0 of group prod
Mar 27 00:45:28 h3mis720 in.mpathd[463]: [ID 832587 daemon.error] Successfully failed over from NIC hme0 to NIC hme1
Mar 27 00:45:37 h3mis720 genunix: [ID 408822 kern.info] NOTICE: hme0: no fault in device; service available
Mar 27 00:45:37 h3mis720 genunix: [ID 611667 kern.info] NOTICE: hme0: Internal Transceiver Selected.
Mar 27 00:45:37 h3mis720 genunix: [ID 408822 kern.info] NOTICE: hme0: no fault external to device; service available
Mar 27 00:45:37 h3mis720 genunix: [ID 611667 kern.info] NOTICE: hme0: 100 Mbps full duplex link up
Mar 27 00:45:37 h3mis720 in.mpathd[463]: [ID 820239 daemon.error] The link has come up on hme0
Mar 27 00:45:52 h3mis720 in.mpathd[463]: [ID 299542 daemon.error] NIC repair detected on hme0 of group prod
Mar 27 00:47:49 h3mis720 in.mpathd[463]: [ID 215189 daemon.error] The link has gone down on hme1
Mar 27 00:47:49 h3mis720 in.mpathd[463]: [ID 594170 daemon.error] NIC failure detected on hme1 of group prod
Mar 27 00:47:49 h3mis720 in.mpathd[463]: [ID 832587 daemon.error] Successfully failed over from NIC hme1 to NIC hme0
Mar 27 00:47:58 h3mis720 genunix: [ID 408822 kern.info] NOTICE: hme1: no fault in device; service available
Mar 27 00:47:58 h3mis720 genunix: [ID 611667 kern.info] NOTICE: hme1: Internal Transceiver Selected.
Mar 27 00:47:58 h3mis720 genunix: [ID 408822 kern.info] NOTICE: hme1: no fault external to device; service available
Mar 27 00:47:58 h3mis720 genunix: [ID 611667 kern.info] NOTICE: hme1: 100 Mbps full duplex link up
Mar 27 00:47:58 h3mis720 in.mpathd[463]: [ID 820239 daemon.error] The link has come up on hme1
Mar 27 00:48:15 h3mis720 in.mpathd[463]: [ID 299542 daemon.error] NIC repair detected on hme1 of group prod
bash-3.00# cat /etc/path_to_inst | grep hme
“/pci@9c,600000/pci@1/SUNW,hme@0,1″ 0 “hme”
“/pci@bc,600000/pci@1/SUNW,hme@0,1″ 1 “hme”
come llegerlo
@bc ————–> b=exadecimale c=destra 600000 ————–> basso 7000000 ——–> alto
b=11 poi sottrai 1 e dividi per due
# altra possibile password di root
5uxt&mp
h3gdon12
# explorer
/opt/SUNWexplo/bin/explorer
———————————————————————————————
# sudo
/usr/local/sbin/visudo
/usr/local/etc/sudoers
/usr/local/bin/sudo
——————————————————————————————–
# tar -cvf (dove copi) (quello che vuoi copiare).
- tar impipato
#( cd /da_dove && tar cf – . ) | ( cd /a_dove && tar xvfp – )
——————————————————————————————–
# psrinfo | wc -l ——————> quante CPU ci sono
———————————————————————————————
# snoop
# snoop -d eth0 -o file_log 10.212.152.121 port 1111
1. capture packets between oomph and oops and puts it in a file named /tmp/snoop.out.
# snoop -v -o /tmp/snoop.out oomph oops
2. capture packets for a specific port:
# snoop -v -o /tmp/snoop.out port 25
3. display complete nfs packets
# snoop -v -i /tmp/snoop.out pkts nfs
4. gather nfs packets in verbose mode and put in new file named /tmp/nfs.out
# snoop -v -i /tmp/snoop.out pkts nfs -o /tmp/nfs.out
5. To capture packets between funky and pinky of type tcp or udp on port 80:
# snoop funky and pinky and port 80 and tcp or udp
Since the primitive port cannot be handled by the kernel filter, and there is also an OR
in the expression, a more efficeint way to filter is to move the OR to the end of the expression
and to use parenthesis to enforce the OR between tcp and udp:
# snoop funky and pinky and (tcp or udp) and port 80
6. vedere salita snoop
# snoop -i /tmp/file.log -v | more
———————————————————————————————-
# file grandi
find . -type f -ls | awk ‘{ print $7, $NF }’ | sort -k 1,1rn | head -n 10
If you don’t want recursion, then try this:
ls -l | awk ‘/^-/ { print $5, $NF }’ | sort -k 1,1rn | head -n 10
find . -mtime -10 -type f -mount -exec ls -l {} \; |more
find . -type f -mount -mtime -10 -size +1024 -exec ls -l {} \;|more
find . -type f -mount -mtime -10 -size +2000 -ls
du -kd |sort -rn |more
du -kd /export/home |sort -rn |more
find . -size +10000000c -xdev -exec ls -l {} \;
—————————————————————————————————-
# occupazione file system
/var/tmp
/var/utmx
/home/directory_user
/audit ———> kill delllo script no del demone, /usr/bin/bash /etc/security/audit_check_SUN.sh
# svuotamento utmpx
/usr/lib/acct/fwtmp < /var/adm/wtmpx > /tmp/wtmpx.ascii
tail -200 /tmp/wtmpx.ascii > /tmp/wtmpx.200
/usr/lib/acct/fwtmp -ci < /tmp/wtmpx.200 > /var/adm/wtmpx
——————————————————————————————————-
# Schede di rete
ndd -get /dev/hme link_status link_mode link_speed
ndd -set /dev/ce instance 4 link_speed 1000 ——–> velocità 1G
ndd -set /dev/ce instance 4 adv_autoneg_cap 1 ——–> autonegozazione a true
nelle macchine c’è /etc/init.d/h3g_tcpip
kstat -p | grep speed link fdx
netstat -i
lltstat -nvv ———-> sapere hb
cat /etc/hosts
ifconfig -a
ifconfig ce4 h3fas089 netmask + broadcast + up
—————————————————————————————————–
# Patch
root@avisic19 # patchadd -M . *-?? ——–> installa da quella directory
—————————————————————————————————–
iostat -En
—————————————————————————————————–
# sapere serial number macchina
sapere serial number: comando ——> sneep
—————————————————————————————————–
# path y multipath sotto veritas
vxdmpadm listctlr all ———-> lista i controller
vxdmpadm getdmpnode enclosure=enclr name —————–> lista i multipath
vxdmpadm getsubpaths ctlr=c2
vxdisk list
vxdisk list c2t50060E8003EB5E04d89s2
—————————————————————————————————–
# Network Interface ( schede di rete )
The following are Sun released NIC driver names:
hme – FEPS chip and 10/100baseT(100Mbps) fast Ethernet
qfe – Sun Quad FastEthernet
eri – Sun Ethernet Rio Interface 10/100 Base.
ce – GigaSwift Gigabit Ethernet 1.x .
vge – Gigabit Ethernet 1.x ,
ge – Gigabit Ethernet 2.x/3.x
gem – Gigabit Ethernet MAC 1000 Base
bge – The fourth generation of Sun Gigabit Ethernet products
dmfe – Davicom 10/100Mb Ethernet Drivers(use DM9102A Ethernet chipset)
e1000g – Intel Gigabit and 82546EB based 1000-baseT driver
nge – Gigabit Ethernet Driver in Solaris 10 x8
—————————————————————————————————–
# route ( rotte )
route add default 128.50.1.0 128.50.1.1 1
route add net 128.50.0.0 128.50.1.6 1
route change 128.50.1.6 128.50.1.5
route delete net 128.50.0.0 128.50.1.6
route flush
—————————————————————————————————-
# Kernel Parameters
Solaris 8
/etc/system
Solaris 10
/etc/system
projadd ………
/etc/project ————-> settings
/etc/user_attr ————-> associazioni user/project
17:53:41) Gabriele: http://www.akadia.com/services/ora_out_of_memory.html
(17:54:05) Gabriele: l’unica cosa che non è segnata in quel link
(17:54:09) Gabriele: è una modifica
(17:54:17) Gabriele: del file /etc/user_attr
(17:54:43) Gabriele: è valido per tutti i parametri definiti all’interno dei project
(17:54:58) Gabriele: quindi tutti quelli che riguardano semafiri o shared memori
(17:55:10) Gabriele: semafori o shared memory
Out of Memory Problems on Oracle 10 / Solaris 10
Many kernel parameters have been replaced by so called resource controls in Solaris 10. It is possible to change resource controls using the prctl command. All shared memory and semaphore settings are now handled via resource controls, so any entries regarding shared memory or semaphores (shm & sem) in /etc/system will be ignored.
Here is the procedure we followed to modify the kernel parameters on Solaris 10 / Oracle 10.2.0.2.
Unlike earlier releases of Solaris, most of the system parameters needed to run Oracle are already set properly, so the only one you need is the maximum shared memory parameter. In earlier versions this was called SHMMAX and was set by editing the /etc/system file and rebooting. With Solaris 10 you set this by modifying a «Resource Control Value». You can do this temporarily by using prctl, but that is lost at reboot so you will need to add the command to the oracle user’s .profile.
The other option is to create a default project for the oracle user.
# projadd -U oracle -K \
“project.max-shm-memory=(priv,4096MB,deny)” user.oracle
What this does:
* Makes a project named “user.oracle” in /etc/project with the user oracle as it’s only member.
# cat /etc/project
system:0::::
user.root:1::::
noproject:2::::
default:3::::
group.staff:10::::
user.oracle:100::oracle::project.max-shm-memory
=(priv,4294967296,deny)
* Because the name was of the form “user.username” it becomes the oracle user’s default project.
* The value of the maximum shared memory is set to 4GB, you might want to use a larger value here if you have more memory and swap.
* No reboot is needed, the user will get the new value
at their next login.
Now you can also modify the max-sem-ids Parameter:
# projmod -s -K “project.max-sem-ids=(priv,256,deny)” \
user.oracle
Check the Paramters as User oracle
$ prctl -i project user.oracle
project: 100: user.oracle
NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT
project.max-contracts
privileged 10.0K - deny -
system 2.15G max deny -
project.max-device-locked-memory
privileged 125MB - deny -
system 16.0EB max deny -
project.max-port-ids
privileged 8.19K - deny -
system 65.5K max deny -
project.max-shm-memory
privileged 4.00GB - deny -
system 16.0EB max deny -
project.max-shm-ids
privileged 128 - deny -
system 16.8M max deny -
project.max-msg-ids
privileged 128 - deny -
system 16.8M max deny -
project.max-sem-ids
privileged 256 - deny -
system 16.8M max deny -
project.max-crypto-memory
privileged 498MB - deny -
system 16.0EB max deny -
project.max-tasks
system 2.15G max deny -
project.max-lwps
system 2.15G max deny -
project.cpu-shares
privileged 1 - none -
system 65.5K max none -
zone.max-lwps
system 2.15G max deny -
zone.cpu-shares
privileged 1 - none -
Setting Kernel Parameters for Solaris 10 before installing Oracle 10G
Asked by sikyala in Sun Solaris
Tags: solaris, 10, kernel, oracle, parameters
I am trying to install oracle 10g in a solaris 10 environment and the instructions for setting the values for the kernel parameters in the system file are confusing me. In the installation guide it says:
On Solaris 10, verify that the kernel parameters shown in the following table are set to
values greater than or equal to the recommended value shown. The table also contains
the resource controls that replace the /etc/system file for a specific kernel
parameter.
Note: In Solaris 10, you are not required to make changes to the
/etc/system file to implement the System V TPC. Solaris 10 uses
the resource control facility for its implementation.
Table:
Parameter Replaced by Resource Control Recommended Value
noexec_user_stack NA 1
semsys:seminfo_semmni project.max-sem-ids 100
semsys:seminfo_semmsl process.max-sem-nsems 256
shmsys:shminfo_shmmax project.max-shm-memory 4294967295
shmsys:shminfo_shmmni project.max-shm-ids 100
It also says the following:
On Solaris 10, use the following procedure to view the current value specified for
resource controls, and to change them if necessary:
1. To view the current values of the resource control, enter the following commands:
# id -p // to verify the project id
uid=0(root) gid=0(root) projid=1 (user.root)
# prctl -n project.max-shm-memory -i project user.root
# prctl -n project.max-sem-ids -i project user.root
2. If you must change any of the current values, then:
a. To modify the value of max-shm-memory to 6 GB:
# prctl -n project.max-shm-memory -v 6gb -r -i project user.root
b. To modify the value of max-sem-ids to 256:
# prctl -n project.max-sem-ids -v 256 -r -i project user.root
Someone on another forum said check the following:
5. Check kernel parameters
set shmsys:shminfo_shmmax=4294967295
set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmmni=100
set shmsys:shminfo_shmseg=10
set semsys:seminfo_semmns=2000
set semsys:seminfo_semmsl=1000
set semsys:seminfo_semmni=100
set semsys:seminfo_semopm=100
set semsys:seminfo_semvmx=32767
——————————————————————————————————-
# ampliare file system
# vxprint -g dg_app_01 -ht
dm disk1 c0t1d0s2 auto 70975 143267904 -
dm disk2 c4t0d0s2 auto 70975 143267904 -
# df -k /app/oracle/
Filesystem kbytes used avail capacity Mounted on
/dev/vx/dsk/dg_app_01/vol_appora_01
8388608 5316304 2880370 65% /app/oracle
# vxassist -g dg_app_01 maxsize layout=mirror
# vxdg -g dg_app_01 free
# vxresize -bx -g dg_app_01 vol_appora_01 +2g
——————————————————————————————————
# SDS Set Boot device alias
eeprom “nvramrc=devalias mirror /pci@1c,600000/scsi@2/sd@1,0:a”
eeprom “use-nvramrc?=true”
eeprom boot-device=”rootdisk rootmirror”
1) Creating a boot alias using nvalias from the OpenBoot[TM] PROM (OBP)
command line.
Get the device path for the boot disk:
# ls -la /dev/dsk/cxtxdxsx
root@h3mis165 # ls -l /dev/dsk/c1t0d0s0
lrwxrwxrwx 1 root root 70 Oct 28 16:51 /dev/dsk/c1t0d0s0 -> ../../devices/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000004cf8ffa75,0:a
root@h3mis165 # ls -l /dev/dsk/c1t1d0s0
lrwxrwxrwx 1 root root 70 Oct 28 16:51 /dev/dsk/c1t1d0s0 -> ../../devices/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000004cf8fc915,0:a
root@h3mis165 #
ricordati cambiare pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000004cf8ffa75,0:a per
pci@8,600000/SUNW,qlc@2/fp@0,0/disk@w21000004cf8ffa75,0:a
{3} ok nvalias rootdisk /pci@8,600000/SUNW,qlc@2/fp@0,0/disk@w21000004cf8ffa75,0:a
{3} ok nvalias rootmirror /pci@8,600000/SUNW,qlc@2/fp@0,0/disk@w21000004cf8fc915,0:a
{3} ok reset-all
Write down the entire (physical) path to be used for the alias.
Shutdown the system to the ok prompt.
Create the alias:
ok nvalias <alias> <device-path>
Example:
ok nvalias newdisk /iommu@f,e0000000/sbus@f,e0001000/esp@f,800000/sd@3,0:a
or for PCI based systems:
ok nvalias newdisk /pci@1f,0/pci@1/scsi@3,1/disk@3,0
NOTE: Although format will show the pci device with a “sd” designation, a
translation
is made as the OBP’s device tree is ‘disk’. This is the only name that the
firmware
will understand.
Modify the NVRAM so that it boots from the new alias automatically:
ok setenv boot-device newdisk
ok reset
The above will be valid till you run set-defaults or nvunalias from the ok
prompt.
******************************************************************************
2) Alternate method for creating a boot alias using nvedit.
Use the NVRAM editor to create a script that will create the boot alias at
reset:
ok nvedit
0: devalias newdisk /iommu@f,e0000000/sbus@f,e0001000/esp@f,800000/sd@3,0:a
^c (control c)
ok nvstore
ok setenv use-nvramrc? true
ok reset
******************************************************************************
3) Alternate method for creating a boot alias using existing device aliases
provided
in the OpenBoot PROM.
Use the devalias command to identify the existing device aliases:
ok devalias
The device alias names are listed on the left side of the output. Any of the
device alias names that point to disk drives can be used as boot aliases.
Use one of the device alias names to set a new boot device:
ok setenv boot-device <new device alias name>
Display the new boot device alias:
ok printenv boot-device
Test the new boot alias by resetting the machine;
ok reset
Note: The device path above is an example only; you will not necessarily
have the same path.
Note: The “0:” in the nvedit example (method 2) is the line number; do not
type it as
part of your edit.
————————————————————————————————
# creazione raid1 e raid5 SDS
RAID 1
metadb -afc 3 c1t0d0s7 c1t1d0s7
metainit -f d10 1 1 c1t0d0s0
metainit d20 1 1 c1t1d0s0
metainit d0 -m d10
metaroot d0
lockfs -fa
init 6
metattach d0 d20
metainit -f d11 1 1 c1t0d0s1
metainit d21 1 1 c1t1d0s1
metainit d1 -m d11
metainit -f d13 1 1 c1t0d0s3
metainit d23 1 1 c1t1d0s3
metainit d3 -m d13
metainit -f d14 1 1 c1t0d0s4
metainit d24 1 1 c1t1d0s4
metainit d4 -m d14
metainit -f d15 1 1 c1t0d0s5
metainit d25 1 1 c1t1d0s5
metainit d5 -m d15
metainit -f d16 1 1 c1t0d0s6
metainit d26 1 1 c1t1d0s6
metainit d6 -m d16
metattach d1 d21
metattach d3 d23
metattach d4 d24
metattach d5 d25
metattach d6 d26
editar /etc/vfstab
# format crear slice 0 de los ultimos tres discos RAID 5
metainit d100 -r c1t2d0s0 c1t3d0s0 c1t4d0s0
metainit d110 -p d100 150G
metainit d111 -p d100 150G
newfs -m1 /dev/md/rdsk/d110
newfs -m1 /dev/md/rdsk/d111
mkdir /datos2
mkdir /copias
mount /dev/md/rdsk/d110 /datos2
mount /dev/md/rdsk/d111 /copias
recordarse de ponerlo en /etc/vfstab
creamos el metadisp d7 formato por metainit d7 9 1 c2t0d4s0 \
9 discos a 1 via 1 c2t0d5s0 \
1 c2t0d6s0 \
1 c2t0d7s0 \
1 c2t0d8s0 \
1 c2t0d9s0 \
1 c2t0d10s0 \
1 c2t0d25s0 \
1 c2t0d26s0
atachamos nuevo metainit d17 -p d7 20g (está al 95% : aumentar a 20g)
metainit d27 -p d7 20g (está al 88% : aumentar a 20g)
newfs -m 1 /dev/md/rdsk/d17
newfs -m 1 /dev/md/rdsk/d27
mkdir /mnt1
mkdir /mnt2
mount /dev/md/dsk/d17 /mnt1
mount /dev/md/dsk/d27 /mnt2
cd /u10
tar cf – . |( cd /mnt1;tar xf -)
cd /u11
tar cf – . |( cd /mnt2;tar xf -)
mirar tamaño y cambiar /etc/vfstab
metainit -f d110 1 1 c1t2d0s0
metainit d120 1 1 c1t3d0s0
metainit d100 -m d110
metattach d100 d120
metainit d101 -p d100 20g
newfs -m 1 /dev/md/rdsk/d101
mkdir /app
————————————————————————————————–
# no avevamo il /var come fs
creato partizione con format
mkfs -F ufs /dev/rdsk/c0t0d0s5
mount /dev/dsk/c0t0d0s5 /mnt
tar impipato /var a /mnt ————–> già sul dispositivo fisico
abbiamo fatto un init 6 per vedere se partiva bene
init 0
boot -sw
umount /var
rm del /var
reboot
————————————————————————————————-
* Find its process number:
feanor % ps ax | grep inetd
126 ?? Is 0:00.01 inetd
* Send the process a HUP signal:
feanor % sudo kill -HUP 126
————————————————————————————————-
Netmask
/etc/netmasks
10.218.208.0 255.255.254.0
10.219.88.0 255.255.248.0
ifconfig -a
ce0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.218.208.57 netmask fffffe00 broadcast 10.218.209.255
ether 0:3:ba:6c:79:a6
ce1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 10.219.90.223 netmask fffff800 broadcast 10.219.95.255
ether 0:3:ba:6c:79:a7
sergio@stmitalia-sergio:~/Software$ ipcalc 10.216.103.17/26
Address: 10.216.103.17 00001010.11011000.01100111.00 010001
Netmask: 255.255.255.192 = 26 11111111.11111111.11111111.11 000000 # linee ci interessa
Wildcard: 0.0.0.63 00000000.00000000.00000000.00 111111
=>
Network: 10.216.103.0/26 00001010.11011000.01100111.00 000000 # linea ci interessa
HostMin: 10.216.103.1 00001010.11011000.01100111.00 000001
HostMax: 10.216.103.62 00001010.11011000.01100111.00 111110
Broadcast: 10.216.103.63 00001010.11011000.01100111.00 111111
Hosts/Net: 62 Class A, Private Internet
#/etc/netmask
10.216.103.0 255.255.255.192
—————————————————————————————————-
# ufsdump om h3mis000
dalla h3mis000
# ssh -l root h3mis129 /usr/sbin/ufsdump 0fcu – / | dd obs=63k of=/dev/rmt/0n
meglio
# sudo su -
# ssh h3mis129 /usr/sbin/ufsdump 0fcu – / | dd obs=63k of=/dev/rmt/0n
# ssh h3mis133 /usr/sbin/ufsdump 0fcu – / | dd obs=63k of=/dev/rmt/1n
————————————————————————————————–
devfsadm -Ccdisk -v
cfgadm -al
vxdg list | awk ‘{ print $1 }’ > /tmp/pippo
————————————————————————————————–
XNTP
daemon /etc/init.d/xntpd ( start | stop )
ficheros configuracion /etc/inet/ntp.conf ntp.server ntp.client
estado ntpq -p
utility /usr/sbin/ntpq ntpdate ntptrace
ntpdate ip_server_ntp
Solaris 10 servizio
svcs | grep ntp
—————————————————————————————————
# enable start rsh / rlogin service on solaris 10
Add these to /etc/inetd.conf
# RSHD – rsh daemon (BSD protocols)
shell stream tcp nowait root /usr/sbin/in.rshd in.rshd
shell stream tcp6 nowait root /usr/sbin/in.rshd in.rshd ———> NO!!!
The inetd was not enabled, so a extra svcadm enable did the trick
% svcadm enable svc:/network/inetd:default
% svcadm enable svc:/network/login:rlogin
% svcadm enable svc:/network/shell:default
% svcadm enable svc:/network/login:rlogin
% svcadm refresh inetd
# enable start rsh / rlogin service on solaris 8
Add these to /etc/inetd.conf
shell stream tcp nowait root /usr/sbin/in.rshd in.rshd
kill -HUP inetd ( pid )
————————————————————————————————-
# enable new hardware check
Configure system to see drive
# devfsadm
### Prior to Solaris 8 try “# drvconfig; disks; devlinks”
drvconfig;devlinks;disks
vxdctl enable
———————————————————————————————–
# add user
creare user # useradd -c “oracle fus” -u 101 -g dba -d /oracle/FUS -m -s /bin/csh orafus
-c descrizione
-u userid
-g group
-d directory
-s shell
-m da permessi alla directory user
user
323 useradd -g 1030 -c “EU_Riccardo_Nagy-RU_Massimo_Teruzzi-LAA_Admin_Unix-Stefano_Dominioni” -d /home/nagyr -s /usr/bin/sh nagyr
324 passwd nagyr
325 useradd -g 1030 -c “EU_Massimo_Schenone-RU_Massimo_Teruzzi-LAA_Admin_Unix-Stefano_Dominioni” -d /home/schenonem -s /usr/bin/sh schenonem
326 useradd -g 1030 -c “EU_Massimo_Schenone-RU_Massimo_Teruzzi-LAA_Admin_Unix-Stefano_Dominioni” -d /home/schenonm -s /usr/bin/sh schenonm
327 passwd schenonm
328 useradd -g 1030 -c “EU_Massimo_Buongiorno-RU_Massimo_Teruzzi-LAA_Admin_Unix-Stefano_Dominioni” -d /home/buongiom -s /usr/bin/sh buongiom
329 passwd buongiom
330 usermod -u buongiom 4029
331 usermod -u schenonm 4030
332 usermod -u 4029 buongiom
333 usermod -u 4030 schenonm
334 usermod -u 4033 nagyr
# add group
# /usr/sbin/groupadd -g 3020 coders
————————————————————————————————–
# inode
# /usr/ucb/df -i
# df -F ufs -o i
—————————————————————————————————
# ufsdump ufsrestore
# ufsdump 0f – /opt/netcool | ( cd /probes_netcool ; ufsrestore xf – )
da dove a dove
—————————————————————————————————
# sapere cpu e memoria
# ps -e -o user,pid,ppid,pcpu,pmem,nlwp,vsz,s,rss,etime,time,args
—————————————————————————————————-
# PERMETTERE RSH
/.rhosts
/etc/default/login ——————> /dev/console
/etc/hosts ———————> entrata macchina
—————————————————————————————————
# Montare CDROM in un altra macchina
master # share -F nfs -o ro /cdrom
master # shareall
dal master [avitec04]/# mount -F hsfs -o ro /dev/dsk/c0t2d0s2 /cdrom/unnamed_cdrom
[avitec04]/# share /cdrom/unnamed_cdrom
[avitec04]/# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/md/dsk/d0 2052750 1711212 279956 86% /
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
mnttab 0 0 0 0% /etc/mnttab
/dev/md/dsk/d30 2052750 913603 1077565 46% /var
swap 858856 16 858840 1% /var/run
swap 858888 48 858840 1% /tmp
/dev/md/dsk/d40 4127894 2220691 1865925 55% /opt
/dev/md/dsk/d50 295447 1041 264862 1% /opt/openv
/dev/md/dsk/d60 10514108 9545390 863577 92% /export/fs/vol01
/dev/md/dsk/d70 10514108 8268665 2140302 80% /export/fs/vol02
/dev/dsk/c0t2d0s2 628288 628288 0 100% /cdrom/unnamed_cdrom
dal client bcndwh01_clon:/ # mount -F nfs avitec04:/cdrom/unnamed_cdrom /cdrom/unnamed_cdrom
bcndwh01_clon:/ # df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t0d0s0 1525647 823823 686568 55% /
/dev/dsk/c0t0d0s6 2568763 2048412 494664 81% /usr
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
/dev/dsk/c0t0d0s7 1525647 577579 932812 39% /var
swap 3566096 15336 3550760 1% /tmp
/dev/dsk/c1t0d60s0 10324620 1287038 8934336 13% /pruebaoracle
avitec04:/cdrom/unnamed_cdrom
628288 628288 0 100% /cdrom/unnamed_cdrom
—————————————————————————————————–
mt command
rmt command
backup ufsdump
# dovevamo fare il dump della h3mis452 e la cassetta era sulla h3mis000
sudo ssh h3mis452 “ufsdump 0uf – /dev/dsk/c1t0d0s0″ | dd bs=64b of=/dev/rmt/0n
ssh h3mis666 “ufsdump 0uf – /dev/dsk/c0t0d0s0â€| dd bs=64b of=/dev/rmt/0
ssh h3mis451 “ufsdump 0uf – /dev/dsk/c1t0d0s0″ > /space/sergio/h3mis451_20090112.dmp
ssh h3mis453 “ufsdump 0uf – /dev/dsk/c0t0d0s0″ > /space/pippo.dmp
bash-2.05$ sudo ufsrestore tf h3mis451_20090112.dmp
controllo del file dump
—————————————————————————————————-
# Script prereboot /space/scripts/pre-reboot.sh
bash-2.05$ hostname
h3mis000
bash-2.05$ pwd
/space/scripts
bash-2.05$ sudo ./pre-reboot.sh
Password:
Inserisci l’hostname su cui vuoi effetturare i controlli : h3mis719
Procedo
——————————————————————————————————
# Replica CRM h3mis412 NON USARE MEGLIO
Ciao,
ogni volta che un dg viene movimentato vengono eseguiti dei backups.
Su macchine che eseguono backup / replica ecc, questi files possono diventare pesanti ed occupare spazio sotto /.
E’ possibile cancellarli con questo comando :
find /etc/vx/cbr/bk/ -atime +10 -exec rm -rf {} \;
Ecco un esempio lanciato sulla replica h3mis412
bash-3.00# du -ks
378428 .
bash-3.00# find /etc/vx/cbr/bk/ -atime +10 -exec rm -rf {} \;
bash-3.00# du -ks
13769 .
————————————————————————————————-
# mailx sendmail
guarda configurazione /etc/mail/sendmail.cf di h3mis000
cambiare due parametri
# my official domain name
# … define this only if sendmail cannot automatically determine your domain
#Dj$w.Foo.COM
Dj$w.h3g.it
CP.
# “Smart” relay host (may be null)
#DSmailhost$?m.$m$.
DSmisrv007.ced.h3g.it
ls -l | mailx -s “report” sergio.dondoni.con@h3g.it
mailx -s “Test Email UUENCODE Attachment” somebloke@somewhere.com < email.msg
/etc/init.d/sendmail restart ——–> Solaris 8
svcadm restart sendmail ——–> Solaris 10
—————————————————————————————————–
# Audit
You can’t read audit files with vi. They are specialized formats. Do a man on “auditreduce” and “praudit”. auditreduce goes through and selects the needed info, “praudit” makes the info readablee.
So…
praudit -l <auditfilename> = shows you everything in the audit file (can be long) making each entry one line (useful for grepping and manipulating with scripts.)
auditreduce -c lo <auditfilename> | praudit -l = dump ONLY the login audits (-c for classes, lo for login) from <auditfilename> to praudit…which will print one line for each entry dumped to it.
auditreduce -d <date-time> <auditfilename> | praudit -l = dump only the audit entries from selected <date-time>
auditreduce -e <EUID> | praudit -l = only the log entries from effective User ID of <EUID>, ETC.ETC.ETC…you get the idea.
————————————————————————————————————
# hba
Solaris 10
# fcinfo hba-port
# luxadm -e port
# cfgadm -alv
# prtdiag -v
# cat /etc/path_to_inst
# prtconf
# luxadm qlgc
Found Path to 1 FC100/P, ISP2200, ISP23xx Devices
Opening Device: /devices/pci@8,600000/SUNW,qlc@4/fp@0,0:devctl
Detected FCode Version: ISP2200 FC-AL Host Adapter Driver: 1.12 01/01/16
Complete
————————————————————————————————————
# 25K
CRMprod3-sc0-hme0:sms-svc:15> env | grep -i sms
HOME=/export/home/sms-svc
PATH=/opt/SUNWSMS/bin:/usr/dt/bin:/usr/ccs/bin:/usr/sbin:/usr/bin:/usr/ucb:.
LOGNAME=sms-svc
MAIL=/var/mail/sms-svc
USER=sms-svc
SMSOPT=/opt/SUNWSMS
SMSETC=/etc/opt/SUNWSMS
SMSVAR=/var/opt/SUNWSMS
SMSLOGGER=/var/opt/SUNWSMS/adm
LD_LIBRARY_PATH=/opt/SUNWSMS/lib:/usr/lib
MANPATH=/opt/SUNWSMS/man:/usr/man
CRMprod3-sc0-hme0:sms-svc:16> pwd
/
CRMprod3-sc0-hme0:sms-svc:17> cd $SMSLOG
SMSLOG: Undefined variable
CRMprod3-sc0-hme0:sms-svc:18> ^[^C
CRMprod3-sc0-hme0:sms-svc:18> bash
bash-2.05$ cd $SMSLOGGER
bash-2.05$ pwd
/var/opt/SUNWSMS/adm
bash-2.05$ ls
A C E G I K M O Q anonymous platform
B D F H J L N P R h.tar
bash-2.05$ cd j
bash: cd: j: No such file or directory
bash-2.05$ cd J
bash-2.05$ ls
console dump messages post syslog wfailoutput
bash-2.05$ ls -ltr
total 5034
-rw-r--r-- 1 root sms 0 Apr 17 2006 syslog
drwxrwx---+ 2 root sms 512 Aug 27 2007 wfailoutput
drwxrwx---+ 2 root sms 512 Aug 27 2007 dump
drwxrwx---+ 2 root sms 1024 Jan 29 13:15 post
-rw-r--r-- 1 root bin 18139 Jan 29 13:28 messages
-rw-r--r-- 1 root sms 2547626 Jan 29 13:29 console
bash-2.05$ pwd
/var/opt/SUNWSMS/adm/J
bash-2.05$
-----------------------------------------------------------------------------------------------------
# rilascio LUN
# vxdisk -o alldgs list
# vxdg list
# vxdg destroy vxfencoorddg
# vxdiskunsetup c2t0d3
# dd if=/dev/zero of=/dev/rdsk/c2t0d3s2 bs=1024k count=500
---------------------------------------------------------------------------------------------------
lsvg -l oradatavg | grep raw | while read a away; do rmlv -f $a; done
-----------------------------------------------------------------------------------------------------
o List patches applied:
# patchadd -p
o To apply a patch
Untar the patch tar.Z
# patchadd <dir>
o To add a package
# pkgadd -d <package file>
o To add a package in tar format
# tar xvfz package.tar.Z
# pkgadd -d .
This will ask you which packages in the
current directory you wish to install.
o To remove a package
# pkgrm <package>
o To get info on a package
# pkginfo -x <package>
# pkginfo -l <package>
o To list all installed packages
# pkginfo
o To find out which package a file is in
# grep <file> /var/sadm/install/contents
o To find out what files are in a package
# grep <package> /var/sadm/install/contents
o To find out what runlevel you're in
# who -r
--------------------------------------------------------------------------------------------------------
How to Check Solaris Kernel bit (32 bit/64 bit)
To check if Solaris kernel is running in 32 bit mode or 64 bit from command line run the following:
#/usr/bin/isainfo –kv
64-bit sparcv9 kernel modules
The output "64 bit sparcv9" indicates that Solaris kernel is running in 64 bit mode. Here is the output of Solaris kernel running in 32 bit:
#/usr/bin/isainfo –kv
32-bit sparcv9 kernel modules
How to check Solaris kernel on x86 (Intel) platform :
bash-3.00# uname –m
i86pc
bash-3.00# /usr/bin/isainfo -kv
32-bit i386 kernel modules
In the example above Solaris Kernel is running in 32 bit on intel platform, printed as "32-bit" in the output.
How to check if Solaris kernel is configured to boot in 32 bit or 64:
The system is configured to boot the 64-bit kernel if the output from the eeprom command is either:
# /usr/sbin/eeprom | grep boot-file
boot-file: data not available
or
boot-file=kernel/sparcv9/unix
else if Solaris system is configured to boot using 32-bit kernel, the output from the eeprom command comes back as:
kernel/unix
---------------------------------------------------------------------------------------------------------------------
# Crontab
446 cd /etc/
447 more cron
448 more cron.d/cron.deny
449 vi cron.d/cron.deny
450 vi cron.d/cron.deny
451 vi cron.d/cron.allow
452 crontab -u beahb -l
453 crontab -l beahb
454 crontab -l beahb
455 crontab -e beahb
456 vi /etc/cron.d/at.allow
457 history
root@h3mis257 # pg /etc/cron.d/at.allow
oemxspot
beahb
root@h3mis257 # crontab -l beahb
root@h3mis257 # pg /etc/cron.d/cron.
cron.allow cron.deny
root@h3mis257 # pg /etc/cron.d/cron.
cron.allow cron.deny
root@h3mis257 # pg /etc/cron.d/cron.allow
oemxspot
beahb
root@h3mis257 # pg /etc/cron.d/cron.
cron.allow cron.deny
root@h3mis257 # pg /etc/cron.d/cron.deny
daemon
bin
smtp
nuucp
listen
nobody
noaccess
root@h3mis257 # pg at.deny
daemon
bin
smtp
nuucp
listen
nobody
noaccess
root@h3mis257 # pg cron.deny
daemon
bin
smtp
nuucp
listen
nobody
noaccess
root@h3mis257 # pg cron.allow
oemxspot
beahb
root@h3mis257 # pg at.allow
oemxspot
beahb
------------------------------------------------------------------------------------------------------
# Lock / Unlock
I only able to lock user ID with passwd -l username
'passwd -df username' will unlock the user-id, and force the user to enter a new password at next login
o
passwd username ---------------> setti una password
--------------------------------------------------------------------------------------------------------
# utente nominale
useradd -u 3913 -g 1010 -c "Sergio_Dondoni_nominale_LAA-Stefano_Dominioni" -m -d /home/dondonis -s /usr/bin/ksh dondonis
--------------------------------------------------------------------------------------------------------
vxassist -g rootdg maxsize
5 vxassist -b -g rootdg -U gen make swapvol_02 8g layout=mirror
6 swap -a /dev/vx/dsk/rootdg/swapvol_02
7 swap -l
8 vi /etc/vfstab
/dev/vx/dsk/bootdg/swapvol_02 - - swap - no -
------------------------------------------------------------------------------------------------------
echo 'Tra 5 minuti verra riavviata la macchina per applicazione parametri kernel' | wall
------------------------------------------------------------------------------------------------------
# connettersi a CONSOLE via linux command
minicom
minicom -s
------------------------------------------------------------------------------------------------------
# caduta cluster per colpa dischi SAN
era caduto un cluster per colpa di dischi in sun.
dopo aver avviato, c'erano dei dischi in error
quindi
# vxdisk list
# vxdctl enable
e li abbiamo riportati online, e cosi siamo riusciti a far salire i sglunedi/martedi h3mis475, h3mis133
Martedi 28 h3mis476
-----------------------------------------------------------------------------------------------------------------------
# Dov'è il PATH
# guarda in /.environment o /etc/profile per il PATH
----------------------------------------------------------------------------------------------------------------------
# To generate a core file named ‘core’ in the current working directory for the process with a process id of 345, use:
gcore 345
If you want to control the name of the core dump file, use the -o option with a filename or path and filename, such as core.test or /tmp/core.1
gcore -o /tmp/core.1 345
-----------------------------------------------------------------------------------------------------------------------------
# Sommare con Awk
serj@serj-laptop:~$ cat pippo
5
5
5
serj@serj-laptop:~$ awk '{c += $0} END{print c}' pippo
15
serj@serj-laptop:~$
-------------------------------------------------------------------------------------------------------------------------------------
# XHOST
Normalmente, l'export del display va fatto verso un sistema X-enabled: se la tua macchina ha un server X che hai verificato essere funzionante, non dovresti avere problemi. Ovviamente, se usi firewall e quant'altro, devi avere regole che permettano la comunicazione sul protocollo usato da X.
Una possibilità potrebbe anche essere la comunicazione dei server X dalla h3fas067 alla tua macchina è bloccata.
Puoi provare (ultima ratio):
export DISPLAY=localhost:0.0
xhost +h3fas067
export DISPLAY=localhost:0.0
xhost +
oppure:
xhost +
export DISPLAY=server_ip:0.0
xhost +server_name
serj@serj-laptop:~$ ssh -X oracle@h3fas067.ced
h3fas067@NO-SID:/home/oracle # /usr/openwin/bin/xclock
#ci hanno passato mail con queste lun per h3mis823
> 09:45 63061 13893 FREE_00063061 OPEN-E-SUN RAID1 3-13 CL4b /dev/rdsk/c5t50060E8003F65531d5s2
> 09:e3 63061 13893 FREE_00063061 OPEN-E-SUN RAID1 3-22 CL4b /dev/rdsk/c5t50060E8003F65531d56s2
> 0a:09 63061 13893 FREE_00063061 OPEN-E-SUN RAID1 3-24 CL4b /dev/rdsk/c5t50060E8003F65531d129s2
> 0a:2e 63061 13893 FREE_00063061 OPEN-E-SUN RAID1 3-26 CL4b /dev/rdsk/c5t50060E8003F65531d152s2
> 09:4b 63061 13893 FREE_00063061 OPEN-E-SUN RAID1 3-13 CL4b /dev/rdsk/c5t50060E8003F65531d6s2
#dal format le vediamo all'inizio dell'output cosi
c5t50060E8003F65521d0: configured with capacity of 13.57GB
c5t50060E8003F65521d1: configured with capacity of 13.57GB
c5t50060E8003F65521d2: configured with capacity of 13.57GB
c5t50060E8003F65521d3: configured with capacity of 13.57GB
c5t50060E8003F65521d4: configured with capacity of 13.57GB
c5t50060E8003F65521d5: configured with capacity of 13.57GB
c5t50060E8003F65521d6: configured with capacity of 13.57GB
c5t50060E8003F65521d7: configured with capacity of 13.57GB
c5t50060E8003F65521d8: configured with capacity of 13.57GB
c5t50060E8003F65521d9: configured with capacity of 13.57GB
c5t50060E8003F65521d10: configured with capacity of 13.57GB
c5t50060E8003F65521d11: configured with capacity of 13.57GB
c5t50060E8003F65521d12: configured with capacity of 13.57GB
c5t50060E8003F65521d13: configured with capacity of 13.57GB
c5t50060E8003F65521d14: configured with capacity of 13.57GB
c5t50060E8003F65521d15: configured with capacity of 13.57GB
c5t50060E8003F65521d16: configured with capacity of 13.57GB
c5t50060E8003F65521d17: configured with capacity of 13.57GB
c5t50060E8003F65521d18: configured with capacity of 13.57GB
c5t50060E8003F65521d19: configured with capacity of 13.57GB
c5t50060E8003F65521d20: configured with capacity of 13.57GB
c5t50060E8003F65521d21: configured with capacity of 13.57GB
c5t50060E8003F65521d22: configured with capacity of 13.57GB
c5t50060E8003F65521d23: configured with capacity of 13.57GB
c5t50060E8003F65521d24: configured with capacity of 13.57GB
c5t50060E8003F65521d25: configured with capacity of 13.57GB
c5t50060E8003F65521d26: configured with capacity of 13.57GB
c5t50060E8003F65521d27: configured with capacity of 13.57GB
c5t50060E8003F65521d28: configured with capacity of 13.57GB
c5t50060E8003F65521d29: configured with capacity of 13.57GB
c5t50060E8003F65521d30: configured with capacity of 13.57GB
c5t50060E8003F65521d31: configured with capacity of 13.57GB
c5t50060E8003F65521d32: configured with capacity of 13.57GB
c5t50060E8003F65521d33: configured with capacity of 13.57GB
c5t50060E8003F65521d34: configured with capacity of 13.57GB
c5t50060E8003F65521d35: configured with capacity of 13.57GB
c5t50060E8003F65521d36: configured with capacity of 13.57GB
c5t50060E8003F65521d37: configured with capacity of 13.57GB
c5t50060E8003F65521d38: configured with capacity of 13.57GB
c5t50060E8003F65521d39: configured with capacity of 13.57GB
c5t50060E8003F65521d40: configured with capacity of 13.57GB
c5t50060E8003F65521d41: configured with capacity of 13.57GB
c5t50060E8003F65521d42: configured with capacity of 13.57GB
c5t50060E8003F65521d43: configured with capacity of 13.57GB
c5t50060E8003F65521d44: configured with capacity of 13.57GB
c5t50060E8003F65521d45: configured with capacity of 13.57GB
c5t50060E8003F65521d46: configured with capacity of 13.57GB
c5t50060E8003F65521d47: configured with capacity of 13.57GB
c5t50060E8003F65521d48: configured with capacity of 13.57GB
c5t50060E8003F65521d49: configured with capacity of 13.57GB
c5t50060E8003F65521d50: configured with capacity of 13.57GB
c5t50060E8003F65521d51: configured with capacity of 13.57GB
c5t50060E8003F65521d52: configured with capacity of 13.57GB
c5t50060E8003F65521d53: configured with capacity of 13.57GB
c5t50060E8003F65521d54: configured with capacity of 13.57GB
c5t50060E8003F65521d55: configured with capacity of 13.57GB
c5t50060E8003F65521d56: configured with capacity of 13.57GB
c5t50060E8003F65521d57: configured with capacity of 13.57GB
c5t50060E8003F65521d58: configured with capacity of 13.57GB
c5t50060E8003F65521d59: configured with capacity of 13.57GB
c5t50060E8003F65521d60: configured with capacity of 13.57GB
c5t50060E8003F65521d61: configured with capacity of 13.57GB
c5t50060E8003F65521d62: configured with capacity of 13.57GB
c5t50060E8003F65521d63: configured with capacity of 13.57GB
c5t50060E8003F65521d64: configured with capacity of 13.57GB
c5t50060E8003F65521d65: configured with capacity of 13.57GB
c5t50060E8003F65521d66: configured with capacity of 13.57GB
c5t50060E8003F65521d67: configured with capacity of 13.57GB
c5t50060E8003F65521d68: configured with capacity of 13.57GB
c5t50060E8003F65521d69: configured with capacity of 13.57GB
c5t50060E8003F65521d70: configured with capacity of 13.57GB
c5t50060E8003F65521d71: configured with capacity of 13.57GB
c5t50060E8003F65521d72: configured with capacity of 13.57GB
c5t50060E8003F65521d73: configured with capacity of 13.57GB
c5t50060E8003F65521d74: configured with capacity of 13.57GB
c5t50060E8003F65521d75: configured with capacity of 13.57GB
c5t50060E8003F65521d76: configured with capacity of 13.57GB
c5t50060E8003F65521d77: configured with capacity of 13.57GB
c5t50060E8003F65521d78: configured with capacity of 13.57GB
c5t50060E8003F65521d79: configured with capacity of 13.57GB
c5t50060E8003F65521d80: configured with capacity of 13.57GB
c5t50060E8003F65521d81: configured with capacity of 13.57GB
c5t50060E8003F65521d82: configured with capacity of 13.57GB
c5t50060E8003F65521d83: configured with capacity of 13.57GB
c5t50060E8003F65521d84: configured with capacity of 13.57GB
c5t50060E8003F65521d85: configured with capacity of 13.57GB
c5t50060E8003F65521d86: configured with capacity of 13.57GB
c5t50060E8003F65521d87: configured with capacity of 13.57GB
c5t50060E8003F65521d88: configured with capacity of 13.57GB
c5t50060E8003F65521d89: configured with capacity of 13.57GB
c5t50060E8003F65521d90: configured with capacity of 13.57GB
c5t50060E8003F65521d91: configured with capacity of 13.57GB
c5t50060E8003F65521d92: configured with capacity of 13.57GB
c5t50060E8003F65521d93: configured with capacity of 13.57GB
c5t50060E8003F65521d94: configured with capacity of 13.57GB
c5t50060E8003F65521d95: configured with capacity of 13.57GB
c5t50060E8003F65521d96: configured with capacity of 13.57GB
c5t50060E8003F65521d97: configured with capacity of 13.57GB
c5t50060E8003F65521d98: configured with capacity of 13.57GB
c5t50060E8003F65521d99: configured with capacity of 13.57GB
c5t50060E8003F65521d100: configured with capacity of 13.57GB
c5t50060E8003F65521d101: configured with capacity of 13.57GB
c5t50060E8003F65521d102: configured with capacity of 13.57GB
c5t50060E8003F65521d103: configured with capacity of 13.57GB
c5t50060E8003F65521d104: configured with capacity of 13.57GB
c5t50060E8003F65521d105: configured with capacity of 13.57GB
c5t50060E8003F65521d106: configured with capacity of 13.57GB
c5t50060E8003F65521d107: configured with capacity of 13.57GB
c5t50060E8003F65521d108: configured with capacity of 13.57GB
c5t50060E8003F65521d109: configured with capacity of 13.57GB
c5t50060E8003F65521d110: configured with capacity of 13.57GB
c5t50060E8003F65521d111: configured with capacity of 13.57GB
c5t50060E8003F65521d112: configured with capacity of 13.57GB
c5t50060E8003F65521d113: configured with capacity of 13.57GB
c5t50060E8003F65521d114: configured with capacity of 13.57GB
c5t50060E8003F65521d115: configured with capacity of 13.57GB
c5t50060E8003F65521d116: configured with capacity of 13.57GB
c5t50060E8003F65521d117: configured with capacity of 13.57GB
c5t50060E8003F65521d118: configured with capacity of 13.57GB
c5t50060E8003F65521d119: configured with capacity of 13.57GB
c5t50060E8003F65521d120: configured with capacity of 13.57GB
c5t50060E8003F65521d121: configured with capacity of 13.57GB
c5t50060E8003F65521d122: configured with capacity of 13.57GB
c5t50060E8003F65521d123: configured with capacity of 13.57GB
c5t50060E8003F65521d124: configured with capacity of 13.57GB
c5t50060E8003F65521d125: configured with capacity of 13.57GB
c5t50060E8003F65521d126: configured with capacity of 13.57GB
c5t50060E8003F65521d127: configured with capacity of 13.57GB
c5t50060E8003F65521d128: configured with capacity of 13.57GB
c5t50060E8003F65521d129: configured with capacity of 13.57GB
c5t50060E8003F65521d130: configured with capacity of 13.57GB
c5t50060E8003F65521d131: configured with capacity of 13.57GB
c5t50060E8003F65521d132: configured with capacity of 13.57GB
c5t50060E8003F65521d133: configured with capacity of 13.57GB
c5t50060E8003F65521d134: configured with capacity of 13.57GB
c5t50060E8003F65521d135: configured with capacity of 13.57GB
c5t50060E8003F65521d136: configured with capacity of 13.57GB
c5t50060E8003F65521d137: configured with capacity of 13.57GB
c5t50060E8003F65521d138: configured with capacity of 13.57GB
c5t50060E8003F65521d139: configured with capacity of 13.57GB
c5t50060E8003F65521d140: configured with capacity of 13.57GB
c5t50060E8003F65521d141: configured with capacity of 13.57GB
c5t50060E8003F65521d142: configured with capacity of 13.57GB
c5t50060E8003F65521d143: configured with capacity of 13.57GB
c5t50060E8003F65521d144: configured with capacity of 13.57GB
c5t50060E8003F65521d145: configured with capacity of 13.57GB
c5t50060E8003F65521d146: configured with capacity of 13.57GB
c5t50060E8003F65521d147: configured with capacity of 13.57GB
c5t50060E8003F65521d148: configured with capacity of 13.57GB
c5t50060E8003F65521d149: configured with capacity of 13.57GB
c5t50060E8003F65521d150: configured with capacity of 13.57GB
c5t50060E8003F65521d151: configured with capacity of 13.57GB
c5t50060E8003F65521d152: configured with capacity of 13.57GB
c5t50060E8003F65521d153: configured with capacity of 13.57GB
c5t50060E8003F65521d154: configured with capacity of 13.57GB
c5t50060E8003F65521d155: configured with capacity of 13.57GB
c5t50060E8003F65521d156: configured with capacity of 13.57GB
c5t50060E8003F65521d157: configured with capacity of 13.57GB
c5t50060E8003F65521d158: configured with capacity of 13.57GB
c5t50060E8003F65521d159: configured with capacity of 13.57GB
c5t50060E8003F65521d160: configured with capacity of 13.57GB
c5t50060E8003F65521d161: configured with capacity of 13.57GB
c5t50060E8003F65521d162: configured with capacity of 13.57GB
c5t50060E8003F65521d163: configured with capacity of 13.57GB
c5t50060E8003F65521d164: configured with capacity of 13.57GB
c5t50060E8003F65521d165: configured with capacity of 13.57GB
c5t50060E8003F65521d166: configured with capacity of 13.57GB
c5t50060E8003F65521d167: configured with capacity of 13.57GB
c5t50060E8003F65521d168: configured with capacity of 13.57GB
c5t50060E8003F65521d169: configured with capacity of 13.57GB
c5t50060E8003F65521d170: configured with capacity of 13.57GB
c5t50060E8003F65521d171: configured with capacity of 13.57GB
c5t50060E8003F65521d172: configured with capacity of 13.57GB
c5t50060E8003F65521d173: configured with capacity of 13.57GB
c5t50060E8003F65531d0: configured with capacity of 13.57GB
c5t50060E8003F65531d1: configured with capacity of 13.57GB
c5t50060E8003F65531d2: configured with capacity of 13.57GB
c5t50060E8003F65531d3: configured with capacity of 13.57GB
c5t50060E8003F65531d4: configured with capacity of 13.57GB
c5t50060E8003F65531d5: configured with capacity of 13.57GB
c5t50060E8003F65531d6: configured with capacity of 13.57GB
c5t50060E8003F65531d7: configured with capacity of 13.57GB
c5t50060E8003F65531d8: configured with capacity of 13.57GB
c5t50060E8003F65531d9: configured with capacity of 13.57GB
c5t50060E8003F65531d10: configured with capacity of 13.57GB
c5t50060E8003F65531d11: configured with capacity of 13.57GB
c5t50060E8003F65531d12: configured with capacity of 13.57GB
c5t50060E8003F65531d13: configured with capacity of 13.57GB
c5t50060E8003F65531d14: configured with capacity of 13.57GB
c5t50060E8003F65531d15: configured with capacity of 13.57GB
c5t50060E8003F65531d16: configured with capacity of 13.57GB
c5t50060E8003F65531d17: configured with capacity of 13.57GB
c5t50060E8003F65531d18: configured with capacity of 13.57GB
c5t50060E8003F65531d19: configured with capacity of 13.57GB
c5t50060E8003F65531d20: configured with capacity of 13.57GB
c5t50060E8003F65531d21: configured with capacity of 13.57GB
c5t50060E8003F65531d22: configured with capacity of 13.57GB
c5t50060E8003F65531d23: configured with capacity of 13.57GB
c5t50060E8003F65531d24: configured with capacity of 13.57GB
c5t50060E8003F65531d25: configured with capacity of 13.57GB
c5t50060E8003F65531d26: configured with capacity of 13.57GB
c5t50060E8003F65531d27: configured with capacity of 13.57GB
c5t50060E8003F65531d28: configured with capacity of 13.57GB
c5t50060E8003F65531d29: configured with capacity of 13.57GB
c5t50060E8003F65531d30: configured with capacity of 13.57GB
c5t50060E8003F65531d31: configured with capacity of 13.57GB
c5t50060E8003F65531d32: configured with capacity of 13.57GB
c5t50060E8003F65531d33: configured with capacity of 13.57GB
c5t50060E8003F65531d34: configured with capacity of 13.57GB
c5t50060E8003F65531d35: configured with capacity of 13.57GB
c5t50060E8003F65531d36: configured with capacity of 13.57GB
c5t50060E8003F65531d37: configured with capacity of 13.57GB
c5t50060E8003F65531d38: configured with capacity of 13.57GB
c5t50060E8003F65531d39: configured with capacity of 13.57GB
c5t50060E8003F65531d40: configured with capacity of 13.57GB
c5t50060E8003F65531d41: configured with capacity of 13.57GB
c5t50060E8003F65531d42: configured with capacity of 13.57GB
c5t50060E8003F65531d43: configured with capacity of 13.57GB
c5t50060E8003F65531d44: configured with capacity of 13.57GB
c5t50060E8003F65531d45: configured with capacity of 13.57GB
c5t50060E8003F65531d46: configured with capacity of 13.57GB
c5t50060E8003F65531d47: configured with capacity of 13.57GB
c5t50060E8003F65531d48: configured with capacity of 13.57GB
c5t50060E8003F65531d49: configured with capacity of 13.57GB
c5t50060E8003F65531d50: configured with capacity of 13.57GB
c5t50060E8003F65531d51: configured with capacity of 13.57GB
c5t50060E8003F65531d52: configured with capacity of 13.57GB
c5t50060E8003F65531d53: configured with capacity of 13.57GB
c5t50060E8003F65531d54: configured with capacity of 13.57GB
c5t50060E8003F65531d55: configured with capacity of 13.57GB
c5t50060E8003F65531d56: configured with capacity of 13.57GB
c5t50060E8003F65531d57: configured with capacity of 13.57GB
c5t50060E8003F65531d58: configured with capacity of 13.57GB
c5t50060E8003F65531d59: configured with capacity of 13.57GB
c5t50060E8003F65531d60: configured with capacity of 13.57GB
c5t50060E8003F65531d61: configured with capacity of 13.57GB
c5t50060E8003F65531d62: configured with capacity of 13.57GB
c5t50060E8003F65531d63: configured with capacity of 13.57GB
c5t50060E8003F65531d64: configured with capacity of 13.57GB
c5t50060E8003F65531d65: configured with capacity of 13.57GB
c5t50060E8003F65531d66: configured with capacity of 13.57GB
c5t50060E8003F65531d67: configured with capacity of 13.57GB
c5t50060E8003F65531d68: configured with capacity of 13.57GB
c5t50060E8003F65531d69: configured with capacity of 13.57GB
c5t50060E8003F65531d70: configured with capacity of 13.57GB
c5t50060E8003F65531d71: configured with capacity of 13.57GB
c5t50060E8003F65531d72: configured with capacity of 13.57GB
c5t50060E8003F65531d73: configured with capacity of 13.57GB
c5t50060E8003F65531d74: configured with capacity of 13.57GB
c5t50060E8003F65531d75: configured with capacity of 13.57GB
c5t50060E8003F65531d76: configured with capacity of 13.57GB
c5t50060E8003F65531d77: configured with capacity of 13.57GB
c5t50060E8003F65531d78: configured with capacity of 13.57GB
c5t50060E8003F65531d79: configured with capacity of 13.57GB
c5t50060E8003F65531d80: configured with capacity of 13.57GB
c5t50060E8003F65531d81: configured with capacity of 13.57GB
c5t50060E8003F65531d82: configured with capacity of 13.57GB
c5t50060E8003F65531d83: configured with capacity of 13.57GB
c5t50060E8003F65531d84: configured with capacity of 13.57GB
c5t50060E8003F65531d85: configured with capacity of 13.57GB
c5t50060E8003F65531d86: configured with capacity of 13.57GB
c5t50060E8003F65531d87: configured with capacity of 13.57GB
c5t50060E8003F65531d88: configured with capacity of 13.57GB
c5t50060E8003F65531d89: configured with capacity of 13.57GB
c5t50060E8003F65531d90: configured with capacity of 13.57GB
c5t50060E8003F65531d91: configured with capacity of 13.57GB
c5t50060E8003F65531d92: configured with capacity of 13.57GB
c5t50060E8003F65531d93: configured with capacity of 13.57GB
c5t50060E8003F65531d94: configured with capacity of 13.57GB
c5t50060E8003F65531d95: configured with capacity of 13.57GB
c5t50060E8003F65531d96: configured with capacity of 13.57GB
c5t50060E8003F65531d97: configured with capacity of 13.57GB
c5t50060E8003F65531d98: configured with capacity of 13.57GB
c5t50060E8003F65531d99: configured with capacity of 13.57GB
c5t50060E8003F65531d100: configured with capacity of 13.57GB
c5t50060E8003F65531d101: configured with capacity of 13.57GB
c5t50060E8003F65531d102: configured with capacity of 13.57GB
c5t50060E8003F65531d103: configured with capacity of 13.57GB
c5t50060E8003F65531d104: configured with capacity of 13.57GB
c5t50060E8003F65531d105: configured with capacity of 13.57GB
c5t50060E8003F65531d106: configured with capacity of 13.57GB
c5t50060E8003F65531d107: configured with capacity of 13.57GB
c5t50060E8003F65531d108: configured with capacity of 13.57GB
c5t50060E8003F65531d109: configured with capacity of 13.57GB
c5t50060E8003F65531d110: configured with capacity of 13.57GB
c5t50060E8003F65531d111: configured with capacity of 13.57GB
c5t50060E8003F65531d112: configured with capacity of 13.57GB
c5t50060E8003F65531d113: configured with capacity of 13.57GB
c5t50060E8003F65531d114: configured with capacity of 13.57GB
c5t50060E8003F65531d115: configured with capacity of 13.57GB
c5t50060E8003F65531d116: configured with capacity of 13.57GB
c5t50060E8003F65531d117: configured with capacity of 13.57GB
c5t50060E8003F65531d118: configured with capacity of 13.57GB
c5t50060E8003F65531d119: configured with capacity of 13.57GB
c5t50060E8003F65531d120: configured with capacity of 13.57GB
c5t50060E8003F65531d121: configured with capacity of 13.57GB
c5t50060E8003F65531d122: configured with capacity of 13.57GB
c5t50060E8003F65531d123: configured with capacity of 13.57GB
c5t50060E8003F65531d124: configured with capacity of 13.57GB
c5t50060E8003F65531d125: configured with capacity of 13.57GB
c5t50060E8003F65531d126: configured with capacity of 13.57GB
c5t50060E8003F65531d127: configured with capacity of 13.57GB
c5t50060E8003F65531d128: configured with capacity of 13.57GB
c5t50060E8003F65531d129: configured with capacity of 13.57GB
c5t50060E8003F65531d130: configured with capacity of 13.57GB
c5t50060E8003F65531d131: configured with capacity of 13.57GB
c5t50060E8003F65531d132: configured with capacity of 13.57GB
c5t50060E8003F65531d133: configured with capacity of 13.57GB
c5t50060E8003F65531d134: configured with capacity of 13.57GB
c5t50060E8003F65531d135: configured with capacity of 13.57GB
c5t50060E8003F65531d136: configured with capacity of 13.57GB
c5t50060E8003F65531d137: configured with capacity of 13.57GB
c5t50060E8003F65531d138: configured with capacity of 13.57GB
c5t50060E8003F65531d139: configured with capacity of 13.57GB
c5t50060E8003F65531d140: configured with capacity of 13.57GB
c5t50060E8003F65531d141: configured with capacity of 13.57GB
c5t50060E8003F65531d142: configured with capacity of 13.57GB
c5t50060E8003F65531d143: configured with capacity of 13.57GB
c5t50060E8003F65531d144: configured with capacity of 13.57GB
c5t50060E8003F65531d145: configured with capacity of 13.57GB
c5t50060E8003F65531d146: configured with capacity of 13.57GB
c5t50060E8003F65531d147: configured with capacity of 13.57GB
c5t50060E8003F65531d148: configured with capacity of 13.57GB
c5t50060E8003F65531d149: configured with capacity of 13.57GB
c5t50060E8003F65531d150: configured with capacity of 13.57GB
c5t50060E8003F65531d151: configured with capacity of 13.57GB
c5t50060E8003F65531d152: configured with capacity of 13.57GB
c5t50060E8003F65531d153: configured with capacity of 13.57GB
c5t50060E8003F65531d154: configured with capacity of 13.57GB
c5t50060E8003F65531d155: configured with capacity of 13.57GB
c5t50060E8003F65531d156: configured with capacity of 13.57GB
c5t50060E8003F65531d157: configured with capacity of 13.57GB
c5t50060E8003F65531d158: configured with capacity of 13.57GB
c5t50060E8003F65531d159: configured with capacity of 13.57GB
c5t50060E8003F65531d160: configured with capacity of 13.57GB
c5t50060E8003F65531d161: configured with capacity of 13.57GB
c5t50060E8003F65531d162: configured with capacity of 13.57GB
c5t50060E8003F65531d163: configured with capacity of 13.57GB
c5t50060E8003F65531d164: configured with capacity of 13.57GB
c5t50060E8003F65531d165: configured with capacity of 13.57GB
c5t50060E8003F65531d166: configured with capacity of 13.57GB
c5t50060E8003F65531d167: configured with capacity of 13.57GB
c5t50060E8003F65531d168: configured with capacity of 13.57GB
c5t50060E8003F65531d169: configured with capacity of 13.57GB
c5t50060E8003F65531d170: configured with capacity of 13.57GB
c5t50060E8003F65531d171: configured with capacity of 13.57GB
c5t50060E8003F65531d172: configured with capacity of 13.57GB
c5t50060E8003F65531d173: configured with capacity of 13.57GB
# abbiamo fatto un file lun e uno cmd
# vi /tmp/lun
c5t50060E8003F65521d0
c5t50060E8003F65521d1
c5t50060E8003F65521d2
..........
.........
li abbiamo messo tutti i dischi
# vi /tmp/cmd
t ------------> type
0 ------------> tipo di formattazione
l ------------> label
lanciato il comando for
# for i in `cat /tmp/lun`; do format -f /tmp/cmd $i; done
for lun in `cat lun`; do format -f /tmp/cmd $lun; done;
Creazione DG volume
root@h3fas112 # vxdg init dg_app_01 disk01=c1t2d0 disk02=c1t3d0 cds=off
root@h3fas112 # vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t0d0s2 auto:sliced rootdisk rootdg online
c1t1d0s2 auto:sliced rootmirr rootdg online
c1t2d0s2 auto:sliced disk01 dg_app_01 online
c1t3d0s2 auto:sliced disk02 dg_app_01 online
c1t4d0s2 auto:none - - online invalid
c1t5d0s2 auto:none - - online invalid
root@h3fas112 # vxdg -g dg_app_01 rmdisk disk02
root@h3fas112 # vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t0d0s2 auto:sliced rootdisk rootdg online
c1t1d0s2 auto:sliced rootmirr rootdg online
c1t2d0s2 auto:sliced disk01 dg_app_01 online
c1t3d0s2 auto:sliced - - online
c1t4d0s2 auto:none - - online invalid
c1t5d0s2 auto:none - - online invalid
root@h3fas112 # vxdg -g dg_app_01 adddisk disk02=c1t3d0
root@h3fas112 # vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t0d0s2 auto:sliced rootdisk rootdg online
c1t1d0s2 auto:sliced rootmirr rootdg online
c1t2d0s2 auto:sliced disk01 dg_app_01 online
c1t3d0s2 auto:sliced disk02 dg_app_01 online
c1t4d0s2 auto:none - - online invalid
c1t5d0s2 auto:none - - online invalid
root@h3fas112 #
root@h3fas112 # vxassist -b -g dg_app_01 make volume vol_ecc_01 2g layout=mirror
VxVM vxassist ERROR V-5-1-334 vol_ecc_01: Invalid length specification
root@h3fas112 # vxassist -g dg_app_01 maxsize layout=mirror
Maximum volume size: 143267840 (69955Mb)
root@h3fas112 # vxassist -b -g dg_app_01 make vol_ecc_01 2g layout=mirror
root@h3fas112 #
root@h3fas112 #
root@h3fas112 #
root@h3fas112 # vxtask list
TASKID PTID TYPE/STATE PCT PROGRESS
166 RDWRBACK/R 08.59% 0/4194304/360448 VOLSTART vol_ecc_01 dg_app_01
root@h3fas112 # vxtask -l list
Task: 166 RUNNING
Type: RDWRBACK
Operation: VOLSTART Vol vol_ecc_01 Dg dg_app_01
Started: November 19, 2008 10:33:00 AM CET
Throttle: 0
Progress: 14.31% 600064 of 4194304 Blocks
Work time: 11 seconds (01:05 remaining)
root@h3fas112 # vxtask -l list
Task: 166 RUNNING
Type: RDWRBACK
Operation: VOLSTART Vol vol_ecc_01 Dg dg_app_01
Started: November 19, 2008 10:33:00 AM CET
Throttle: 0
Progress: 33.54% 1406976 of 4194304 Blocks
Work time: 27 seconds (0:53 remaining)
root@h3fas112 # vxtask list
TASKID PTID TYPE/STATE PCT PROGRESS
166 RDWRBACK/R 37.01% 0/4194304/1552384 VOLSTART vol_ecc_01 dg_app_01
root@h3fas112 #
root@h3fas112 #
root@h3fas112 # mkdir /usr/ecc
root@h3fas112 #
root@h3fas112 # vxtask list
TASKID PTID TYPE/STATE PCT PROGRESS
166 RDWRBACK/R 91.85% 0/4194304/3852288 VOLSTART vol_ecc_01 dg_app_01
root@h3fas112 # vxtask list
TASKID PTID TYPE/STATE PCT PROGRESS
166 RDWRBACK/R 93.55% 0/4194304/3923968 VOLSTART vol_ecc_01 dg_app_01
root@h3fas112 # vxtask list
TASKID PTID TYPE/STATE PCT PROGRESS
root@h3fas112 #
root@h3fas112 #
root@h3fas112 # mkfs -F vxfs /dev/vx/rdsk/dg_app_01/vol_ecc_01
version 7 layout
4194304 sectors, 2097152 blocks of size 1024, log size 16384 blocks
largefiles supported
root@h3fas112 # mount -F vxfs /dev/vx/dsk/dg_app_01/vol_ecc_01 /usr/ecc
root@h3fas112 #
root@h3fas112 #
root@h3fas112 #
root@h3fas112 # df -k
Filesystem kbytes used avail capacity Mounted on
/dev/vx/dsk/bootdg/rootvol
10327132 5611431 4612430 55% /
/devices 0 0 0 0% /devices
ctfs 0 0 0 0% /system/contract
proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
swap 26716096 1624 26714472 1% /etc/svc/volatile
objfs 0 0 0 0% /system/object
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
10327132 5611431 4612430 55% /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
10327132 5611431 4612430 55% /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd 0 0 0 0% /dev/fd
/dev/vx/dsk/bootdg/var
10327132 3934100 6289761 39% /var
swap 26714504 32 26714472 1% /tmp
swap 26714520 48 26714472 1% /var/run
swap 26714472 0 26714472 0% /dev/vx/dmp
swap 26714472 0 26714472 0% /dev/vx/rdmp
/dev/vx/dsk/bootdg/home
4133598 4121 4088142 1% /home
/dev/vx/dsk/bootdg/vol_audit_01
4128430 4113 4083033 1% /audit
/dev/vx/dsk/dg_app_01/vol_ecc_01
2097152 18006 1949207 1% /usr/ecc
root@h3fas112 # init 6
root@h3fas112 # Nov 19 10:43:31 h3fas112 gab: GAB INFO V-15-1-20032 Port h closed
Nov 19 10:43:33 h3fas112 gab: GAB INFO V-15-1-20032 Port a closed
Nov 19 10:44:06 h3fas112 syseventd[383]: SIGHUP caught – reloading modules
Nov 19 10:44:07 h3fas112 syseventd[383]: Daemon restarted
svc.startd: The system is coming down. Please wait.
svc.startd: 106 system services are now being stopped.
Nov 19 10:44:12 h3fas112 devfsadmd[396]: build_devlink_list: readlink failed for /dev/vx/dsk/rootdg: Invalid argument
Nov 19 10:44:12 h3fas112 devfsadmd[396]: build_devlink_list: readlink failed for /dev/vx/rdsk/rootdg: Invalid argument
Nov 19 10:44:22 h3fas112 syslogd: going down on signal 15
svc.startd: The system is down.
syncing file systems… done
rebooting…
Resetting …
RSC Alert: Host System has Reset
ChassisSerialNumber 0430AN0122
Cannot Init Link.
*** FCode LP10000 PCI_Bus (lpfc) Version 1.41a4 ***
Cannot Init Link.
*** FCode LP10000 PCI_Bus (lpfc) Version 1.41a4 ***
Sun Fire 880, No Keyboard
Copyright 1998-2003 Sun Microsystems, Inc. All rights reserved.
OpenBoot 4.10.8, 12288 MB memory installed, Serial #57147453.
Ethernet address 0:3:ba:68:0:3d, Host ID: 8368003d.
Rebooting with command: boot
Boot device: vx-rootdisk File and args:
SunOS Release 5.10 Version Generic_137111-07 64-bit
Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Hostname: h3fas112
VxVM sysboot INFO V-5-2-3409 starting in boot mode…
NOTICE: VxVM vxdmp V-5-0-34 added disk array DISKS, datype = Disk
NOTICE: VxVM vxdmp V-5-3-1700 dmpnode 318/0×0 has migrated from enclosure FAKE_ENCLR_SNO to enclosure DISKS
VxVM sysboot INFO V-5-2-3390 Starting restore daemon…
LLT INFO V-14-1-10009 LLT Protocol available
GAB INFO V-15-1-20021 GAB available
/dev/vx/rdsk/bootdg/home is clean
/dev/vx/rdsk/bootdg/vol_audit_01 is clean
h3fas112 console login:
SUNW-MSG-ID: PCIEX-8000-5Y, TYPE: Fault, VER: 1, SEVERITY: Critical
EVENT-TIME: Fri Nov 14 10:07:51 CET 2008
PLATFORM: SUNW,Sun-Fire-880, CSN: -, HOSTNAME: h3fas112
SOURCE: eft, REV: 1.16
EVENT-ID: 74f1d7be-9c9d-630d-efe1-b09a74af6850
DESC: The transmitting device sent an invalid request.
Refer to http://sun.com/msg/PCIEX-8000-5Y for more information.
AUTO-RESPONSE: One or more device instances may be disabled
IMPACT: Loss of services provided by the device instances associated with this fault
REC-ACTION: Ensure that the latest drivers and patches are installed. Otherwise schedule a repair procedure to replace the affected device(s). Use fmdump -v -u <EVENT_ID> to identify the devices or contact Sun for support.
h3fas112 console login: root
Password:
Nov 19 10:50:04 h3fas112 login: ROOT LOGIN /dev/console
Last login: Wed Nov 19 10:22:43 on console
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
Sourcing //.profile-EIS…..
root@h3fas112 #
root@h3fas112 # fmdump -v 74f1d7be-9c9d-630d-efe1-b09a74af6850
fmdump: failed to open 74f1d7be-9c9d-630d-efe1-b09a74af6850: No such file or directory
root@h3fas112 # ^[[A^H^H^C
root@h3fas112 # bash
root@h3fas112 # fmdump -v -u 74f1d7be-9c9d-630d-efe1-b09a74af6850
TIME UUID SUNW-MSG-ID
Nov 14 10:07:51.9026 74f1d7be-9c9d-630d-efe1-b09a74af6850 PCIEX-8000-5Y
50% fault.io.pci.device-invreq
Problem in: hc://:product-id=SUNW,Sun-Fire-880:server-id=h3fas112/motherboard=0/hostbridge=0/pcibus=0/pcidev=2/pcifn=0
Affects: dev:////pci@8,600000/SUNW,qlc@2
FRU: hc:///component=MB
Location: MB
50% fault.io.pci.device-invreq
Problem in: hc://:product-id=SUNW,Sun-Fire-880:server-id=h3fas112/motherboard=0/hostbridge=0/pcibus=0/pcidev=1/pcifn=0
Affects: dev:////pci@8,600000/network@1
FRU: hc:///component=MB
Location: MB
Nov 14 10:58:18.3290 74f1d7be-9c9d-630d-efe1-b09a74af6850 PCIEX-8000-5Y
50% fault.io.pci.device-invreq
Problem in: hc://:product-id=SUNW,Sun-Fire-880:server-id=h3fas112/motherboard=0/hostbridge=0/pcibus=0/pcidev=1/pcifn=0
Affects: dev:////pci@8,600000/network@1
FRU: hc:///component=MB
Location: MB
50% fault.io.pci.device-invreq
Problem in: hc://:product-id=SUNW,Sun-Fire-880:server-id=h3fas112/motherboard=0/hostbridge=0/pcibus=0/pcidev=2/pcifn=0
Affects: dev:////pci@8,600000/SUNW,qlc@2
FRU: hc:///component=MB
Location: MB
Nov 14 11:54:57.4590 74f1d7be-9c9d-630d-efe1-b09a74af6850 PCIEX-8000-5Y
50% fault.io.pci.device-invreq
Problem in: hc://:product-id=SUNW,Sun-Fire-880:server-id=h3fas112/motherboard=0/hostbridge=0/pcibus=0/pcidev=1/pcifn=0
Affects: dev:////pci@8,600000/network@1
FRU: hc:///component=MB
Location: MB
50% fault.io.pci.device-invreq
Problem in: hc://:product-id=SUNW,Sun-Fire-880:server-id=h3fas112/motherboard=0/hostbridge=0/pcibus=0/pcidev=2/pcifn=0
Affects: dev:////pci@8,600000/SUNW,qlc@2
FRU: hc:///component=MB
Location: MB
Nov 19 10:48:23.8050 74f1d7be-9c9d-630d-efe1-b09a74af6850 PCIEX-8000-5Y
50% fault.io.pci.device-invreq
Problem in: hc://:product-id=SUNW,Sun-Fire-880:server-id=h3fas112/motherboard=0/hostbridge=0/pcibus=0/pcidev=1/pcifn=0
Affects: dev:////pci@8,600000/network@1
FRU: hc:///component=MB
Location: MB
50% fault.io.pci.device-invreq
Problem in: hc://:product-id=SUNW,Sun-Fire-880:server-id=h3fas112/motherboard=0/hostbridge=0/pcibus=0/pcidev=2/pcifn=0
Affects: dev:////pci@8,600000/SUNW,qlc@2
FRU: hc:///component=MB
Location: MB
root@h3fas112 # Nov 19 10:51:01 h3fas112 llt: LLT INFO V-14-1-10499 recvarpack link 0 for node 0 addr change from 00:00:00:00:00:00 to 00:03:BA:6C:79:41
Nov 19 10:51:01 h3fas112 gab: GAB INFO V-15-1-20026 Port a registration waiting for seed port membership
Nov 19 10:51:01 h3fas112 llt: LLT INFO V-14-1-10499 recvarpack link 1 for node 0 addr change from 00:00:00:00:00:00 to 00:03:BA:6C:83:71
Nov 19 10:51:02 h3fas112 llt: LLT INFO V-14-1-10024 link 0 (ce3) node 0 active
Nov 19 10:51:03 h3fas112 llt: LLT INFO V-14-1-10024 link 1 (ce7) node 0 active
Nov 19 10:51:07 h3fas112 gab: GAB INFO V-15-1-20036 Port a gen db8203 membership 01
Nov 19 10:51:15 h3fas112 gab: GAB INFO V-15-1-20036 Port h gen db8206 membership 01
root@h3fas112 #
root@h3fas112 #
root@h3fas112 # ^D
h3fas112 console login: rsc> Connection to 10.219.82.186 closed by foreign host.
You have new mail in /var/mail/root
root@h3mis000 /->
root@h3mis000 /->
root@h3mis000 /->
root@h3mis000 /-> ssh h3mis708
##### ####### ### #####
# # # # # # # #### # # # # # #
# # # ## ## # # # # # # #
###### ##### # ## # # #### # # # #####
# # # # # # # # # # # #
# # # # # # # # # # # # # #
# # ##### # # # #### # ### #####
|-----------------------------------------------------------------|
| This system is for the use of authorized users only. |
| Individuals using this computer system without authority, or in |
| excess of their authority, are subject to having all of their |
| activities on this system monitored and recorded by system |
| personnel. |
| |
| In the course of monitoring individuals improperly using this |
| system, or in the course of system maintenance, the activities |
| of authorized users may also be monitored. |
| |
| Anyone using this system expressly consents to such monitoring |
| and is advised that if such monitoring reveals possible |
| evidence of criminal activity, system personnel may provide the |
| evidence of such monitoring to law enforcement officials. |
|-----------------------------------------------------------------|
Last login: Wed Nov 19 11:05:12 2008 from 10.216.230.36
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
You have new mail.
# bash
bash-3.00#
bash-3.00#
bash-3.00# vxdctl -Cc mode
VxVM vxdctl: illegal option -- C
VxVM vxdctl INFO V-5-1-1443
Usage: vxdctl keyword arg ...
For detailed help use: vxdctl -H | help
bash-3.00# vxdctl -c mode
mode: enabled: cluster active - MASTER
master: h3mis708
bash-3.00# uname -a
SunOS h3mis708 5.10 Generic_125100-10 sun4u sparc SUNW,Sun-Fire-15000
bash-3.00# cd /var/tmp
bash-3.00# vi lista_LUN
~
~
8003EB5E2Dd97s2 CL4n /dev/rdsk/c3t50060E8003EB5E3Cd97s2 CL4p /dev/rdsk/c4t50060E8003EB5E3Dd97s2
06:4e 60254 13893 FREE_00060254 OPEN-E-SUN RAID1 4-3 CL3n /dev/rdsk/c2t50060E8003EB5E2Cd99s2 CL3p /dev/rdsk/c5t50060E
8003EB5E2Dd99s2 CL4n /dev/rdsk/c3t50060E8003EB5E3Cd99s2 CL4p /dev/rdsk/c4t50060E8003EB5E3Dd99s2
05:70 60254 13893 FREE_00060254 OPEN-E-SUN RAID1 3-4 CL3n /dev/rdsk/c2t50060E8003EB5E2Cd65s2 CL3p /dev/rdsk/c5t50060E
8003EB5E2Dd65s2 CL4n /dev/rdsk/c3t50060E8003EB5E3Cd65s2 CL4p /dev/rdsk/c4t50060E8003EB5E3Dd65s2
8003EB5E2Dd81s2 CL4n /dev/rdsk/c3t50060E8003EB5E3Cd81s2 CL4p /dev/rdsk/c4t50060E8003EB5E3Dd81s2
05:dc 60254 13893 FREE_00060254 OPEN-E-SUN RAID1 3-9 CL3n /dev/rdsk/c2t50060E8003EB5E2Cd82s2 CL3p /dev/rdsk/c5t50060E
8003EB5E2Dd82s2 CL4n /dev/rdsk/c3t50060E8003EB5E3Cd82s2 CL4p /dev/rdsk/c4t50060E8003EB5E3Dd82s2
"lista_LUN" [New file] 123 lines, 14269 characters
bash-3.00# cat lista_LUN|grep -v “^$”
05:38 60254 13893 FREE_00060254 OPEN-E-SUN RAID1 3-1 CL3n /dev/rdsk/c2t50060E8003EB5E2Cd46s2 CL3p /dev/rdsk/c5t50060E8003EB5E2Dd46s2 CL4n /dev/rdsk/c3t50060E8003EB5E3Cd79s2 CL4p /dev/rdsk/c4t50060E8003EB5E3Dd79s2
05:d8 60254 13893 FREE_00060254 OPEN-E-SUN RAID1 3-9 CL3n /dev/rdsk/c2t50060E8003EB5E2Cd80s2 CL3p /dev/rdsk/c5t50060E8003EB5E2Dd80s2 CL4n /dev/rdsk/c3t50060E8003EB5E3Cd80s2 CL4p /dev/rdsk/c4t50060E8003EB5E3Dd80s2
05:d9 60254 13893 FREE_00060254 OPEN-E-SUN RAID1 3-9 CL3n /dev/rdsk/c2t50060E8003EB5E2Cd81s2 CL3p /dev/rdsk/c5t50060E8003EB5E2Dd81s2 CL4n /dev/rdsk/c3t50060E8003EB5E3Cd81s2 CL4p /dev/rdsk/c4t50060E8003EB5E3Dd81s2
05:dc 60254 13893 FREE_00060254 OPEN-E-SUN RAID1 3-9 CL3n /dev/rdsk/c2t50060E8003EB5E2Cd82s2 CL3p /dev/rdsk/c5t50060E8003EB5E2Dd82s2 CL4n /dev/rdsk/c3t50060E8003EB5E3Cd82s2 CL4p /dev/rdsk/c4t50060E8003EB5E3Dd82s2
bash-3.00# cat lista_LUN|grep -v “^$”|awk -F’/’ ‘{ print $NF }’
c4t50060E8003EB5E3Dd46s2
c4t50060E8003EB5E3Dd95s2
c4t50060E8003EB5E3Dd79s2
c4t50060E8003EB5E3Dd80s2
c4t50060E8003EB5E3Dd81s2
c4t50060E8003EB5E3Dd82s2
bash-3.00# cat lista_LUN|grep -v “^$”|awk -F’/’ ‘{ print $NF }’|cut -d’s’ -f1
c4t50060E8003EB5E3Dd46
c4t50060E8003EB5E3Dd95
c4t50060E8003EB5E3Dd78
c4t50060E8003EB5E3Dd64
c4t50060E8003EB5E3Dd79
c4t50060E8003EB5E3Dd80
c4t50060E8003EB5E3Dd81
c4t50060E8003EB5E3Dd82
bash-3.00# cat lista_LUN|grep -v “^$”|awk -F’/’ ‘{ print $NF }’|cut -d’s’ -f1 > /var/tmp/lista_dischi
bash-3.00#
bash-3.00#
bash-3.00#
bash-3.00# echo |format|/usr/xpg
xpg4/ xpg6/
bash-3.00# echo |format|/usr/xpg
xpg4/ xpg6/
bash-3.00# echo |format|/usr/xpg4/bin/g
get getconf getopts grep
bash-3.00# echo |format|/usr/xpg4/bin/grep -f /var/tmp/lista_dischi
c4t50060E8003EB5E3Dd82: configured with capacity of 13.57GB
989. c4t50060E8003EB5E3Dd46 <HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
995. c4t50060E8003EB5E3Dd52 <HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
1059. c4t50060E8003EB5E3Dd116 <HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
1060. c4t50060E8003EB5E3Dd117 <HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
bash-3.00#
bash-3.00#
bash-3.00#
bash-3.00# vxdisk -o alldgs list
DEVICE TYPE DISK GROUP STATUS
c0t0d0s2 auto:sliced rootdisk rootdg online
c0t1d0s2 auto:sliced disk01 dg_app_01 online
c2t50060E8003EB5E0Cd0s2 auto:sliced - (dg_app_02) online ecopy_enabled
c2t50060E8003EB5E0Cd21s2 auto:cdsdisk - (vxfencoorddg) online ecopy_enabled
c2t50060E8003EB5E0Cd22s2 auto:cdsdisk - (vxfencoorddg) online
c5t50060E8003EB5E2Dd4s2 auto:cdsdisk disk-01 dg_bmpr_redo_mirror online shared ecopy_enabled
c5t50060E8003EB5E2Dd5s2 auto:cdsdisk disk-02 dg_bmpr_redo_mirror online shared ecopy_enabled
c5t50060E8003EB5E2Dd6s2 auto:cdsdisk disk-03 dg_bmpr_redo_mirror online shared ecopy_enabled
c6t0d0s2 auto:sliced rootmirr rootdg online
c6t1d0s2 auto:sliced disk02 dg_app_01 online
c6t2d0s2 auto:sliced rootmirror2 rootdg online
bash-3.00#
bash-3.00#
bash-3.00#
bash-3.00# vxprint -Ath |grep”^v”|grep 512 |sort
bash: grep^v: command not found
bash-3.00# vxprint -Ath |grep “^v”|grep 512 |sort
v rlv_bmpr1_0512_001 - ENABLED ACTIVE 1048576 SELECT - gen
v rlv_bmpr1_0512_001 - ENABLED ACTIVE 1048576 SELECT - gen
v rlv_bmpr1_0512_001 - ENABLED ACTIVE 1048576 SELECT - gen
v rlv_bmpr1_0512_002 - ENABLED ACTIVE 1048576 SELECT - gen
rlv_bmpr_16384_raw_064-01 gen
v rlv_bmpr_16384_raw_065 - ENABLED ACTIVE 33554432 SELECT rlv_bmpr_16384_raw_065-01 gen
v rlv_bmpr_16384_raw_066 - ENABLED ACTIVE 33554432 SELECT rlv_bmpr_16384_raw_066-01 gen
bash-3.00#
bash-3.00#
bash-3.00# echo |format|/usr/xpg4/bin/grep -f /var/tmp/lista_dischi
c4t50060E8003EB5E3Dd82: configured with capacity of 13.57GB
989. c4t50060E8003EB5E3Dd46 <HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
995. c4t50060E8003EB5E3Dd52 <HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
1001. c4t50060E8003EB5E3Dd58 <HP-OPEN-E-SUN-2104 cyl 19757 alt 2 hd 15 sec 96>
1002. c4t50060E8003EB5E3Dd59 <HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
1003. c4t50060E8003EB5E3Dd60 <HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
1053. c4t50060E8003EB5E3Dd110 <HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
1054. c4t50060E8003EB5E3Dd111 <HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
1055. c4t50060E8003EB5E3Dd112 <HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
1056. c4t50060E8003EB5E3Dd113 <HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
1057. c4t50060E8003EB5E3Dd114 <HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
1058. c4t50060E8003EB5E3Dd115 <HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
1059. c4t50060E8003EB5E3Dd116 <HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
1060. c4t50060E8003EB5E3Dd117 <HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
bash-3.00#
bash-3.00#
bash-3.00#
bash-3.00#
bash-3.00# cat /var/tmp/lista_dischi
c4t50060E8003EB5E3Dd46
c4t50060E8003EB5E3Dd95
c4t50060E8003EB5E3Dd52
c4t50060E8003EB5E3Dd97
c4t50060E8003EB5E3Dd79
c4t50060E8003EB5E3Dd80
c4t50060E8003EB5E3Dd81
c4t50060E8003EB5E3Dd82
bash-3.00# for i in `cat /var/tmp/lista_dischi`
> do
> echo $i
> dd if=/dev/zero of=/dev/rdsk/$i bs=1024k count=200
> sleep 1
> done
c4t50060E8003EB5E3Dd46
200+0 records in
200+0 records out
c4t50060E8003EB5E3Dd95
200+0 records in
200+0 records out
bash-3.00#
bash-3.00# dd if=/dev/zero of=/dev/rdsk/c4t50060E8003EB5E3Dd81 bs=1024k count=200
write: No space left on device
1+0 records in
1+0 records out
bash-3.00# echo |format |grep c4t50060E8003EB5E3Dd81
1024. c4t50060E8003EB5E3Dd81 <HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
bash-3.00# format c4t50060E8003EB5E3Dd81
selecting c4t50060E8003EB5E3Dd81
[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
!<cmd> – execute <cmd>, then return
quit
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
!<cmd> – execute <cmd>, then return
quit
partition> p
Current partition table (original):
Total disk cylinders available: 19757 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
1 unassigned wm 0 0 (0/0/0) 0
2 backup wu 0 – 19756 13.57GB (19757/0/0) 28450080
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 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
partition> q
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
!<cmd> – execute <cmd>, then return
quit
format> q
bash-3.00# prtvtoc /dev/rdsk/c4t50060E8003EB5E3Dd72|fmthard -s – /dev/rdsk/c4t50060E8003EB5E3Dd81s2
prtvtoc: /dev/rdsk/c4t50060E8003EB5E3Dd72: Not a raw device
fmthard: New volume table of contents now in place.
bash-3.00# for i in `cat /var/tmp/lista_dischi`; do echo $i; dd if=/dev/zero of=/dev/rdsk/${i}s2 bs=1024k count=200; sleep 1; done
c4t50060E8003EB5E3Dd46
200+0 records in
200+0 records out
c4t50060E8003EB5E3Dd81
200+0 records in
200+0 records out
c4t50060E8003EB5E3Dd82
dd: /dev/rdsk/c4t50060E8003EB5E3Dd82s2: open: I/O error
bash-3.00# format c4t50060E8003EB5E3Dd82
c4t50060E8003EB5E3Dd82: configured with capacity of 13.57GB
selecting c4t50060E8003EB5E3Dd82
[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
!<cmd> – execute <cmd>, then return
quit
format> ^C
bash-3.00#
bash-3.00# uname -a
SunOS h3mis708 5.10 Generic_125100-10 sun4u sparc SUNW,Sun-Fire-15000
bash-3.00#
bash-3.00# format c4t50060E8003EB5E3Dd82
bash-3.00# cat /var/tmp/lista_dischi|head
c4t50060E8003EB5E3Dd46
c4t50060E8003EB5E3Dd95
c4t50060E8003EB5E3Dd52
c4t50060E8003EB5E3Dd97
c4t50060E8003EB5E3Dd99
c4t50060E8003EB5E3Dd65
c4t50060E8003EB5E3Dd101
c4t50060E8003EB5E3Dd104
c4t50060E8003EB5E3Dd93
c4t50060E8003EB5E3Dd66
bash-3.00# format c4t50060E8003EB5E3Dd46
c4t50060E8003EB5E3Dd46: configured with capacity of 13.57GB
selecting c4t50060E8003EB5E3Dd46
[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
!<cmd> – execute <cmd>, then return
quit
format> t
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. HP-OPEN-E-SUN-2114
20. other
Specify disk type (enter its number)[19]: 0
c4t50060E8003EB5E3Dd46: configured with capacity of 13.57GB
<HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
selecting c4t50060E8003EB5E3Dd46
[disk formatted]
Disk not labeled. Label it now? y
format> q
bash-3.00# vi /tmp/command
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
t
0
“/tmp/command” [New file] 3 lines, 6 characters
bash-3.00# for i in `cat /var/tmp/lista_dischi`; do echo $i; format $i < /tmp/command; sleep 1; done
c4t50060E8003EB5E3Dd46
selecting c4t50060E8003EB5E3Dd46
[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
!<cmd> – execute <cmd>, then return
quit
format>
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. HP-OPEN-E-SUN-2114
20. other
Specify disk type (enter its number)[19]: c4t50060E8003EB5E3Dd46: configured with capacity of 13.57GB
<HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
selecting c4t50060E8003EB5E3Dd46
[disk formatted]
format> Ready to label disk, continue?
c4t50060E8003EB5E3Dd95
c4t50060E8003EB5E3Dd95: configured with capacity of 13.57GB
selecting c4t50060E8003EB5E3Dd95
[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
!<cmd> – execute <cmd>, then return
quit
format>
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. HP-OPEN-E-SUN-2114
20. other
Specify disk type (enter its number)[19]: c4t50060E8003EB5E3Dd95: configured with capacity of 13.57GB
<HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
selecting c4t50060E8003EB5E3Dd95
[disk formatted]
Disk not labeled. Label it now? `l’ is not expected.
Disk not labeled. Label it now?
c4t50060E8003EB5E3Dd52
c4t50060E8003EB5E3Dd52: configured with capacity of 13.57GB
selecting c4t50060E8003EB5E3Dd52
[disk formatted]
^C
^C
bash-3.00# vi /tmp/command
t
0
l
~
~
~
~
~
~
~
“/tmp/command” 4 lines, 8 characters
bash-3.00# for i in `cat /var/tmp/lista_dischi`; do echo $i; format $i < /tmp/command; sleep 1; done
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. HP-OPEN-E-SUN-2114
20. other
Specify disk type (enter its number)[19]: c4t50060E8003EB5E3Dd80: configured with capacity of 13.57GB
<HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
selecting c4t50060E8003EB5E3Dd80
[disk formatted]
Disk not labeled. Label it now? format> Ready to label disk, continue?
c4t50060E8003EB5E3Dd81
c4t50060E8003EB5E3Dd81: configured with capacity of 13.57GB
selecting c4t50060E8003EB5E3Dd81
[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
!<cmd> – execute <cmd>, then return
quit
format>
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. HP-OPEN-E-SUN-2114
20. other
Specify disk type (enter its number)[19]: c4t50060E8003EB5E3Dd81: configured with capacity of 13.57GB
<HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
selecting c4t50060E8003EB5E3Dd81
[disk formatted]
Disk not labeled. Label it now? format> Ready to label disk, continue?
c4t50060E8003EB5E3Dd82
c4t50060E8003EB5E3Dd82: configured with capacity of 13.57GB
selecting c4t50060E8003EB5E3Dd82
[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
!<cmd> – execute <cmd>, then return
quit
format>
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. HP-OPEN-E-SUN-2114
20. other
Specify disk type (enter its number)[19]: c4t50060E8003EB5E3Dd82: configured with capacity of 13.57GB
<HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
selecting c4t50060E8003EB5E3Dd82
[disk formatted]
Disk not labeled. Label it now? format> Ready to label disk, continue?
bash-3.00#
bash-3.00#
bash-3.00#
bash-3.00#
bash-3.00# echo |format|/usr/xpg4/bin/grep -f /var/tmp/lista_dischi
989. c4t50060E8003EB5E3Dd46 <HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
995. c4t50060E8003EB5E3Dd52 <HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
1001. c4t50060E8003EB5E3Dd58 <HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
1002. c4t50060E8003EB5E3Dd59 <HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
1003. c4t50060E8003EB5E3Dd60 <HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
1004. c4t50060E8003EB5E3Dd61 <HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
1005. c4t50060E8003EB5E3Dd62 <HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
1006. c4t50060E8003EB5E3Dd63 <HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
1007. c4t50060E8003EB5E3Dd64 <HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
1057. c4t50060E8003EB5E3Dd114 <HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
1058. c4t50060E8003EB5E3Dd115 <HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
1059. c4t50060E8003EB5E3Dd116 <HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
1060. c4t50060E8003EB5E3Dd117 <HP-OPEN-E-SUN-2114 cyl 19757 alt 2 hd 15 sec 96>
bash-3.00# vxdctl enable
You have new mail in /var/mail//root
bash-3.00# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c0t0d0s2 auto:sliced rootdisk rootdg online
c0t1d0s2 auto:sliced disk01 dg_app_01 online
c2t50060E8003EB5E0Cd0s2 auto:sliced - - online
c2t50060E8003EB5E0Cd21s2 auto:cdsdisk - - online ecopy_enabled
c2t50060E8003EB5E0Cd22s2 auto:cdsdisk - - online ecopy_enabled
c2t50060E8003EB5E0Cd23s2 auto:cdsdisk - - online ecopy_enabled
c2t50060E8003EB5E0Cd232s2 auto:sliced dg_bmpr01 dg_bmpr2_ofa online shared ecopy_enabled
c5t50060E8003EB5E2Dd5s2 auto:cdsdisk disk-02 dg_bmpr_redo_mirror online shared ecopy_enabled
c5t50060E8003EB5E2Dd6s2 auto:cdsdisk disk-03 dg_bmpr_redo_mirror online shared ecopy_enabled
c6t0d0s2 auto:sliced rootmirr rootdg online
c6t1d0s2 auto:sliced disk02 dg_app_01 online
c6t2d0s2 auto:sliced rootmirror2 rootdg online
bash-3.00#
bash-3.00#
bash-3.00#
bash-3.00# cat /var/tmp/lista_dischi|head
c4t50060E8003EB5E3Dd46
c4t50060E8003EB5E3Dd95
c4t50060E8003EB5E3Dd52
c4t50060E8003EB5E3Dd97
c4t50060E8003EB5E3Dd99
c4t50060E8003EB5E3Dd65
c4t50060E8003EB5E3Dd101
c4t50060E8003EB5E3Dd104
c4t50060E8003EB5E3Dd93
c4t50060E8003EB5E3Dd66
bash-3.00# for i in `cat /var/tmp/lista_dischi`
> do
> echo $i
> vxdisksetup -i $i format=sliced
> sleep 1
> done
c4t50060E8003EB5E3Dd46
VxVM vxdisksetup ERROR V-5-2-3535 c4t50060E8003EB5E3Dd46s2: Invalid dmpnodename for disk device c4t50060E8003EB5E3Dd46.
c4t50060E8003EB5E3Dd95
VxVM vxdisksetup ERROR V-5-2-3535 c4t50060E8003EB5E3Dd95s2: Invalid dmpnodename for disk device c4t50060E8003EB5E3Dd95.
c4t50060E8003EB5E3Dd52
^Cc4t50060E8003EB5E3Dd97
^C^C
bash-3.00#
bash-3.00#
bash-3.00#
bash-3.00#
bash-3.00#
bash-3.00# cat /var/tmp/lista_LUN
05:38 60254 13893 FREE_00060254 OPEN-E-SUN RAID1 3-1 CL3n /dev/rdsk/c2t50060E8003EB5E2Cd46s2 CL3p /dev/rdsk/c5t50060E8003EB5E2Dd46s2 CL4n /dev/rdsk/c3t50060E8003EB5E3Cd46s2 CL4p /dev/rdsk/c4t50060E8003EB5E3Dd46s2
06:2d 60254 13893 FREE_00060254 OPEN-E-SUN RAID1 4-1 CL3n /dev/rdsk/c2t50060E8003EB5E2Cd95s2 CL3p /dev/rdsk/c5t50060E8003EB5E2Dd95s2 CL4n /dev/rdsk/c3t50060E8003EB5E3Cd95s2 CL4p /dev/rdsk/c4t50060E8003EB5E3Dd95s2
05:d9 60254 13893 FREE_00060254 OPEN-E-SUN RAID1 3-9 CL3n /dev/rdsk/c2t50060E8003EB5E2Cd81s2 CL3p /dev/rdsk/c5t50060E8003EB5E2Dd81s2 CL4n /dev/rdsk/c3t50060E8003EB5E3Cd81s2 CL4p /dev/rdsk/c4t50060E8003EB5E3Dd81s2
05:dc 60254 13893 FREE_00060254 OPEN-E-SUN RAID1 3-9 CL3n /dev/rdsk/c2t50060E8003EB5E2Cd82s2 CL3p /dev/rdsk/c5t50060E8003EB5E2Dd82s2 CL4n /dev/rdsk/c3t50060E8003EB5E3Cd82s2 CL4p /dev/rdsk/c4t50060E8003EB5E3Dd82s2
bash-3.00# cat /var/tmp/lista_LUN |grep -v “^$”|awk -F’/’ ‘{ print $3 }’
rdsk
rdsk
rdsk
rdsk
rdsk
rdsk
rdsk
bash-3.00# cat /var/tmp/lista_LUN |grep -v “^$”|awk -F’/’ ‘{ print $4 }’
c2t50060E8003EB5E2Cd46s2 CL3p
c2t50060E8003EB5E2Cd95s2 CL3p
c2t50060E8003EB5E2Cd52s2 CL3p
c2t50060E8003EB5E2Cd80s2 CL3p
c2t50060E8003EB5E2Cd81s2 CL3p
c2t50060E8003EB5E2Cd82s2 CL3p
bash-3.00# cat /var/tmp/lista_LUN |grep -v “^$”|awk -F’/’ ‘{ print $4 }’|cut -d’s’ -f1
c2t50060E8003EB5E2Cd46
c2t50060E8003EB5E2Cd95
c2t50060E8003EB5E2Cd52
c2t50060E8003EB5E2Cd97
c2t50060E8003EB5E2Cd80
c2t50060E8003EB5E2Cd81
c2t50060E8003EB5E2Cd82
bash-3.00# cat /var/tmp/lista_LUN |grep -v “^$”|awk -F’/’ ‘{ print $4 }’|cut -d’s’ -f1 > /var/tmp/lista_dischi
bash-3.00# for i in `cat /var/tmp/lista_dischi`; do echo $i; vxdisksetup -i $i format=sliced; sleep 1; done
c2t50060E8003EB5E2Cd46
c2t50060E8003EB5E2Cd95
c2t50060E8003EB5E2Cd52
c2t50060E8003EB5E2Cd97
c2t50060E8003EB5E2Cd99
c2t50060E8003EB5E2Cd65
c2t50060E8003EB5E2Cd101
c2t50060E8003EB5E2Cd104
c2t50060E8003EB5E2Cd93
c2t50060E8003EB5E2Cd66
c2t50060E8003EB5E2Cd88
c2t50060E8003EB5E2Cd72
c2t50060E8003EB5E2Cd106
c2t50060E8003EB5E2Cd83
c2t50060E8003EB5E2Cd108
c2t50060E8003EB5E2Cd110
^Cc2t50060E8003EB5E2Cd114
^C^C
bash-3.00#
bash-3.00# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c0t0d0s2 auto:sliced rootdisk rootdg online
c0t1d0s2 auto:sliced disk01 dg_app_01 online
c2t50060E8003EB5E0Cd0s2 auto:sliced - - online
c2t50060E8003EB5E0Cd21s2 auto:cdsdisk - - online ecopy_enabled
c2t50060E8003EB5E0Cd22s2 auto:cdsdisk - - online ecopy_enabled
c5t50060E8003EB5E2Dd6s2 auto:cdsdisk disk-03 dg_bmpr_redo_mirror online shared ecopy_enabled
c6t0d0s2 auto:sliced rootmirr rootdg online
c6t1d0s2 auto:sliced disk02 dg_app_01 online
c6t2d0s2 auto:sliced rootmirror2 rootdg online
bash-3.00#
bash-3.00# for i in `cat /var/tmp/lista_dischi`; do echo $i; vxdisksetup -i $i format=sliced; sleep 1; done
bash-3.00# cat /var/tmp/lista_dischi|head -20
c2t50060E8003EB5E2Cd46
c2t50060E8003EB5E2Cd95
c2t50060E8003EB5E2Cd52
c2t50060E8003EB5E2Cd97
c2t50060E8003EB5E2Cd99
c2t50060E8003EB5E2Cd108
c2t50060E8003EB5E2Cd110
c2t50060E8003EB5E2Cd114
c2t50060E8003EB5E2Cd112
c2t50060E8003EB5E2Cd116
c2t50060E8003EB5E2Cd58
bash-3.00# cat /var/tmp/lista_dischi|head -20|tail -5
c2t50060E8003EB5E2Cd110
c2t50060E8003EB5E2Cd114
c2t50060E8003EB5E2Cd112
c2t50060E8003EB5E2Cd116
c2t50060E8003EB5E2Cd58
bash-3.00# for i in `cat /var/tmp/lista_dischi|head -20|tail -5`; do echo $i; vxdisksetup -i $i format=sliced; sleep 1; done
bash-3.00# #for i in `cat /var/tmp/lista_dischi|head -20|tail -5`; do echo $i; vxdisksetup -i $i format=sliced; sleep 1; done
bash-3.00# date
Wed Nov 19 16:44:24 CET 2008
bash-3.00# date
Wed Nov 19 16:44:25 CET 2008
bash-3.00# date
Wed Nov 19 16:45:08 CET 2008
bash-3.00# for i in `cat /var/tmp/lista_dischi|head -20|tail -5`; do echo $i; vxdisksetup -i $i format=sliced; sleep 1; done
c2t50060E8003EB5E2Cd110
c2t50060E8003EB5E2Cd114
c2t50060E8003EB5E2Cd112
c2t50060E8003EB5E2Cd116
c2t50060E8003EB5E2Cd58
bash-3.00# for i in `cat /var/tmp/lista_dischi|head -25|tail -5`; do echo $i; vxdisksetup -i $i format=sliced; sleep 1; done
c2t50060E8003EB5E2Cd96
c2t50060E8003EB5E2Cd98
c2t50060E8003EB5E2Cd100
c2t50060E8003EB5E2Cd102
c2t50060E8003EB5E2Cd105
bash-3.00#
bash-3.00# exit
you have mail
# Connection to h3mis708 closed.
You have new mail in /var/mail/root
root@h3mis000 /-> exit
root@h3mis000 /-> ^D
dagliog@h3mis000$logout
ILOM
bash-2.05$ ssh -l root 10.219.82.191
Password:
Password:
Waiting for daemons to initialize…
Daemons ready
Sun(TM) Integrated Lights Out Manager
Version 2.0.4.26.d
Copyright 2008 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Warning: password is set to factory default.
->
->
-> start /SP/console
Are you sure you want to start /SP/console (y/n)? y
Serial console started. To stop, type #.
h3fas115 console login:
——————————————————————————————————
Log in to the ILOM SP. User = root
Pwd = changeme
Set the working directory. cd /SP/network
Enter the following commands to The following are example values
specify a static Ethernet configuration. set pendingipaddress=129.144.82.26
set pendingipnetmask=255.255.255.0
Note that there are no spaces in set pendingipgateway=129.144.82.254
command line structure. set commitpending=true
Note that the last command requires
several seconds to complete.
Verify the changes. show /SP/network
Log out of the ILOM SP. Either exit from the ssh connection or use
the logout button on the web GUI.
lanconsole 10.219.82.189 22 h3mis113lan
lanconsole 10.219.82.190 22 h3mis114lan
lanconsole 10.219.82.191 22 h3mis115lan
lanconsole 10.219.82.192 22 h3mis116lan
ILOM / ALOM
Quick note:
root:changeme # default password
start /SYS # power on
stop /SYS # power off
reset /SYS # reset
start /SP/console # login into console
stop /SP/console # se non puoi entrare in console che era bloccata
ILOM / ALOM is a management interface for sun server. You can even power off or power on the machine or make some BIOS / OpenFirmware setups. You can also use a management Ethernet interface for a java virtual screen or CDROM.
Setting up an IP for the Ethernet interface:
cd /SP/network
set state=enabled
set pendingipaddress=10.219.82.189
set pendingipdiscovery=static
set pendingipnetmask=255.255.252.0
set pendingipgateway=10.219.83.254
set commitpending=true
Afterwards https://10.2.3.4
set /SP/services/http servicestate=disabled
set /SP/services/https servicestate=disabled
IPSEC
SunOS h3mis045 5.8 Generic_117350-60 sun4u sparc SUNW,Sun-Fire-15000
bash-2.03# cat /etc/inet/keyfile
# TUNNEL BCK
#add ah spi 0×8bcd2147 src 10.213.164.67 dst 10.213.164.75 auth_alg sha1 authkey 3031323334353637383930313233343536373839
#add ah spi 0×8bcd2145 src 10.213.164.75 dst 10.213.164.67 auth_alg sha1 authkey 3031323334353637383930313233343536373839
#add esp spi 0×8bcd1408 src 10.213.164.67 dst 10.213.164.75 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
# TUNNEL PROD
#add ah spi 0×8bcd2144 src 10.213.35.10 dst 10.213.35.8 auth_alg sha1 authkey 3031323334353637383930313233343536373839
#add ah spi 0×8bcd1405 src 10.213.35.8 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839
#add esp spi 0×8bcd1407 src 10.213.35.8 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
#add esp spi 0×8bcd2146 src 10.213.35.10 dst 10.213.35.8 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
# VERSO HP
#add ah spi 0×8bcd2144 src 10.213.35.10 dst 10.213.38.179 auth_alg sha1 authkey 3031323334353637383930313233343536373839
#add ah spi 0×8bcd1405 src 10.213.38.179 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839
#add esp spi 0×8bcd1407 src 10.213.38.179 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
#add esp spi 0×8bcd2146 src 10.213.35.10 dst 10.213.38.179 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
#h3mis045-h3mis710
add ah spi 0×8bcd1406 src 10.213.35.10 dst 10.213.35.30 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add ah spi 0×8bcd1406 src 10.213.35.30 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add esp spi 0×8bcd1406 src 10.213.35.30 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
add esp spi 0×8bcd1406 src 10.213.35.10 dst 10.213.35.30 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
#h3mis045-h3mis412
add ah spi 0×8bcd1405 src 10.213.35.10 dst 10.213.35.72 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add ah spi 0×8bcd1405 src 10.213.35.72 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add esp spi 0×8bcd1405 src 10.213.35.72 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
add esp spi 0×8bcd1405 src 10.213.35.10 dst 10.213.35.72 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
#h3mis045-h3mis043
add ah spi 0×8bcd1407 src 10.213.35.10 dst 10.213.35.8 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add ah spi 0×8bcd1407 src 10.213.35.8 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add esp spi 0×8bcd1407 src 10.213.35.8 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
add esp spi 0×8bcd1407 src 10.213.35.10 dst 10.213.35.8 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
#h3mis045-h3mis054
add ah spi 0×8bcd1408 src 10.213.35.10 dst 10.213.35.23 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add ah spi 0×8bcd1408 src 10.213.35.23 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add esp spi 0×8bcd1408 src 10.213.35.23 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
add esp spi 0×8bcd1408 src 10.213.35.10 dst 10.213.35.23 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
#h3mis045-dCRM02EPAPI/h3mis054
add ah spi 0×8bcd1409 src 10.213.35.10 dst 10.213.35.210 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add ah spi 0×8bcd1409 src 10.213.35.210 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add esp spi 0×8bcd1409 src 10.213.35.210 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
add esp spi 0×8bcd1409 src 10.213.35.10 dst 10.213.35.210 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
#h3mis045-h3fah003
#add ah spi 0×8bcd1409 src 10.213.35.10 dst 10.213.35.210 auth_alg sha1 authkey 3031323334353637383930313233343536373839
#add ah spi 0×8bcd1409 src 10.213.35.210 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add esp spi 0×8bcd0101 src 10.218.202.15 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
add esp spi 0×8bcd0101 src 10.213.35.10 dst 10.218.202.15 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
#h3mis045-h3fah004
add esp spi 0×8bcd0102 src 10.218.202.16 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
add esp spi 0×8bcd0102 src 10.213.35.10 dst 10.218.202.16 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
#h3mis045-dEDW12UBIS
add esp spi 0×8bcd0103 src 10.218.202.11 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
add esp spi 0×8bcd0103 src 10.213.35.10 dst 10.218.202.11 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
#h3mis045-h3fah007
add esp spi 0×8bcd0104 src 10.218.202.19 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
add esp spi 0×8bcd0104 src 10.213.35.10 dst 10.218.202.19 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
#h3mis045-h3fah008
add esp spi 0×8bcd0105 src 10.218.202.20 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
add esp spi 0×8bcd0105 src 10.213.35.10 dst 10.218.202.20 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
#h3mis045-dEDW13USAGE
add esp spi 0×8bcd0106 src 10.218.202.13 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
add esp spi 0×8bcd0106 src 10.213.35.10 dst 10.218.202.13 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
#h3mis045bck-h3mis056bck
add ah spi 0×6bcd780e src 10.213.164.67 dst 10.213.164.75 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add ah spi 0×6bcd780e src 10.213.164.75 dst 10.213.164.67 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add esp spi 0×6bcd780e src 10.213.164.75 dst 10.213.164.67 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
add esp spi 0×6bcd780e src 10.213.164.67 dst 10.213.164.75 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
bash-2.03# cat /etc/inet/ipsecinit.conf
#h3mis045-h3mis710
{saddr 10.213.35.10 daddr 10.213.35.30} apply {encr_algs 3des auth_algs sha1 sa shared}
{saddr 10.213.35.30 daddr 10.213.35.10} permit {encr_algs 3des auth_algs sha1}
#h3mis045-h3mis412
{saddr 10.213.35.10 daddr 10.213.35.72} apply {encr_algs 3des auth_algs sha1 sa shared}
{saddr 10.213.35.72 daddr 10.213.35.10} permit {encr_algs 3des auth_algs sha1}
#h3mis045-h3mis043
{saddr 10.213.35.10 daddr 10.213.35.8} apply {encr_algs 3des auth_algs sha1 sa shared}
{saddr 10.213.35.8 daddr 10.213.35.10} permit {encr_algs 3des auth_algs sha1}
#h3mis045-h3mis054
{saddr 10.213.35.10 daddr 10.213.35.23} apply {encr_algs 3des auth_algs sha1 sa shared}
{saddr 10.213.35.23 daddr 10.213.35.10} permit {encr_algs 3des auth_algs sha1}
#h3mis045-dCRM03ADM/h3mis056
{saddr 10.213.35.10 daddr 10.213.35.210} apply {encr_algs 3des auth_algs sha1 sa shared}
{saddr 10.213.35.210 daddr 10.213.35.10} permit {encr_algs 3des auth_algs sha1}
# VERSO HP
#h3mis045-h3fah003
{saddr 10.213.35.10 daddr 10.218.202.15} apply {encr_algs 3des sa shared}
{saddr 10.218.202.15 daddr 10.213.35.10} permit {encr_algs 3des}
#h3mis045-h3fah004
{saddr 10.213.35.10 daddr 10.218.202.16} apply {encr_algs 3des sa shared}
{saddr 10.218.202.16 daddr 10.213.35.10} permit {encr_algs 3des}
#h3mis045-dEDW12UBIS
{saddr 10.213.35.10 daddr 10.218.202.11} apply {encr_algs 3des sa shared}
{saddr 10.218.202.11 daddr 10.213.35.10} permit {encr_algs 3des}
#h3mis045-h3fah007
{saddr 10.213.35.10 daddr 10.218.202.19} apply {encr_algs 3des sa shared}
{saddr 10.218.202.19 daddr 10.213.35.10} permit {encr_algs 3des}
#h3mis045-h3fah008
{saddr 10.213.35.10 daddr 10.218.202.20} apply {encr_algs 3des sa shared}
{saddr 10.218.202.20 daddr 10.213.35.10} permit {encr_algs 3des}
#h3mis045-dEDW13USAGE
{saddr 10.213.35.10 daddr 10.218.202.13} apply {encr_algs 3des sa shared}
{saddr 10.218.202.13 daddr 10.213.35.10} permit {encr_algs 3des}
#h3mis045bck-h3mis056bck
{saddr 10.213.164.67 daddr 10.213.164.75} apply {encr_algs 3des auth_algs sha1 sa shared}
{saddr 10.213.164.75 daddr 10.213.164.67} permit {encr_algs 3des auth_algs sha1}
——————————————————————————————————————————————-
SunOS h3mis043 5.10 Generic_138888-01 sun4u sparc SUNW,Sun-Fire-15000
bash-3.00# cat keyfile
#h3mis043-h3mis045
add ah spi 0×8bcd1407 src 10.213.35.10 dst 10.213.35.8 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add ah spi 0×8bcd1407 src 10.213.35.8 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add esp spi 0×8bcd1407 src 10.213.35.8 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
add esp spi 0×8bcd1407 src 10.213.35.10 dst 10.213.35.8 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
#h3mis043-h3mis056
add ah spi 0×8bcd140c src 10.213.35.25 dst 10.213.35.8 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add ah spi 0×8bcd140c src 10.213.35.8 dst 10.213.35.25 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add esp spi 0×8bcd140c src 10.213.35.8 dst 10.213.35.25 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
add esp spi 0×8bcd140c src 10.213.35.25 dst 10.213.35.8 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
#h3mis043-dCRM03ADM
add ah spi 0×8bcd340c src 10.213.35.212 dst 10.213.35.8 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add ah spi 0×8bcd340c src 10.213.35.8 dst 10.213.35.212 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add esp spi 0×8bcd340c src 10.213.35.8 dst 10.213.35.212 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
add esp spi 0×8bcd340c src 10.213.35.212 dst 10.213.35.8 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
bash-3.00# cat ipsecinit.conf
#{laddr 10.213.164.65 raddr 10.213.164.67} apply {encr_algs 3des auth_algs sha1 sa shared}
#{laddr 10.213.164.65 raddr 10.213.164.67} permit {encr_algs 3des auth_algs sha1}
#{laddr 10.213.35.8 raddr 10.213.35.10} apply {encr_algs 3des auth_algs sha1 sa shared}
#{laddr 10.213.35.8 raddr 10.213.35.10} permit {encr_algs 3des auth_algs sha1}
#h3mis043-h3mis045
{laddr 10.213.35.8 raddr 10.213.35.10} apply {encr_algs 3des auth_algs sha1 sa shared}
{laddr 10.213.35.8 raddr 10.213.35.10} permit {encr_algs 3des auth_algs sha1}
#h3mis043-h3mis056
{laddr 10.213.35.8 raddr 10.213.35.25} apply {encr_algs 3des auth_algs sha1 sa shared}
{laddr 10.213.35.8 raddr 10.213.35.25} permit {encr_algs 3des auth_algs sha1}
#h3mis043-dCRM03ADM
{laddr 10.213.35.8 raddr 10.213.35.212} apply {encr_algs 3des auth_algs sha1 sa shared}
{laddr 10.213.35.8 raddr 10.213.35.212} permit {encr_algs 3des auth_algs sha1}
————————————————————————————————————————
ndd /dev/ipsecesp ipsecesp_status
I package sono stati installati. Prima del reboot eseguire :
ndd /dev/ipsecesp ipsecesp_status
Authentication algorithms = 2
Encryption Algorithms = 1
Dopo il reboot, invece, lo stesso comando deve restituire :
Authentication algorithms = 2
Encryption Algorithms = 3
SunOS h3mis045 5.8 Generic_117350-60 sun4u sparc SUNW,Sun-Fire-15000
bash-2.03# cat /etc/inet/keyfile
# TUNNEL BCK
#add ah spi 0×8bcd2147 src 10.213.164.67 dst 10.213.164.75 auth_alg sha1 authkey 3031323334353637383930313233343536373839
#add ah spi 0×8bcd2145 src 10.213.164.75 dst 10.213.164.67 auth_alg sha1 authkey 3031323334353637383930313233343536373839
#add esp spi 0×8bcd1408 src 10.213.164.67 dst 10.213.164.75 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
# TUNNEL PROD
#add ah spi 0×8bcd2144 src 10.213.35.10 dst 10.213.35.8 auth_alg sha1 authkey 3031323334353637383930313233343536373839
#add ah spi 0×8bcd1405 src 10.213.35.8 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839
#add esp spi 0×8bcd1407 src 10.213.35.8 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
#add esp spi 0×8bcd2146 src 10.213.35.10 dst 10.213.35.8 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
# VERSO HP
#add ah spi 0×8bcd2144 src 10.213.35.10 dst 10.213.38.179 auth_alg sha1 authkey 3031323334353637383930313233343536373839
#add ah spi 0×8bcd1405 src 10.213.38.179 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839
#add esp spi 0×8bcd1407 src 10.213.38.179 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
#add esp spi 0×8bcd2146 src 10.213.35.10 dst 10.213.38.179 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
#h3mis045-h3mis710
add ah spi 0×8bcd1406 src 10.213.35.10 dst 10.213.35.30 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add ah spi 0×8bcd1406 src 10.213.35.30 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add esp spi 0×8bcd1406 src 10.213.35.30 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
add esp spi 0×8bcd1406 src 10.213.35.10 dst 10.213.35.30 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
#h3mis045-h3mis412
add ah spi 0×8bcd1405 src 10.213.35.10 dst 10.213.35.72 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add ah spi 0×8bcd1405 src 10.213.35.72 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add esp spi 0×8bcd1405 src 10.213.35.72 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
add esp spi 0×8bcd1405 src 10.213.35.10 dst 10.213.35.72 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
#h3mis045-h3mis043
add ah spi 0×8bcd1407 src 10.213.35.10 dst 10.213.35.8 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add ah spi 0×8bcd1407 src 10.213.35.8 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add esp spi 0×8bcd1407 src 10.213.35.8 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
add esp spi 0×8bcd1407 src 10.213.35.10 dst 10.213.35.8 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
#h3mis045-h3mis054
add ah spi 0×8bcd1408 src 10.213.35.10 dst 10.213.35.23 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add ah spi 0×8bcd1408 src 10.213.35.23 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add esp spi 0×8bcd1408 src 10.213.35.23 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
add esp spi 0×8bcd1408 src 10.213.35.10 dst 10.213.35.23 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
#h3mis045-dCRM02EPAPI/h3mis054
add ah spi 0×8bcd1409 src 10.213.35.10 dst 10.213.35.210 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add ah spi 0×8bcd1409 src 10.213.35.210 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add esp spi 0×8bcd1409 src 10.213.35.210 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
add esp spi 0×8bcd1409 src 10.213.35.10 dst 10.213.35.210 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
#h3mis045-h3fah003
#add ah spi 0×8bcd1409 src 10.213.35.10 dst 10.213.35.210 auth_alg sha1 authkey 3031323334353637383930313233343536373839
#add ah spi 0×8bcd1409 src 10.213.35.210 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add esp spi 0×8bcd0101 src 10.218.202.15 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
add esp spi 0×8bcd0101 src 10.213.35.10 dst 10.218.202.15 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
#h3mis045-h3fah004
add esp spi 0×8bcd0102 src 10.218.202.16 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
add esp spi 0×8bcd0102 src 10.213.35.10 dst 10.218.202.16 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
#h3mis045-dEDW12UBIS
add esp spi 0×8bcd0103 src 10.218.202.11 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
add esp spi 0×8bcd0103 src 10.213.35.10 dst 10.218.202.11 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
#h3mis045-h3fah007
add esp spi 0×8bcd0104 src 10.218.202.19 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
add esp spi 0×8bcd0104 src 10.213.35.10 dst 10.218.202.19 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
#h3mis045-h3fah008
add esp spi 0×8bcd0105 src 10.218.202.20 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
add esp spi 0×8bcd0105 src 10.213.35.10 dst 10.218.202.20 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
#h3mis045-dEDW13USAGE
add esp spi 0×8bcd0106 src 10.218.202.13 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
add esp spi 0×8bcd0106 src 10.213.35.10 dst 10.218.202.13 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
#h3mis045bck-h3mis056bck
add ah spi 0×6bcd780e src 10.213.164.67 dst 10.213.164.75 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add ah spi 0×6bcd780e src 10.213.164.75 dst 10.213.164.67 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add esp spi 0×6bcd780e src 10.213.164.75 dst 10.213.164.67 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
add esp spi 0×6bcd780e src 10.213.164.67 dst 10.213.164.75 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
bash-2.03# cat /etc/inet/ipsecinit.conf
#h3mis045-h3mis710
{saddr 10.213.35.10 daddr 10.213.35.30} apply {encr_algs 3des auth_algs sha1 sa shared}
{saddr 10.213.35.30 daddr 10.213.35.10} permit {encr_algs 3des auth_algs sha1}
#h3mis045-h3mis412
{saddr 10.213.35.10 daddr 10.213.35.72} apply {encr_algs 3des auth_algs sha1 sa shared}
{saddr 10.213.35.72 daddr 10.213.35.10} permit {encr_algs 3des auth_algs sha1}
#h3mis045-h3mis043
{saddr 10.213.35.10 daddr 10.213.35.8} apply {encr_algs 3des auth_algs sha1 sa shared}
{saddr 10.213.35.8 daddr 10.213.35.10} permit {encr_algs 3des auth_algs sha1}
#h3mis045-h3mis054
{saddr 10.213.35.10 daddr 10.213.35.23} apply {encr_algs 3des auth_algs sha1 sa shared}
{saddr 10.213.35.23 daddr 10.213.35.10} permit {encr_algs 3des auth_algs sha1}
#h3mis045-dCRM03ADM/h3mis056
{saddr 10.213.35.10 daddr 10.213.35.210} apply {encr_algs 3des auth_algs sha1 sa shared}
{saddr 10.213.35.210 daddr 10.213.35.10} permit {encr_algs 3des auth_algs sha1}
# VERSO HP
#h3mis045-h3fah003
{saddr 10.213.35.10 daddr 10.218.202.15} apply {encr_algs 3des sa shared}
{saddr 10.218.202.15 daddr 10.213.35.10} permit {encr_algs 3des}
#h3mis045-h3fah004
{saddr 10.213.35.10 daddr 10.218.202.16} apply {encr_algs 3des sa shared}
{saddr 10.218.202.16 daddr 10.213.35.10} permit {encr_algs 3des}
#h3mis045-dEDW12UBIS
{saddr 10.213.35.10 daddr 10.218.202.11} apply {encr_algs 3des sa shared}
{saddr 10.218.202.11 daddr 10.213.35.10} permit {encr_algs 3des}
#h3mis045-h3fah007
{saddr 10.213.35.10 daddr 10.218.202.19} apply {encr_algs 3des sa shared}
{saddr 10.218.202.19 daddr 10.213.35.10} permit {encr_algs 3des}
#h3mis045-h3fah008
{saddr 10.213.35.10 daddr 10.218.202.20} apply {encr_algs 3des sa shared}
{saddr 10.218.202.20 daddr 10.213.35.10} permit {encr_algs 3des}
#h3mis045-dEDW13USAGE
{saddr 10.213.35.10 daddr 10.218.202.13} apply {encr_algs 3des sa shared}
{saddr 10.218.202.13 daddr 10.213.35.10} permit {encr_algs 3des}
#h3mis045bck-h3mis056bck
{saddr 10.213.164.67 daddr 10.213.164.75} apply {encr_algs 3des auth_algs sha1 sa shared}
{saddr 10.213.164.75 daddr 10.213.164.67} permit {encr_algs 3des auth_algs sha1}
——————————————————————————————————————————————-
SunOS h3mis043 5.10 Generic_138888-01 sun4u sparc SUNW,Sun-Fire-15000
bash-3.00# cat keyfile
#h3mis043-h3mis045
add ah spi 0×8bcd1407 src 10.213.35.10 dst 10.213.35.8 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add ah spi 0×8bcd1407 src 10.213.35.8 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add esp spi 0×8bcd1407 src 10.213.35.8 dst 10.213.35.10 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
add esp spi 0×8bcd1407 src 10.213.35.10 dst 10.213.35.8 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
#h3mis043-h3mis056
add ah spi 0×8bcd140c src 10.213.35.25 dst 10.213.35.8 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add ah spi 0×8bcd140c src 10.213.35.8 dst 10.213.35.25 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add esp spi 0×8bcd140c src 10.213.35.8 dst 10.213.35.25 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
add esp spi 0×8bcd140c src 10.213.35.25 dst 10.213.35.8 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
#h3mis043-dCRM03ADM
add ah spi 0×8bcd340c src 10.213.35.212 dst 10.213.35.8 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add ah spi 0×8bcd340c src 10.213.35.8 dst 10.213.35.212 auth_alg sha1 authkey 3031323334353637383930313233343536373839
add esp spi 0×8bcd340c src 10.213.35.8 dst 10.213.35.212 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
add esp spi 0×8bcd340c src 10.213.35.212 dst 10.213.35.8 auth_alg sha1 authkey 3031323334353637383930313233343536373839 encr_alg 3des encrkey 536c6f776c61726973636f6e74726f48502d55582e2e6368
bash-3.00# cat ipsecinit.conf
#{laddr 10.213.164.65 raddr 10.213.164.67} apply {encr_algs 3des auth_algs sha1 sa shared}
#{laddr 10.213.164.65 raddr 10.213.164.67} permit {encr_algs 3des auth_algs sha1}
#{laddr 10.213.35.8 raddr 10.213.35.10} apply {encr_algs 3des auth_algs sha1 sa shared}
#{laddr 10.213.35.8 raddr 10.213.35.10} permit {encr_algs 3des auth_algs sha1}
#h3mis043-h3mis045
{laddr 10.213.35.8 raddr 10.213.35.10} apply {encr_algs 3des auth_algs sha1 sa shared}
{laddr 10.213.35.8 raddr 10.213.35.10} permit {encr_algs 3des auth_algs sha1}
#h3mis043-h3mis056
{laddr 10.213.35.8 raddr 10.213.35.25} apply {encr_algs 3des auth_algs sha1 sa shared}
{laddr 10.213.35.8 raddr 10.213.35.25} permit {encr_algs 3des auth_algs sha1}
#h3mis043-dCRM03ADM
{laddr 10.213.35.8 raddr 10.213.35.212} apply {encr_algs 3des auth_algs sha1 sa shared}
{laddr 10.213.35.8 raddr 10.213.35.212} permit {encr_algs 3des auth_algs sha1}
————————————————————————————————————————
# SOLARIS 8
I package sono stati installati. Prima del reboot eseguire :
ndd /dev/ipsecesp ipsecesp_status
Authentication algorithms = 2
Encryption Algorithms = 1
Dopo il reboot, invece, lo stesso comando deve restituire :
Authentication algorithms = 2
Encryption Algorithms = 3
————————————————————————————————————————-
List of Selected IPsec Files and Commands
TABLE 1–3
IPsec File or Command Description
/etc/inet/ipsecinit.conf file IPsec policy file. If this file exists, IPsec is activated at
boot time.
ipsecconf command IPsec policy command. The boot scripts use ipsecconf
to read the /etc/inet/ipsecinit.conf file and
activate IPsec. Useful for viewing and modifying the
current IPsec policy, and for testing.
PF_KEY socket interface Interface for security association database. Handles
manual and automatic key management.
ipseckey command IPsec SA maintenance and keying command. ipseckey
is a command-line front end to the PF_KEY interface.
ipseckey can create, destroy, or modify security
associations.
Keys for IPsec security associations. If the
/etc/inet/secret/ipseckeys
file ipsecinit.conf exists, the ipseckeys file is
automatically read at boot time.
/etc/inet/ike/config file IKE configuration and policy file. If this file exists, the
IKE daemon, in.iked, provides automatic key
management. The management is based on rules and
global parameters in the /etc/inet/ike/config file.
See “IKE Utilities and Files†on page 53
- If you used IKE to create keying material, stop and then restart the in.iked
daemon.
# pkill in.iked
# /usr/lib/inet/in.iked
- If you added keys manually, use the ipseckey command to add the SAs to the
database. Then activate the IPsec policy with the ipsecconf command.
# ipseckey -f /etc/inet/secret/ipseckeys —————-> carica le chiavi
# ipseckey dump
# ipseckey flush
# ipsecconf -a /etc/inet/ipsecinit.conf —————-> carica i flussi e parte ipsec
# ipsecconf -f —————-> flush
NETWORK
# snoop
# snoop -d eth0 -o file_log 10.212.152.121 port 1111
1. capture packets between oomph and oops and puts it in a file named /tmp/snoop.out.
# snoop -v -o /tmp/snoop.out oomph oops
2. capture packets for a specific port:
# snoop -v -o /tmp/snoop.out port 25
3. display complete nfs packets
# snoop -v -i /tmp/snoop.out pkts nfs
4. gather nfs packets in verbose mode and put in new file named /tmp/nfs.out
# snoop -v -i /tmp/snoop.out pkts nfs -o /tmp/nfs.out
5. To capture packets between funky and pinky of type tcp or udp on port 80:
# snoop funky and pinky and port 80 and tcp or udp
Since the primitive port cannot be handled by the kernel filter, and there is also an OR
in the expression, a more efficeint way to filter is to move the OR to the end of the expression
and to use parenthesis to enforce the OR between tcp and udp:
# snoop funky and pinky and (tcp or udp) and port 80
6. vedere salita snoop
# snoop -i /tmp/file.log -v | more
# Schede di rete
# ndd -get /dev/hme link_status link_mode link_speed
# kstat -p | grep speed link fdx
# netstat -i
# lltstat -nvv ———-> sapere hb
# cat /etc/hosts
# ifconfig -a
# cat /etc/path_to_inst
# dtrace -l -m ce
# netstat -an ————> vedere porte
# Network Interface ( schede di rete )
The following are Sun released NIC driver names:
hme – FEPS chip and 10/100baseT(100Mbps) fast Ethernet
qfe – Sun Quad FastEthernet
eri – Sun Ethernet Rio Interface 10/100 Base.
ce – GigaSwift Gigabit Ethernet 1.x .
vge – Gigabit Ethernet 1.x ,
ge – Gigabit Ethernet 2.x/3.x
gem – Gigabit Ethernet MAC 1000 Base
bge – The fourth generation of Sun Gigabit Ethernet products
dmfe – Davicom 10/100Mb Ethernet Drivers(use DM9102A Ethernet chipset)
e1000g – Intel Gigabit and 82546EB based 1000-baseT driver
nge – Gigabit Ethernet Driver in Solaris 10 x8
# route ( rotte )
route add default 128.50.1.0 128.50.1.1 1
route add net 128.50.0.0 128.50.1.6 1
route change 128.50.1.6 128.50.1.5
route delete net 128.50.0.0 128.50.1.6
route flush
—————————————————————————————————–
# Virtual IP
h3mis164 e h3mis165
2 schede quad
- 1. qfe0,1,2,3
- 2. qfe4,5,6,7
1 eri0
Totale 7 porte attive e 9 indirizzi IP
root@h3mis165 # ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
eri0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.216.1.17 netmask fffffe00 broadcast 10.216.1.255
ether 0:3:ba:a:f1:b
qfe0: flags=19040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,FAILED> mtu 1500 index 3
inet 10.216.71.149 netmask ffffffe0 broadcast 10.216.71.159
groupname BIN
ether 0:3:ba:17:52:c3
qfe1: flags=9040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER> mtu 1500 index 4
inet 10.216.71.70 netmask ffffffc0 broadcast 10.216.71.127
groupname IN1
ether 0:3:ba:17:52:c4
qfe1:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
inet 10.216.71.66 netmask ffffffc0 broadcast 10.216.71.127
qfe3: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 5
inet 10.216.241.17 netmask fffffc00 broadcast 10.216.243.255
ether 0:3:ba:17:52:c6
qfe5: flags=29040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,STANDBY> mtu 1500 index 6
inet 10.216.71.150 netmask ffffffe0 broadcast 10.216.71.159
groupname BIN
ether 0:3:ba:17:52:80
qfe5:1: flags=21000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,STANDBY> mtu 1500 index 6
inet 10.216.71.148 netmask ffffffe0 broadcast 10.216.71.159
qfe6: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 7
inet 10.216.103.17 netmask ffffffc0 broadcast 10.216.103.63
ether 0:3:ba:17:52:81
qfe7: flags=39040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,FAILED,STANDBY> mtu 1500 index 8
inet 10.216.71.74 netmask ffffffc0 broadcast 10.216.71.127
groupname IN1
ether 0:3:ba:17:52:82
root@h3mis165 # cat /etc/hostname.
hostname.eri0 hostname.qfe0 hostname.qfe1 hostname.qfe3 hostname.qfe5 hostname.qfe6 hostname.qfe7
- Backup
root@h3mis165 # cat /etc/hostname.eri0
h3mis165bck
- Bin + VIP
root@h3mis165 # cat /etc/hostname.qfe0
h3mis165bin-qfe0 netmask + broadcast + group BIN deprecated -failover up addif h3mis165bin netmask + broadcast + failover up
- In + VIP
root@h3mis165 # cat /etc/hostname.qfe1
h3mis165in1-qfe1 netmask + broadcast + group IN1 deprecated -failover up addif h3mis165in1 netmask + broadcast + failover up
- OSS
root@h3mis165 # cat /etc/hostname.qfe3
h3mis165oss
- Bin ( seconda )
root@h3mis165 # cat /etc/hostname.qfe5
h3mis165bin-qfe5 netmask + broadcast + group BIN deprecated -failover standby up
- Tibco
root@h3mis165 # cat /etc/hostname.qfe6
h3mis165tbt
- In ( seconda )
root@h3mis165 # cat /etc/hostname.qfe7
h3mis165in1-qfe7 netmask + broadcast + group IN1 deprecated -failover standby up
root@h3mis165 # cat /etc/hosts
# Internet host table
127.0.0.1 localhost
# 10.1.1.1 h3mis165 loghost
# Produzione – Back-End Internal
10.216.71.149 h3mis165bin-qfe0 # Active
10.216.71.150 h3mis165bin-qfe5 # StandBy
10.216.71.148 h3mis165 h3mis165bin # VIP
# Produzione – Internal 1
10.216.71.70 h3mis165in1-qfe1 # Active
10.216.71.74 h3mis165in1-qfe7 # StandBy
10.216.71.66 h3mis165in1 # VIP
# Backup
10.216.1.17 h3mis165bck h3mis165bck-eri0
# Tibco
10.216.103.17 h3mis165tbt h3mis165tbt-qfe6
# OSS
10.216.241.17 h3mis165oss h3mis165oss-qfe3
root@h3mis165 # cat /etc/netmasks
#
# The netmasks file associates Internet Protocol (IP) address
# masks with IP network numbers.
# “decimal dot” notation, e.g:
#
# 128.32.0.0 255.255.255.0
#
10.1.1.0 255.255.255.0
10.216.71.128 255.255.255.224
10.216.0.0 255.255.254.0
10.216.232.0 255.255.252.0
10.216.240.0 255.255.252.0
10.216.71.64 255.255.255.192
10.216.103.0 255.255.255.192
root@h3mis165 #
root@h3mis165 # cat /etc/init.d/h3g_routeadd
#!/bin/sh
# Backup
/usr/sbin/route add -net 10.213.46.0/24 10.216.1.254
/usr/sbin/route add -net 10.219.246.0/26 10.216.1.254
# OSS
/usr/sbin/route add -net 10.212.64.0/19 10.216.241.254
/usr/sbin/route add -net 10.212.32.0/19 10.216.241.254
/usr/sbin/route add -net 10.212.128.0/19 10.216.241.254
/usr/sbin/route add -net 10.194.0.0/19 10.216.241.254
/usr/sbin/route add -net 10.194.128.0/19 10.216.241.254
/usr/sbin/route add -net 10.215.0.0/19 10.216.241.254
/usr/sbin/route add -net 10.213.33.0/24 10.216.241.254
/usr/sbin/route add -net 10.213.37.64/30 10.216.241.254
/usr/sbin/route add -net 10.216.230.64/19 10.216.241.254
/usr/sbin/route add -net 10.255.0.0/16 10.216.241.254
/usr/sbin/route add -host 10.195.37.128 10.216.241.254
/usr/sbin/route add -host 10.216.230.36 10.216.241.254
/usr/sbin/route add -host 10.216.230.40 10.216.241.254
# Tibco
/usr/sbin/route add -net 224.0.0.0/4 10.216.119.254
/usr/sbin/route add -net 10.215.32.0/19 10.216.119.254
/usr/sbin/route add -host 10.216.230.100 10.216.241.254 1
/usr/sbin/route add -host 10.216.230.102 10.216.241.254 1
/usr/sbin/route add -host 10.216.230.103 10.216.241.254 1
/usr/sbin/route add -host 10.216.230.104 10.216.241.254 1
root@h3mis165 #
Netmask
/etc/netmasks
10.218.208.0 255.255.254.0
10.219.88.0 255.255.248.0
#ifconfig -a
ce0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.218.208.57 netmask fffffe00 broadcast 10.218.209.255
ether 0:3:ba:6c:79:a6
ce1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 10.219.90.223 netmask fffff800 broadcast 10.219.95.255
ether 0:3:ba:6c:79:a7
IPCALC
sergio@stmitalia-sergio:~/Software$ ipcalc 10.216.103.17/26
Address: 10.216.103.17 00001010.11011000.01100111.00 010001
Netmask: 255.255.255.192 = 26 11111111.11111111.11111111.11 000000 # linee ci interessa
Wildcard: 0.0.0.63 00000000.00000000.00000000.00 111111
=>
Network: 10.216.103.0/26 00001010.11011000.01100111.00 000000 # linea ci interessa
HostMin: 10.216.103.1 00001010.11011000.01100111.00 000001
HostMax: 10.216.103.62 00001010.11011000.01100111.00 111110
Broadcast: 10.216.103.63 00001010.11011000.01100111.00 111111
Hosts/Net: 62 Class A, Private Internet
#/etc/netmask
10.216.103.0 255.255.255.192
root@h3mis165 # netstat -rvn
IRE Table: IPv4
Destination Mask Gateway Device Mxfrg Rtt Ref Flg Out In/Fwd
——————– ————— ——————– —— —– —– — — —– ——
10.195.37.128 255.255.255.255 10.216.241.254 1500* 0 1 UGH 0 0
10.216.230.36 255.255.255.255 10.216.241.254 1500* 0 1 UGH 5 0
10.216.230.100 255.255.255.255 10.216.241.254 1500* 0 1 UGH 0 0
10.216.230.102 255.255.255.255 10.216.241.254 1500* 0 1 UGH 0 0
10.216.230.103 255.255.255.255 10.216.241.254 1500* 0 1 UGH 0 0
10.216.230.40 255.255.255.255 10.216.241.254 1500* 0 1 UGH 0 0
10.216.230.104 255.255.255.255 10.216.241.254 1500* 0 1 UGH 0 0
10.213.37.64 255.255.255.252 10.216.241.254 1500* 0 1 UG 0 0
10.216.71.128 255.255.255.224 10.216.71.148 qfe5:1 1500* 0 1 U 223 0
10.216.71.128 255.255.255.224 10.216.71.148 qfe0 1500* 0 1 U 94736 0
10.216.71.128 255.255.255.224 10.216.71.148 qfe5 1500* 0 1 U 0 0
10.219.246.0 255.255.255.192 10.216.1.254 1500* 0 1 UG 0 0
10.216.71.64 255.255.255.192 10.216.71.66 qfe1:1 1500* 0 1 U 458 0
10.216.71.64 255.255.255.192 10.216.71.66 qfe1 1500* 0 1 U 0 0
10.216.71.64 255.255.255.192 10.216.71.66 qfe7 1500* 0 1 U 72533 0
10.216.103.0 255.255.255.192 10.216.103.17 qfe6 1500* 0 1 U 0 0
10.213.46.0 255.255.255.0 10.216.1.254 1500* 0 1 UG 447 0
10.213.33.0 255.255.255.0 10.216.241.254 1500* 0 1 UG 263 0
10.216.0.0 255.255.254.0 10.216.1.17 eri0 1500* 0 1 U 223 0
10.216.240.0 255.255.252.0 10.216.241.17 qfe3 1500* 0 1 U 233 0
10.194.0.0 255.255.224.0 10.216.241.254 1500* 0 1 UG 0 0
10.194.128.0 255.255.224.0 10.216.241.254 1500* 0 1 UG 0 0
10.216.224.0 255.255.224.0 10.216.241.254 1500* 0 1 UG 1115 0
10.215.0.0 255.255.224.0 10.216.241.254 1500* 0 1 UG 0 0
10.212.64.0 255.255.224.0 10.216.241.254 1500* 0 1 UG 1 0
10.212.32.0 255.255.224.0 10.216.241.254 1500* 0 1 UG 0 0
10.212.128.0 255.255.224.0 10.216.241.254 1500* 0 1 UG 0 0
10.255.0.0 255.255.0.0 10.216.241.254 1500* 0 1 UG 0 0
224.0.0.0 240.0.0.0 10.216.71.148 qfe5:1 1500* 0 1 U 0 0
default 0.0.0.0 10.216.71.158 1500* 0 1 UG 25 0
127.0.0.1 255.255.255.255 127.0.0.1 lo0 8232* 0 3 UH 72 0
—————————————————————————————————–
# Esempio chiaro IPMP
root@h3mis684 # ifconfig -a
qfe0: flags=9040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER> mtu 1500 index 2
inet 10.216.92.14 netmask ffffff80 broadcast 10.216.92.127
groupname bin
ether 0:3:ba:39:15:1c
qfe0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.216.92.13 netmask ffffff80 broadcast 10.216.92.127
qfe4: flags=69040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,STANDBY,INACTIVE> mtu 1500 index 6
inet 10.216.92.15 netmask ffffff80 broadcast 10.216.92.127
groupname bin
ether 0:3:ba:39:15:b4
root@h3mis684 # cat /etc/hosts
#BIN
10.216.92.14 h3mis684bin-qfe0
10.216.92.15 h3mis684bin-qfe4
10.216.92.13 h3mis684 h3mis684bin h3mis684bin. loghost #VIP
root@h3mis684 # cat /etc/hostname.qfe0
h3mis684bin-qfe0 netmask + broadcast + \
group bin deprecated -failover up \
addif h3mis684bin netmask + broadcast + failover up
root@h3mis684 # cat /etc/hostname.qfe4
h3mis684bin-qfe4 netmask + broadcast + \
group bin deprecated -failover standby up
root@h3mis684 # cat /etc/netmasks
10.216.240.0 255.255.252.0
10.216.92.0 255.255.255.128
10.216.0.0 255.255.254.0
10.216.124.0 255.255.255.128
root@h3mis684 #
SDS
# SDS Set Boot device alias
eeprom “nvramrc=devalias mirror /pci@1c,600000/scsi@2/sd@1,0:a”
eeprom “use-nvramrc?=true”
eeprom boot-device=”rootdisk rootmirror”
- Crear alias
ok reset-all
ok probe-scsi-all
ok show-disks
ok nvalias rootdisk path….@0,0
ok nvalias rootmirror path….@1,0
ok nvstore
ok setenv boot-device rootdisk rootmirror
ok setenv diag-device rootdisk rootmirror
ok reset
1) Creating a boot alias using nvalias from the OpenBoot[TM] PROM (OBP)
command line.
Get the device path for the boot disk:
# ls -la /dev/dsk/cxtxdxsx
Write down the entire (physical) path to be used for the alias.
Shutdown the system to the ok prompt.
Create the alias:
ok nvalias <alias> <device-path>
Example:
ok nvalias newdisk /iommu@f,e0000000/sbus@f,e0001000/esp@f,800000/sd@3,0:a
or for PCI based systems:
ok nvalias newdisk /pci@1f,0/pci@1/scsi@3,1/disk@3,0
NOTE: Although format will show the pci device with a “sd” designation, a
translation
is made as the OBP’s device tree is ‘disk’. This is the only name that the
firmware
will understand.
Modify the NVRAM so that it boots from the new alias automatically:
ok setenv boot-device newdisk
ok reset
The above will be valid till you run set-defaults or nvunalias from the ok
prompt.
******************************************************************************
2) Alternate method for creating a boot alias using nvedit.
Use the NVRAM editor to create a script that will create the boot alias at
reset:
ok nvedit
0: devalias newdisk /iommu@f,e0000000/sbus@f,e0001000/esp@f,800000/sd@3,0:a
^c (control c)
ok nvstore
ok setenv use-nvramrc? true
ok reset
******************************************************************************
3) Alternate method for creating a boot alias using existing device aliases
provided
in the OpenBoot PROM.
Use the devalias command to identify the existing device aliases:
ok devalias
The device alias names are listed on the left side of the output. Any of the
device alias names that point to disk drives can be used as boot aliases.
Use one of the device alias names to set a new boot device:
ok setenv boot-device <new device alias name>
Display the new boot device alias:
ok printenv boot-device
Test the new boot alias by resetting the machine;
ok reset
Note: The device path above is an example only; you will not necessarily
have the same path.
Note: The “0:” in the nvedit example (method 2) is the line number; do not
type it as
part of your edit.
—————————————————————————————–
# creazione raid1 e raid5 SDS
RAID 1
copiare /etc/vfstab y /etc/system
metadb -afc 3 c1t0d0s7 c1t1d0s7
metainit -f d10 1 1 c1t0d0s0
metainit d20 1 1 c1t1d0s0
metainit d0 -m d10
metaroot d0
lockfs -fa
init 6
metattach d0 d20
metainit -f d11 1 1 c1t0d0s1
metainit d21 1 1 c1t1d0s1
metainit d1 -m d11
metainit -f d13 1 1 c1t0d0s3
metainit d23 1 1 c1t1d0s3
metainit d3 -m d13
metainit -f d14 1 1 c1t0d0s4
metainit d24 1 1 c1t1d0s4
metainit d4 -m d14
metainit -f d15 1 1 c1t0d0s5
metainit d25 1 1 c1t1d0s5
metainit d5 -m d15
metainit -f d16 1 1 c1t0d0s6
metainit d26 1 1 c1t1d0s6
metainit d6 -m d16
metattach d1 d21
metattach d3 d23
metattach d4 d24
metattach d5 d25
metattach d6 d26
editar /etc/vfstab
# format crear slice 0 de los ultimos tres discos RAID 5
metainit d100 -r c1t2d0s0 c1t3d0s0 c1t4d0s0
metainit d110 -p d100 150G
metainit d111 -p d100 150G
newfs -m1 /dev/md/rdsk/d110
newfs -m1 /dev/md/rdsk/d111
mkdir /datos2
mkdir /copias
mount /dev/md/rdsk/d110 /datos2
mount /dev/md/rdsk/d111 /copias
recordarse de ponerlo en /etc/vfstab
————————————————————————————————-
- Soft Partition
creamos el metadisp d7 formato por metainit d7 9 1 c2t0d4s0 \
9 discos a 1 via 1 c2t0d5s0 \
1 c2t0d6s0 \
1 c2t0d7s0 \
1 c2t0d8s0 \
1 c2t0d9s0 \
1 c2t0d10s0 \
1 c2t0d25s0 \
1 c2t0d26s0
atachamos nuevo metainit d17 -p d7 20g (está al 95% : aumentar a 20g)
metainit d27 -p d7 20g (está al 88% : aumentar a 20g)
newfs -m 1 /dev/md/rdsk/d17
newfs -m 1 /dev/md/rdsk/d27
mkdir /mnt1
mkdir /mnt2
mount /dev/md/dsk/d17 /mnt1
mount /dev/md/dsk/d27 /mnt2
cd /u10
tar cf – . |( cd /mnt1;tar xf -)
cd /u11
tar cf – . |( cd /mnt2;tar xf -)
mirar tamaño y cambiar /etc/vfstab
- Soft Partition
metainit -f d110 1 1 c1t2d0s0
metainit d120 1 1 c1t3d0s0
metainit d100 -m d110
metattach d100 d120
metainit d101 -p d100 20g
newfs -m 1 /dev/md/rdsk/d101
mkdir /app
mount /dev/md/rdsk/d101 /app
cambiare /etc/vfstab
- echo “set md:mirrored_root_flag=1″ >> /etc/system
- dumpadm -d /dev/md/dsk/d1
- metaparam -p 0 /dev/md/dsk/d1
——————————————————————————————–
# Tolto SDS h3mis156-157
- fatto mirror su i due dischi
- abbiamo fatto un detach del secondo disco es. # metadetach d1 d21
- cosi di tutte le partizioni del mirror
- abbiamo fatto un metaroot /dev/dsk/c#t#d#s0
- controlliamo que siamo state tolte le entry en el /etc/system
- editiamo /etc/vfstab e togliamo i metadispositivi e mettiamo i dispositivi fisici
- dumpadm -d /dev/dsk/c#t#d#s1
- dopo questo facciamo un reboot
- controlliamo que salga tutto
- metaclear dei metadispositivi
- cancelliamo i metadb # metadb -d(f) /dev/….
- togliamo s7 ( partizione dei metadb dal disco di boot )
- ripartizioniamo il secondo disco di boot
SMF
Service Management Facility
The Service Management Facility was introduced in Solaris 9 as an alternative way to manage services. In Solaris 10, SMF has been made the default way to manage most services. The SMF framework has significant advantages over the legacy SVR4 mechanisms, primarily in terms of service monitoring and integration with the Fault Management Facility.
Basic Commands
The basic commands for managing services under SMF (Service Management Facility) control are svcs, svccfg and svcadm. The man pages for these commands are a good source of detailed information.
inetadm can be used to monitor services under inetd control.
Many commands require referencing the service identifier, also known as an FMRI.
svcs
* svcs -a: Lists all services currently installed, including their state.
* svcs -d FMRI: Lists dependencies for FMRI.
* svcs -D FMRI: Lists dependents for FMRI.
* svcs -l FMRI: Provides a long listing of information about FMRI; includes dependency information
* svcs -p FMRI: Shows relationships between services and processes.
* svcs -t: This change is temporary (does not persist past a boot).
* svcs -x: Explains why a service is not available.
* svcs -xv: Verbose debugging information.
svcadm
* svcadm clear FMRI: Clear faults for FMRI.
* svcadm disable FMRI: Disable FMRI.
* svcadm enable FMRI: Enable FMRI.
* svcadm refresh FMRI: Force FMRI to read config file.
* svcadm restart FMRI: Restart FMRI.
To make configuration changes to a non-inetd service, edit the configuration file, then enter the svcadm restart command.
svccfg
* svccfg: Enter interactive mode.
* svccfg -s FMRI setenv ENV_VARIABLE value: Set an environment variable for FMRI. Follow by svcadm refresh and restart commands.
inetadm
* inetadm -l FMRI: Displays properties for FMRI.
* inetadm -m FMRI property_name=value: Set a property for FMRI.
In particular, the “exec” value for an inetd-controlled service is the command line executed for that service by SMF. It may be desirable, for example, to change this value to add logging or other command-line flags.
To convert an inetd.conf file to SMF format, run the command:
inetconv -i /etc/inet/inetd.conf
Service Identifiers
Services are identified by their FMRI. (This stands for Fault Managed Resource Identifier.) An example is:
svc:/system/system-log:default
Some commands do not require the full FMRI if there is no ambiguity.
Legacy init scripts have FMRIs starting with lrc. For example:
lrc:/etc/rcS_d/S35cacheos_sh
Converted inetd services have a syntax like one of the following, depending on whether or not they are rpc services:
svc:network/service-name/protocol svc:network/rpc-service-name/rpc_protocol
SMF Service Starts
The svc.startd daemon is the master process starter and restarter for SMF. It tracks service state and manages dependencies.
Services that are managed through init scripts can be added to SMF via the inetconv command. Such additions are only monitored for status, but other SMF facilities may not work.
Maintenance
If a service is in the maintenance state, first make sure that all associated processes have died:
svcs -p FMRI
Next, (for all processes displayed by the above):
pkill -9 PID
Consult the appropriate logs in /var/svc/log to check any errors; perform any needed maintenance.
Restore the service:
svcadm clear FMRI
Scripts
The scripts that implement the startups and shutdowns are located in their usual place in /etc/init.d for the lrc services, or in /lib/svc/method for most of the other services.
Other locations may be specified for a particular service. To track down the script locations for a particular service, do something like the following:
# svccfg -s smtp
svc:/network/smtp> list
:properties
sendmail
svc:/network/smtp> select sendmail
svc:/network/smtp:sendmail> list
:properties
svc:/network/smtp:sendmail> listprop *exec
start/exec astring “/lib/svc/method/smtp-sendmail start”
stop/exec astring “/lib/svc/method/smtp-sendmail stop %{restarter/contract}” refresh/exec astring “/lib/svc/method/smtp-sendmail refresh”
Boot Messages
Boot messages are much less verbose than previously. To get verbose output, boot with the
boot -v
or
boot -m verbose
commands.
svcadm can be used to change the run levels. The FMRIs associated with the different run levels are:
* S: milestone/single-user:default
* 2: milestone/multi-user:default
* 3: milestone/multi-user-server:default
Run levels can be displayed with
who -r
SMF Profiles
SMF profiles are XML files in /var/svc/profile which list sets of service instances which are enabled and disabled.
Different SMF profiles can be used. They are stored in /var/svc/profile. To use a different one, perform the following procedure:
svccfg apply /var/svc/profile/desired_profile.xml
The local profile /var/svc/profile/site.xml allows local customizations. This profile is applied after the standard profiles.
To make a copy of the current profile for editing, run:
svccfg extract> profile-file.xml
Service Configuration Repository
Stores persistent configuration information and SMF runtime data for services.
Each service’s manifest is in an XML-formatted text file located in /var/svc/manifest. The information from the manifests is imported into the repository through svccfg import or during a reboot.
This is covered in the svccfg, svcprodp, service_bundle and svc.configd man pages.
If the repository is corrupted, it can be restored from an automatic backup using the /lib/svc/bin/restore_repository command. The svcadm refresh; svc adm restart command will make a snapshot active. Automatic snapshots are taken for initial (import of the manifest), running (when service methods are executed) and start (last successful start).
Revert to a Snapshot
The procedure to revert to a snapshot is the following:
Run svccfg in interactive mode:
svccfg
In the svc:> prompt, select the desired service with a full FMRI:
select FMRI
List the available snapshots:
listsnap
Revert to the desired snapshot:
revert desired_snapshot_label
Quit out of the svccfg interactive mode:
quit
Update the service configuration repository information:
svcadm refresh FMRI
svcadm restart FMRI
Boot Troubleshooting
To step through the SMF portion of the boot process, start with:
boot -m milestone=none
Then step through the milestones for the different boot levels:
svcadm milestone svc:/milestone/single-user:default
svcadm milestone svc:/milestone/multi-user:default
svcadm milestone svc:/milestone/multi-user-server:default
Several things should be examined if a service fails to start:
* Is the service in maintenance mode? (svcs -l FMRI)
* If so, why? Check the log file specified in the svcs -l FMRI | grep logfile output, and run svcs -xv FMRI
* If the problem has been resolved, clear the fault with svcadm clear FMRI
* Check for service dependencies with svcs -d FMRI The output from svcs -l distinguishes between optional and mandatory dependencies.
* Check the startup properties with svcprop -p start FMRI The startup for the process can be trussed to get some visibility into where it is failing by inserting a truss into the start or exec statement for the service. To do this, just add truss -f -a -o /path/service-truss.out to the beginning of the start or exec statement with an svccfg -s statement.
Additional Resources
Solaris Troubleshooting and Performance Tuning Home Page
Chapters 14 and 15 of Solaris 10’s System Administration Guide: Basic Administration have more detailes about SMF.
Some service maintenance notes are also contained in Solaris 10’s System Administration Guide: Network Services.
The BigAdmin Self Healing site.
SSH
Service Management Facility
The Service Management Facility was introduced in Solaris 9 as an alternative way to manage services. In Solaris 10, SMF has been made the default way to manage most services. The SMF framework has significant advantages over the legacy SVR4 mechanisms, primarily in terms of service monitoring and integration with the Fault Management Facility.
Basic Commands
The basic commands for managing services under SMF (Service Management Facility) control are svcs, svccfg and svcadm. The man pages for these commands are a good source of detailed information.
inetadm can be used to monitor services under inetd control.
Many commands require referencing the service identifier, also known as an FMRI.
svcs
* svcs -a: Lists all services currently installed, including their state.
* svcs -d FMRI: Lists dependencies for FMRI.
* svcs -D FMRI: Lists dependents for FMRI.
* svcs -l FMRI: Provides a long listing of information about FMRI; includes dependency information
* svcs -p FMRI: Shows relationships between services and processes.
* svcs -t: This change is temporary (does not persist past a boot).
* svcs -x: Explains why a service is not available.
* svcs -xv: Verbose debugging information.
svcadm
* svcadm clear FMRI: Clear faults for FMRI.
* svcadm disable FMRI: Disable FMRI.
* svcadm enable FMRI: Enable FMRI.
* svcadm refresh FMRI: Force FMRI to read config file.
* svcadm restart FMRI: Restart FMRI.
To make configuration changes to a non-inetd service, edit the configuration file, then enter the svcadm restart command.
svccfg
* svccfg: Enter interactive mode.
* svccfg -s FMRI setenv ENV_VARIABLE value: Set an environment variable for FMRI. Follow by svcadm refresh and restart commands.
inetadm
* inetadm -l FMRI: Displays properties for FMRI.
* inetadm -m FMRI property_name=value: Set a property for FMRI.
In particular, the “exec” value for an inetd-controlled service is the command line executed for that service by SMF. It may be desirable, for example, to change this value to add logging or other command-line flags.
To convert an inetd.conf file to SMF format, run the command:
inetconv -i /etc/inet/inetd.conf
Service Identifiers
Services are identified by their FMRI. (This stands for Fault Managed Resource Identifier.) An example is:
svc:/system/system-log:default
Some commands do not require the full FMRI if there is no ambiguity.
Legacy init scripts have FMRIs starting with lrc. For example:
lrc:/etc/rcS_d/S35cacheos_sh
Converted inetd services have a syntax like one of the following, depending on whether or not they are rpc services:
svc:network/service-name/protocol svc:network/rpc-service-name/rpc_protocol
SMF Service Starts
The svc.startd daemon is the master process starter and restarter for SMF. It tracks service state and manages dependencies.
Services that are managed through init scripts can be added to SMF via the inetconv command. Such additions are only monitored for status, but other SMF facilities may not work.
Maintenance
If a service is in the maintenance state, first make sure that all associated processes have died:
svcs -p FMRI
Next, (for all processes displayed by the above):
pkill -9 PID
Consult the appropriate logs in /var/svc/log to check any errors; perform any needed maintenance.
Restore the service:
svcadm clear FMRI
Scripts
The scripts that implement the startups and shutdowns are located in their usual place in /etc/init.d for the lrc services, or in /lib/svc/method for most of the other services.
Other locations may be specified for a particular service. To track down the script locations for a particular service, do something like the following:
# svccfg -s smtp
svc:/network/smtp> list
:properties
sendmail
svc:/network/smtp> select sendmail
svc:/network/smtp:sendmail> list
:properties
svc:/network/smtp:sendmail> listprop *exec
start/exec astring “/lib/svc/method/smtp-sendmail start”
stop/exec astring “/lib/svc/method/smtp-sendmail stop %{restarter/contract}” refresh/exec astring “/lib/svc/method/smtp-sendmail refresh”
Boot Messages
Boot messages are much less verbose than previously. To get verbose output, boot with the
boot -v
or
boot -m verbose
commands.
svcadm can be used to change the run levels. The FMRIs associated with the different run levels are:
* S: milestone/single-user:default
* 2: milestone/multi-user:default
* 3: milestone/multi-user-server:default
Run levels can be displayed with
who -r
SMF Profiles
SMF profiles are XML files in /var/svc/profile which list sets of service instances which are enabled and disabled.
Different SMF profiles can be used. They are stored in /var/svc/profile. To use a different one, perform the following procedure:
svccfg apply /var/svc/profile/desired_profile.xml
The local profile /var/svc/profile/site.xml allows local customizations. This profile is applied after the standard profiles.
To make a copy of the current profile for editing, run:
svccfg extract> profile-file.xml
Service Configuration Repository
Stores persistent configuration information and SMF runtime data for services.
Each service’s manifest is in an XML-formatted text file located in /var/svc/manifest. The information from the manifests is imported into the repository through svccfg import or during a reboot.
This is covered in the svccfg, svcprodp, service_bundle and svc.configd man pages.
If the repository is corrupted, it can be restored from an automatic backup using the /lib/svc/bin/restore_repository command. The svcadm refresh; svc adm restart command will make a snapshot active. Automatic snapshots are taken for initial (import of the manifest), running (when service methods are executed) and start (last successful start).
Revert to a Snapshot
The procedure to revert to a snapshot is the following:
Run svccfg in interactive mode:
svccfg
In the svc:> prompt, select the desired service with a full FMRI:
select FMRI
List the available snapshots:
listsnap
Revert to the desired snapshot:
revert desired_snapshot_label
Quit out of the svccfg interactive mode:
quit
Update the service configuration repository information:
svcadm refresh FMRI
svcadm restart FMRI
Boot Troubleshooting
To step through the SMF portion of the boot process, start with:
boot -m milestone=none
Then step through the milestones for the different boot levels:
svcadm milestone svc:/milestone/single-user:default
svcadm milestone svc:/milestone/multi-user:default
svcadm milestone svc:/milestone/multi-user-server:default
Several things should be examined if a service fails to start:
* Is the service in maintenance mode? (svcs -l FMRI)
* If so, why? Check the log file specified in the svcs -l FMRI | grep logfile output, and run svcs -xv FMRI
* If the problem has been resolved, clear the fault with svcadm clear FMRI
* Check for service dependencies with svcs -d FMRI The output from svcs -l distinguishes between optional and mandatory dependencies.
* Check the startup properties with svcprop -p start FMRI The startup for the process can be trussed to get some visibility into where it is failing by inserting a truss into the start or exec statement for the service. To do this, just add truss -f -a -o /path/service-truss.out to the beginning of the start or exec statement with an svccfg -s statement.
Additional Resources
Solaris Troubleshooting and Performance Tuning Home Page
Chapters 14 and 15 of Solaris 10’s System Administration Guide: Basic Administration have more detailes about SMF.
Some service maintenance notes are also contained in Solaris 10’s System Administration Guide: Network Services.
The BigAdmin Self Healing site.
UFSDUMP – UFSRESTORE
1. For this example, we are using c0t0d0s0 as a root partition. Bring the system into single-user mode (recommended).
# init -s
2. Check the partition consistency.
# fsck -m /dev/rdsk/c0t0d0s0
3. Verify the tape device status:
# mt status
Or use this command when you want to specify the raw tape device, where x is the interface:
# mt -f /dev/rmt/x status
4. Back up the system:
a) When the tape drive is attached to your local system, use this:
# ufsdump 0uf /dev/rmt/0n /
b) When you want to back up from disk to disk, for example, if you want to back up c0t0d0s0 to c0t1d0s0:
# mkdir /tmp/backup
# mount /dev/dsk/c0t1d0s0 /tmp/backup
# ufsdump 0f – / | (cd /tmp/backup;ufsrestore xvf -)
c) When you want to back up to a remote tape, use this. On a system that has a tape drive, add the following line to its /.rhosts file:
hostname root
where hostname is the name or IP of the system that will run ufsdump to perform the backup. Then run the following command:
# ufsdump 0uf remote_hostname:/dev/rmt/0n /
Restoring the OS
1. For this example, your OS disk is totally corrupted and replaced with a new disk. Go to the ok prompt and boot in single-user mode from the Solaris CD.
ok> boot cdrom -s
2. Partition your new disk in the same way as your original disk.
3. Format all slices using the newfs command. For example:
# newfs /dev/rdsk/c0t0d0s0
4. Make a new directory in /tmp:
# mkdir /tmp/slice0
5. Mount c0t0d0s0 into /tmp/slice0:
# mount /dev/dsk/c0t0d0s0 /tmp/slice0
6. Verify the status of the tape drive:
# mt status
If the tape drive is not detected, issue the following command:
# devfsadm -c tape
or
# drvconfig
# tapes
# devlinks
Verify the status of tape drive again and make sure the backup tape is in the first block or file number is zero. Use the following command to rewind the backup tape:
# mt rewind
7. Go into the /tmp/slice0 directory and you can start restoring the OS.
# cd /tmp/slice0
# ufsrestore rvf /dev/rmt/0n
If you want to restore from another disk (such as c0t1d0s0), use the following command:
# mkdir /tmp/backup
# mount /dev/dsk/c0t1d0s0 /tmp/backup
# ufsdump 0f – /tmp/backup | (cd /tmp/slice0;ufsrestore xvf -)
8. After restoring all the partitions successfully, install bootblock to make the disk bootable. This example assumes your /usr is located inside the “/” partition:
# cd /tmp/slice0/usr/platform/’uname -m’/lib/fs/ufs
# installboot bootblk /dev/rdsk/c0t0d0s0
9. To finish restoring your OS, reboot the system.
VxFs
# Path comandi Cluster
/opt/VRTSvcs/bin
——Per controllare il corretto funzionamento di VCS si utilizza il comando:
# hastatus -sum
——Per controllare il corretto funzionamento della connessione in Heartbeat dei sistemi si utilizza il comando:
# lltstat -nvv
LLT node information:
Node State Link Status Address
0 saturno OPEN
lan2 UP 00:33:6A:46:2C:78
lan9 UP 00:33:6A:46:2B:98
* 1 giove OPEN
lan2 UP 00:33:6A:46:1C:A8
lan9 UP 00:33:6A:46:2D:AD
2 CONNWAIT
…
—– I comandi seguenti effettuano il fermo del primo servizio, lo switch del secondo e controllano la nuova situazione:
# hagrp -offline moon01 -sys giove
# hagrp -switch moon02 -to saturno
# hastatus -sum
– SYSTEM STATE
– System State Frozen
A giove RUNNING 0
A saturno RUNNING 0
– GROUP STATE
– Group System Probed AutoDisabled State
B moon01 giove Y N OFFLINE
B moon01 saturno Y N OFFLINE
B moon02 giove Y N OFFLINE
B moon02 saturno Y N ONLINE
B moon03 giove Y N OFFLINE
B moon03 saturno Y N ONLINE
—–Il file /etc/gabtab contiene i comandi per l’attivazione del GAB
/sbin/gabconfig -c -f 30000 -n2
—–Il file /etc/llthosts contiene i nodi definiti sul cluster la configurazione dell’LLT:
—–Il file /etc/llttab contiene la configurazione dell’LLT:
set-node giove
set-cluster 99
link lan2 /dev/lan:2 – ether – -
link lan9 /dev/lan:9 – ether – -
link-lowpri lan1 /dev/lan:1 – ether – -
start
Per controllare lo stato di ogni singola risorsa:
# hares -state
#Resource Attribute System Value
matrix-appl State giove ONLINE
matrix-appl State saturno OFFLINE
appDB0-lsnr State giove ONLINE
appDB0-lsnr State saturno OFFLINE
appDB0-ora State giove ONLINE
appDB0-ora State saturno OFFLINE
appDB0-mnt State giove ONLINE
appDB0-mnt State saturno OFFLINE
appDB0-vol State giove ONLINE
appDB0-vol State saturno OFFLINE
appDB0-dg State giove ONLINE
appDB0-dg State saturno OFFLINE
Per ottenere il dettaglio degli attributi di ogni singola risorsa il comando e’:
# hares -display applic001-app
#Resource Attribute System Value
applic001-app Group global moon01
applic001-app Type global Application
applic001-app AutoStart global 1
applic001-app Critical global 0
applic001-app Enabled global 1
applic001-app LastOnline global giove
applic001-app MonitorOnly global 0
applic001-app ResourceOwner global unknown
applic001-app TriggerEvent global 0
applic001-app ArgListValues giove root /usr/local/VCS/script/applic001/start /usr/local/VCS/script/applic001/stop /usr/local/VCS/script/applic001/clean /usr/local/VCS/script/applic001/monitor 0 0
applic001-app ArgListValues saturno root /usr/local/VCS/script/applic001/start /usr/local/VCS/script/applic001/stop /usr/local/VCS/script/applic001/clean /usr/local/VCS/script/applic001/monitor 0 0
applic001-app ConfidenceLevel giove 100
applic001-app ConfidenceLevel saturno 0
applic001-app Flags giove
applic001-app Flags saturno
applic001-app IState giove not waiting
applic001-app IState saturno not waiting
applic001-app Probed giove 1
applic001-app Probed saturno 1
applic001-app Start giove 1
applic001-app Start saturno 0
applic001-app State giove ONLINE
applic001-app State saturno OFFLINE
applic001-app CleanProgram global /usr/local/VCS/script/applic001/clean
applic001-app MonitorProcesses global
applic001-app MonitorProgram global /usr/local/VCS/script/applic001/monitor
applic001-app PidFiles global
applic001-app StartProgram global /usr/local/VCS/script/applic001/start
applic001-app StopProgram global /usr/local/VCS/script/applic001/stop
applic001-app User global root
# ampliare file system
# vxprint -g dg_app_01 -ht
dm disk1 c0t1d0s2 auto 70975 143267904 -
dm disk2 c4t0d0s2 auto 70975 143267904 -
# df -k /app/oracle/
Filesystem kbytes used avail capacity Mounted on
/dev/vx/dsk/dg_app_01/vol_appora_01
8388608 5316304 2880370 65% /app/oracle
# vxassist -g dg_app_01 maxsize layout=mirror
# vxdg -g dg_app_01 free
# vxresize -bx -g dg_app_01 vol_appora_01 +2g
—————————————————————————————–
# path y multipath sotto veritas
vxdmpadm listctlr all ———-> lista i controller
vxdmpadm getdmpnode enclosure=enclr name —————–> lista i multipath
vxdmpadm getsubpaths ctlr=c2
vxdisk list
vxdisk list c2t50060E8003EB5E04d89s2
—————————————————————————————–
# creazione /audit
vxdg -g bootdg free —————> uscita LENGTH dividi x 2 ( vedi mega )
vxassist -g bootdg maxsize layout=mirror
vxassist -b -g bootdg make vol_audit_01 4g layout=mirror
vxtask -l list ————-> vedi processo in background
newfs /dev/vx/rdsk/rootdg/vol_audit_01
vi /etc/vfstab
/etc/security/audit_control ———>
salita h3mis112 /etc/vfstab per audit
root@h3fas112 # pg /etc/vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/vx/dsk/bootdg/swapvol - - swap - no -
/dev/vx/dsk/bootdg/rootvol /dev/vx/rdsk/bootdg/rootvol / ufs 1 no -
/dev/vx/dsk/bootdg/var /dev/vx/rdsk/bootdg/var /var ufs 1 no -
/dev/vx/dsk/bootdg/home /dev/vx/rdsk/bootdg/home /home ufs 2 yes -
/devices - /devices devfs - no -
ctfs - /system/contract ctfs - no -
objfs - /system/object objfs - no -
swap - /tmp tmpfs - yes -
#NOTE: volume rootvol (/) encapsulated partition c1t0d0s0
#NOTE: volume swapvol (swap) encapsulated partition c1t0d0s1
#NOTE: volume var (/var) encapsulated partition c1t0d0s5
#NOTE: volume home (/home) encapsulated partition c1t0d0s7
/dev/vx/dsk/bootdg/vol_audit_01 /dev/vx/rdsk/bootdg/vol_audit_01 /audit ufs 2 yes -
/dev/vx/dsk/dg_app_01/vol_ecc_01 /dev/vx/rdsk/dg_app_01/vol_ecc_01 /usr/ecc vxfs 2 yes -
RICORDATI DI MODIFICARE ANCHE IL /etc/security/audit_startup
ESEMPIO: h3fas118
499 vxassist -g bootdg maxsize layout=mirror
500 df -k /home/
501 ls -ld /audit
502 vxassist -b -g bootdg make vol_audit_01 4g layout=mirror
503 vxtask list
504 vxtask list
505 vxtask list
506 vxtask list
507 vxtask list
508 uname -a
509 newfs /dev/vx/rdsk/rootdg/vol_audit_01
510 mkdir /audit
511 mount /dev/vx/dsk/rootdg/vol_audit_01 /audit
512 pg /etc/vfstab | grep audit
513 vi /etc/vfstab
514 umount /audit/
515 mount /audit
516 df -k
517 vi /etc/security/audit_control
518 vi /etc/security/audit_user
519 vi /etc/security/audit_startup
520 cd /tmp
521 mv audit_check_SUN.sh /etc/security/
522 mv S99audit_check_SUN /etc/rc3.d/
523 chmod 755 /etc/rc3.d/S99audit_check_SUN
524 /etc/security/bsmconv
525 w
526 ps -ef | grep pmon
527 history
————————————————————————————————-
# creazione /usr/ecc
root@h3fas111 # vxdg init dg_app_01 disk01=c1t2d0 disk02=c1t3d0 cds=off
VxVM vxdg ERROR V-5-1-2349 Device c1t2d0 appears to be owned by disk group dg_app_01.
VxVM vxdg ERROR V-5-1-2349 Device c1t3d0 appears to be owned by disk group dg_app_01.
root@h3fas111 # vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t0d0s2 auto:sliced rootdisk rootdg online
c1t1d0s2 auto:sliced rootmirr rootdg online
c1t2d0s2 auto:cdsdisk - - online
c1t3d0s2 auto:cdsdisk - - online
c1t5d0s2 auto:none - - online invalid
root@h3fas111 # vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t0d0s2 auto:sliced rootdisk rootdg online
c1t1d0s2 auto:sliced rootmirr rootdg online
c1t2d0s2 auto:sliced - - online
c1t3d0s2 auto:none - - online invalid
c1t5d0s2 auto:none - - online invalid
root@h3fas111 # vxdisksetup -i c1t3d0 format=sliced
root@h3fas111 # vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t0d0s2 auto:sliced rootdisk rootdg online
c1t1d0s2 auto:sliced rootmirr rootdg online
c1t2d0s2 auto:sliced - - online
c1t3d0s2 auto:sliced - - online
c1t5d0s2 auto:none - - online invalid
root@h3fas111 # vxdg init dg_app_01 disk01=c1t2d0 disk02=c1t3d0 cds=off
root@h3fas111 # vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t0d0s2 auto:sliced rootdisk rootdg online
c1t1d0s2 auto:sliced rootmirr rootdg online
c1t2d0s2 auto:sliced disk01 dg_app_01 online
c1t3d0s2 auto:sliced disk02 dg_app_01 online
c1t5d0s2 auto:none - - online invalid
root@h3fas111 # history
1 ls
2 uname -n
3 uname -h
4 uname -H
5 man uname
6 uname -p
7 man uname
8 uname -X
9 uname -x
10 uname
11 man uname
12 uname -S
13 uname -s
14 uname -X
15 hostid
16 83865717
17 /etc/hostid
18 hostid
19 vxlicinst -k
20 TERM=vt100;export TERM;/usr/openwin/bin/resize
21 vi /etc/llthosts
22 vi /etc/llttab
23 lltstat -nvv
24 vi /etc/llttab
25 gabconfig -u
26 lltconfig -U
27 lltstat -nvv
28 lltconfig -c
29 lltstat -nvv
30 lltstat -nvv
31 lltstat -nvv
32 lltstat -nvv
33 lltstat -nvv
34 gabconfig -c -n2
35 lltstat -nvv
36 gabconfig -a
37 hastart
38 gabconfig -a
39 gabconfig -a
40 gabconfig -a
41 gabconfig .a
42 gabconfig -a
43 ifconfig -a
44 exit
45 vxdg list
46 vxdisk -o alldgs list
47 format c1t5d0
48 cat /etc/hosts
49 pwd
50 cat /etc/resolv.conf
51 cat /etc/nsswitch.conf
52 cat /etc/hosts
53 exit
54 cat /etc/hosts
55 cd /etc
56 ifconfig -a
57 cat /etc/defaultrouter
58 cat /etc/netmasks
59 ls /etc/init.d/h3g_routeadd
60 vi /etc/init.d/h3g_routeadd
61 vi /etc/init.d/h3g_routeadd
62 export TERM=vt100
63 vi /etc/init.d/h3g_routeadd
64 cat /etc/init.d/h3g_routeadd
65 cat /etc/init.d/h3g_routeadd
66 vi /etc/init.d/h3g_routeadd
67 ls -l /etc/init.d/h3g_routeadd
68 chmod 755 /etc/init.d/h3g_routeadd
69 ls -l /etc/init.d/h3g_routeadd
70 ln -s /etc/init.d/h3g_routeadd /etc/rc2.d/h3g_routeadd
71 ls -l /etc/rc2.d/h3g_routeadd
72 ls hostname*
73 cat hostname.ce*
74 vi /etc/default/mpathd
75 export TERM=vt100
76 export TERM=vt100
77 vi /etc/default/mpathd
78 resize
79 vi /etc/default/mpathd
80 vi
81 ls
82 pwd
83 vi /etc/inet/ntp.conf
84 vi /etc/inet/ntp.conf
85 svcs
86 svcs | grep ntp
87 svcadm enable ntp
88 svcs | grep ntp
89 ntpq -p
90 ntpq -p
91 pkginfo | grep sudo
92 exit
93 vxdisk list
94 tail -100 /var/adm/messages
95 cat /var/adm/messages
96 cd /var/adm/
97 ls
98 pg messages.o
99 ls -ltr
100 cat messages.0
101 format
102 eeprom
103 eeprom | grep mac
104 eeprom | grep boot
105 eeprom | grep use
106 ls
107 pwd
108 cd
109 ls
110 ls -ltra
111 vi .ssh
112 cd .ssh
113 ls
114 pg known_hosts
115 ls
116 ls -ltra
117 pg known_hosts
118 vi authorized_keys
119 export TERM=vt100
120 resize
121 vi authorized_keys
122 q
123 ls
124 pwd
125 vi authorized_keys
126 ls
127 ifconfig -a
128 ls
129 pg ls -l known_hosts
130 ls -l
131 eeprom | grep boot
132 eeprom auto-boot?=true
133 eeprom | grep boot
134 df -k
135 vxdg -g bootdg free
136 format
137 vxdg -g bootdg free
138 vxdg -g bootdg free
139 vxassist -g bootdg maxsize layout=mirror
140 vxassist -b -g bootdg make vol_audit_01 4g layout=mirror
141 vxtask -l list
142 vxtask -l list
143 vxtask -l list
144 vxtask -l list
145 vxtask -l list
146 vxtask -l list
147 vxlist
148 newfs /dev/vx/rdsk/rootdg/vol_audit_01
149 newfs /dev/vx/rdsk/rootdg/vol_audit_01
150 df -k
151 ls
152 cd
153 ls
154 mkdir /audit
155 ls /etc/vfstab
156 ls /etc/vfstab*
157 vi /etc/vfstab
158 resize
159 vi /etc/vfstab
160 vi /etc/security/audit_control
161 vi /etc/security/audit_startup
162 cd
163 ls
164 ls -la
165 cd -
166 cd /etc/security/
167 ls
168 ls -la
169 pw
170 dpwd
171 pwd
172 ./bsmconv
173 pg /etc/system
174 vi /etc/syslog.conf
175 vxdisk list
176 vxdg init dg_app_01 disk01=c1t2d0 disk02=c1t3d0 cds=off
177 vxdisk list
178 vxprint list
179 vxprint
180 vxprint
181 vxdisk list
182 vxdiskadm
183 vxdiskunsetup c1t2d0
184 vxdiskunsetup -C c1t2d0
185 vxdisk list
186* vxdisksetup -C c1t3d0
187 vxdg init dg_app_01 disk01=c1t2d0 disk02=c1t3d0 cds=off
188 vxdisk list
189 vxdiskadm
190 vxdisk list
191 vxdiskadm
192 vxdisk list
193 vxdisksetup -i c1t3d0 format=sliced
194 vxdisk list
195 vxdg init dg_app_01 disk01=c1t2d0 disk02=c1t3d0 cds=off
196 vxdisk list
197 history
root@h3fas111 # vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t0d0s2 auto:sliced rootdisk rootdg online
c1t1d0s2 auto:sliced rootmirr rootdg online
c1t2d0s2 auto:sliced disk01 dg_app_01 online
c1t3d0s2 auto:sliced disk02 dg_app_01 online
c1t5d0s2 auto:none - - online invalid
root@h3fas111 # vxassist -b -g dg_app_01 make vol_ecc_01 2g layout=mirror
root@h3fas111 # vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t0d0s2 auto:sliced rootdisk rootdg online
c1t1d0s2 auto:sliced rootmirr rootdg online
c1t2d0s2 auto:sliced disk01 dg_app_01 online
c1t3d0s2 auto:sliced disk02 dg_app_01 online
c1t5d0s2 auto:none - - online invalid
root@h3fas111 # df -k
Filesystem kbytes used avail capacity Mounted on
/dev/vx/dsk/bootdg/rootvol
10327132 5839350 4384511 58% /
/devices 0 0 0 0% /devices
ctfs 0 0 0 0% /system/contract
proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
swap 26629592 1616 26627976 1% /etc/svc/volatile
objfs 0 0 0 0% /system/object
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
10327132 5839350 4384511 58% /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
10327132 5839350 4384511 58% /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd 0 0 0 0% /dev/fd
/dev/vx/dsk/bootdg/var
10327132 8580611 1643250 84% /var
swap 26628032 56 26627976 1% /tmp
swap 26628032 56 26627976 1% /var/run
swap 26627976 0 26627976 0% /dev/vx/dmp
swap 26627976 0 26627976 0% /dev/vx/rdmp
/dev/vx/dsk/bootdg/home
4133598 4121 4088142 1% /home
root@h3fas111 # vxdg -g dg_app_01
root@h3fas111 # vxdg -g dg_app_01 list
NAME STATE ID
rootdg enabled 1226649633.9.h3fas111
dg_app_01 enabled 1227178508.17.h3fas111
root@h3fas111 # vxtask list
TASKID PTID TYPE/STATE PCT PROGRESS
168 RDWRBACK/R 94.04% 0/4194304/3944448 VOLSTART vol_ecc_01 dg_app_01
root@h3fas111 # vxtask list
TASKID PTID TYPE/STATE PCT PROGRESS
168 RDWRBACK/R 97.31% 0/4194304/4081664 VOLSTART vol_ecc_01 dg_app_01root@h3fas111 # vxtask list
TASKID PTID TYPE/STATE PCT PROGRESS
root@h3fas111 # vxtask list
TASKID PTID TYPE/STATE PCT PROGRESS
root@h3fas111 # vxtask list
TASKID PTID TYPE/STATE PCT PROGRESS
root@h3fas111 # vxdg -g dg_app_01 list
NAME STATE ID
rootdg enabled 1226649633.9.h3fas111
dg_app_01 enabled 1227178508.17.h3fas111
root@h3fas111 # vxdg
root@h3fas111 # mkfs -F vxfs /dev/vx/rdsk/dg_app_01/vol_ecc_01
version 7 layout
4194304 sectors, 2097152 blocks of size 1024, log size 16384 blocks
largefiles supported
root@h3fas111 # vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t0d0s2 auto:sliced rootdisk rootdg online
c1t1d0s2 auto:sliced rootmirr rootdg online
c1t2d0s2 auto:sliced disk01 dg_app_01 online
c1t3d0s2 auto:sliced disk02 dg_app_01 online
c1t5d0s2 auto:none - - online invalid
root@h3fas111 # mkdir /usr/ecc
root@h3fas111 # mount -F vxfs /dev/vx/dsk/dg_app_01/vol_ecc_01 /usr/ecc
mettere entry in /etc/vfstab
/dev/vx/dsk/dg_app_01/vol_ecc_01 /dev/vx/rdsk/dg_app_01/vol_ecc_01 /usr/ecc vxfs 2 yes largefiles
guardati h3fas088 o h3mis156-157
———————————————————————————————
# creazione filesystem y dg
# vxdisksetup -i c1t3d0 format=sliced
# vxdg init dg_app_01 disk01=c1t2d0 disk02=c1t3d0 cds=off
# vxassist -b -g dg_app_01 make vol_ecc_01 2g layout=mirror
# mkfs -F vxfs /dev/vx/rdsk/dg_app_01/vol_ecc_01
# vxassist -b -g dg_app_01 make vol_h3faz001_01 25g layout=mirror
# vxedit -g dg_app_01 rename vol_h3miz001_01 vol_h3faz001_01 —-> rinombrare volume
—————————————————————————————
# Versione Veritas
Dettaglio release :
root@h3mis156 # pkginfo -l VRTSvxvm|grep PSTA;pkginfo -l VRTSvxfs|grep PSTA
PSTAMP: Veritas-5.0-MP3.50:2008-08-17
PSTAMP: VERITAS-FS-5.0.3.0-2008-08-11-5.0MP3=123202-04
root@h3mis157 # pkginfo -l VRTSvxvm|grep PSTA;pkginfo -l VRTSvxfs|grep PSTA
PSTAMP: Veritas-5.0-MP3.50:2008-08-17
PSTAMP: VERITAS-FS-5.0.3.0-2008-08-11-5.0MP3=123202-04
————————————————————————————————
# sunmc
creato dg
creato volume
mkfs -F vxvf
creata directory
# deport, import
umount
vxdg deport dg
vxdg -C import dg
mount
———————————————————————————————–
# mail arrivata di deport dg
Ciao,
come da mail di Landi, potreste fare lo shutdown dei database e deportare i relativi dischi al più presto in modo tale da permetterci l’inizio della copia prevista per Mercoledì mattina?
[h3mis681]#id
uid=0(root) gid=1(other)
[h3mis681]#df -k
Filesystem kbytes used avail capacity Mounted on
/dev/vx/dsk/bootdg/rootvol
10322908 3339737 6776713 34% /
/proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
fd 0 0 0 0% /dev/fd
/dev/vx/dsk/bootdg/var
10321884 910320 9308346 9% /var
swap 9303416 32 9303384 1% /var/run
dmpfs 9303416 0 9303416 0% /dev/vx/dmp
dmpfs 9303504 0 9303504 0% /dev/vx/rdmp
swap 9304656 1144 9303512 1% /tmp
/dev/vx/dsk/bootdg/vol_cmsm_file_06
493039 130454 313282 30% /cmsm_file
/dev/vx/dsk/bootdg/home
4128430 96954 3990192 3% /home
/dev/vx/dsk/bootdg/vol_audit_01
4128430 578 4086568 1% /audit
/dev/vx/dsk/bootdg/vol_apache_03
47279 9 42543 1% /apache
/dev/vx/dsk/bootdg/vol_cmsm_sw_05
984559 406084 519402 44% /cmsm_sw
/dev/vx/dsk/bootdg/vol_export_01
2097152 834636 1184701 42% /export
/dev/vx/dsk/bootdg/vol_oradata_01
6291456 2102297 3928606 35% /oradata
/dev/vx/dsk/bootdg/vol_audit_08
2097152 31679 1938052 2% /audit_BMPR1
/dev/vx/dsk/bootdg/vol_iplanet_04
288639 199772 60004 77% /ldap/iplanet
/dev/vx/dsk/bootdg/vol_bmcctm_07
204800 36210 158100 19% /bmc/ctmagent
/dev/vx/dsk/bootdg/vol_ecc_01
1048576 256329 742848 26% /usr/ecc
/dev/vx/dsk/bootdg/vol_appora_01
8388608 6628637 1649994 81% /app/oracle
/dev/vx/dsk/bootdg/vol_epipha_02
1984479 1474858 450087 77% /epiphany/epiadv6/ap
/dev/vx/dsk/dg_bmpr1_ofa/vol_ofa_03
10485760 6739936 3516221 66% /ofa_BMPR3
/dev/vx/dsk/dg_bmpr1_ofa/vol_archive_01
162283520 135930583 24706046 85% /archive_BMPR1
/dev/vx/dsk/dg_bmpr2_ofa/lv_bmpr2_ofa
9961472 7629337 2199350 78% /ofa_BMPR2
/dev/vx/dsk/dg_bmpr2_ofa/lv_bmpr2_archive
20971520 9036946 11188677 45% /archive_BMPR2
/dev/vx/dsk/dg_bmpr1_ofa/vol_ofa_01
12125184 3016252 8560632 27% /ofa_BMPR1
/dev/vx/dsk/dg_bmpr2_ofa/lv_bmpr4_ofa
8388608 7114763 1196570 86% /ofa_BMPR4
[h3mis681]#vxdg list
NAME STATE ID
rootdg enabled 1182248016.211.h3mis681
dg_bmpr_redo enabled 1076611735.1367.r2r-a880vxvm16
dg_bmpr_redo_mirror enabled,cds 1085165231.61.h3mis540
dg_bmpr_redo_03 enabled 1101856067.92.h3mis057
dg_bmpr_redo_04 enabled 1101856118.97.h3mis057
dg_bmpr_redo_05 enabled 1101856160.100.h3mis057
dg_bmpr_01 enabled 1076611259.1329.r2r-a880vxvm16
dg_bmpr_02 enabled 1076611391.1340.r2r-a880vxvm16
dg_bmpr_03 enabled 1076611490.1351.r2r-a880vxvm16
dg_bmpr_04 enabled 1076611652.1362.r2r-a880vxvm16
dg_bmpr_05 enabled 1091782309.123.h3mis046
dg_bmpr_06 enabled 1091788470.166.h3mis046
dg_bmpr_07 enabled 1091782670.127.h3mis046
dg_bmpr_08 enabled 1101856324.110.h3mis057
dg_bmpr_09 enabled 1104249200.118.h3mis540
dg_bmpr_10 enabled 1108061662.106.h3mis046
dg_bmpr_11 enabled 1110383595.138.h3mis540
dg_bmpr_12 enabled 1116579742.194.h3mis540
dg_bmpr_13 enabled 1116525652.166.h3mis540
dg_bmpr_14 enabled 1122024449.140.h3mis710
dg_bmpr_15 enabled 1123247740.156.h3mis710
dg_bmpr_16 enabled 1123247863.158.h3mis710
dg_bmpr_17 enabled 1124443653.194.h3mis710
dg_bmpr_18 enabled 1130766851.224.h3mis708
dg_bmpr_19 enabled 1130766906.226.h3mis708
dg_bmpr_20 enabled 1130766938.228.h3mis708
dg_bmpr_21 enabled 1130766966.230.h3mis708
dg_bmpr_22 enabled 1139511780.254.h3mis708
dg_bmpr_23 enabled 1141179811.202.h3mis709
dg_bmpr_24 enabled 1143730758.255.h3mis709
dg_bmpr_25 enabled 1143731534.269.h3mis709
dg_bmpr_26 enabled 1143731593.271.h3mis709
dg_bmpr_27 enabled 1143731646.273.h3mis709
dg_bmpr_28 enabled 1155199232.249.h3mis711
dg_bmpr_29 enabled 1155199311.251.h3mis711
dg_bmpr_30 enabled 1155199377.253.h3mis711
dg_bmpr_31 enabled 1155199425.255.h3mis711
dg_bmpr1_ofa enabled 1075996533.1226.r2r-a880vxvm16
dg_bmpr2_ofa enabled 1076611795.1372.r2r-a880vxvm16
[h3mis681]#df -k | grep -v audit_BMPR | grep BMPR
/dev/vx/dsk/dg_bmpr1_ofa/vol_ofa_03 10485760 6739936 3516221 66% /ofa_BMPR3
/dev/vx/dsk/dg_bmpr1_ofa/vol_archive_01 162283520 135930583 24706046 85% /archive_BMPR1
/dev/vx/dsk/dg_bmpr2_ofa/lv_bmpr2_ofa 9961472 7629337 2199350 78% /ofa_BMPR2
/dev/vx/dsk/dg_bmpr2_ofa/lv_bmpr2_archive 20971520 9036946 11188677 45% /archive_BMPR2
/dev/vx/dsk/dg_bmpr1_ofa/vol_ofa_01 12125184 3016253 8560631 27% /ofa_BMPR1
/dev/vx/dsk/dg_bmpr2_ofa/lv_bmpr4_ofa 8388608 7114763 1196570 86% /ofa_BMPR4
[h3mis681]#df -k | grep -v audit_BMPR | grep BMPR | awk ‘{ print $6 }’
/ofa_BMPR3
/archive_BMPR1
/ofa_BMPR2
/archive_BMPR2
/ofa_BMPR1
/ofa_BMPR4
[h3mis681]#for i in `df -k | grep -v audit_BMPR | grep BMPR | awk ‘{ print $6 }’`
> do
> echo umount $i
> done
umount /ofa_BMPR3
umount /archive_BMPR1
umount /ofa_BMPR2
umount /archive_BMPR2
umount /ofa_BMPR1
umount /ofa_BMPR4
[h3mis681]#for i in `df -k | grep -v audit_BMPR | grep BMPR | awk ‘{ print $6 }’`; do umount $i; done
[h3mis681]#df -k
Filesystem kbytes used avail capacity Mounted on
/dev/vx/dsk/bootdg/rootvol
10322908 3339737 6776713 34% /
/proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
fd 0 0 0 0% /dev/fd
/dev/vx/dsk/bootdg/var
10321884 910369 9308297 9% /var
swap 10750296 32 10750264 1% /var/run
dmpfs 10750264 0 10750264 0% /dev/vx/dmp
dmpfs 10750264 0 10750264 0% /dev/vx/rdmp
swap 10751408 1144 10750264 1% /tmp
/dev/vx/dsk/bootdg/vol_cmsm_file_06
493039 130454 313282 30% /cmsm_file
/dev/vx/dsk/bootdg/home
4128430 96954 3990192 3% /home
/dev/vx/dsk/bootdg/vol_audit_01
4128430 578 4086568 1% /audit
/dev/vx/dsk/bootdg/vol_apache_03
47279 9 42543 1% /apache
/dev/vx/dsk/bootdg/vol_cmsm_sw_05
984559 406084 519402 44% /cmsm_sw
/dev/vx/dsk/bootdg/vol_export_01
2097152 834636 1184701 42% /export
/dev/vx/dsk/bootdg/vol_oradata_01
6291456 2102297 3928606 35% /oradata
/dev/vx/dsk/bootdg/vol_audit_08
2097152 31682 1938049 2% /audit_BMPR1
/dev/vx/dsk/bootdg/vol_iplanet_04
288639 199772 60004 77% /ldap/iplanet
/dev/vx/dsk/bootdg/vol_bmcctm_07
204800 36210 158100 19% /bmc/ctmagent
/dev/vx/dsk/bootdg/vol_ecc_01
1048576 256329 742848 26% /usr/ecc
/dev/vx/dsk/bootdg/vol_appora_01
8388608 6628637 1649994 81% /app/oracle
/dev/vx/dsk/bootdg/vol_epipha_02
1984479 1474858 450087 77% /epiphany/epiadv6/ap
[h3mis681]#vxdisk list | grep bmpr
c2t5d0s2 auto:sliced dg_bmpr01 dg_bmpr_14 online
c2t5d1s2 auto:sliced dg_bmpr04 dg_bmpr_09 online
c2t5d2s2 auto:sliced dg_bmpr01 dg_bmpr_17 online
c2t5d3s2 auto:sliced dg_bmpr04 dg_bmpr_05 online
c2t5d4s2 auto:sliced dg_bmpr04 dg_bmpr_12 online
c2t5d5s2 auto:sliced dg_bmpr01 dg_bmpr_10 online
c2t5d6s2 auto:sliced dg_bmpr03 dg_bmpr_17 online
c2t5d7s2 auto:sliced dg_bmpr12 dg_bmpr1_ofa online
c2t5d8s2 auto:sliced dg_bmpr08 dg_bmpr_05 online
c2t5d9s2 auto:sliced dg_bmpr07 dg_bmpr_03 online
c2t5d10s2 auto:sliced dg_bmpr01 dg_bmpr_18 online
c2t5d11s2 auto:sliced dg_bmpr01 dg_bmpr_21 online
c2t5d12s2 auto:sliced dg_bmpr04 dg_bmpr_23 online
c2t5d13s2 auto:sliced dg_bmpr02 dg_bmpr_31 online
c2t5d14s2 auto:sliced dg_bmpr09 dg_bmpr1_ofa online
c2t5d15s2 auto:sliced dg_bmpr_0106 dg_bmpr_01 online
c2t5d16s2 auto:sliced dg_bmpr02 dg_bmpr_22 online
c2t5d17s2 auto:sliced dg_bmpr01 dg_bmpr_24 online
c2t5d18s2 auto:sliced dg_bmpr01 dg_bmpr_25 online
c2t5d19s2 auto:sliced dg_bmpr02 dg_bmpr_26 online
c2t5d20s2 auto:sliced dg_bmpr01 dg_bmpr_30 online
c2t5d21s2 auto:sliced dg_bmpr01 dg_bmpr_28 online
c2t5d22s2 auto:sliced dg_bmpr02 dg_bmpr_25 online
c2t5d23s2 auto:sliced dg_bmpr04 dg_bmpr_19 online
c2t5d24s2 auto:sliced dg_bmpr04 dg_bmpr_20 online
c2t5d25s2 auto:sliced dg_bmpr04 dg_bmpr_21 online
c2t5d26s2 auto:sliced dg_bmpr04 dg_bmpr_22 online
c2t5d27s2 auto:sliced dg_bmpr03 dg_bmpr_24 online
c2t5d28s2 auto:sliced dg_bmpr05 dg_bmpr_04 online
c2t5d29s2 auto:sliced dg_bmpr02 dg_bmpr_18 online
c2t5d30s2 auto:sliced dg_bmpr01 dg_bmpr_12 online
c2t5d31s2 auto:sliced dg_bmpr01 dg_bmpr_01 online
c2t5d32s2 auto:sliced dg_bmpr01 dg_bmpr_02 online
c2t5d33s2 auto:sliced dg_bmpr01 dg_bmpr_03 online
c2t5d34s2 auto:sliced dg_bmpr03 dg_bmpr_04 online
c2t5d35s2 auto:sliced dg_bmpr2_ofa01 dg_bmpr2_ofa online
c2t5d36s2 auto:sliced dg_bmpr01 dg_bmpr_06 online
c2t5d37s2 auto:sliced dg_bmpr01 dg_bmpr1_ofa online
c2t5d38s2 auto:sliced dg_bmpr03 dg_bmpr_02 online
c2t5d39s2 auto:cdsdisk dg_bmpr_0102 dg_bmpr_01 online
c2t5d40s2 auto:sliced dg_bmpr03 dg_bmpr_03 online
c2t5d41s2 auto:sliced dg_bmpr01 dg_bmpr_04 online
c2t5d42s2 auto:sliced dg_bmpr02 dg_bmpr_16 online
c2t5d43s2 auto:sliced dg_bmpr01 dg_bmpr_13 online
c2t5d44s2 auto:sliced dg_bmpr02 dg_bmpr_02 online
c2t5d45s2 auto:sliced dg_bmpr02 dg_bmpr_04 online
c2t5d46s2 auto:sliced dg_bmpr03 dg_bmpr1_ofa online
c2t5d47s2 auto:sliced dg_bmpr01 dg_bmpr_07 online
c2t5d48s2 auto:sliced dg_bmpr1_ofa01 dg_bmpr1_ofa online
c2t5d49s2 auto:sliced dg_bmpr02 dg_bmpr_14 online
c2t5d50s2 auto:sliced dg_bmpr04 dg_bmpr_04 online
c2t5d51s2 auto:sliced dg_bmpr07 dg_bmpr_10 online
c2t5d52s2 auto:sliced dg_bmpr03 dg_bmpr_05 online
c2t5d53s2 auto:sliced dg_bmpr02 dg_bmpr_10 online
c2t5d54s2 auto:sliced dg_bmpr02 dg_bmpr_06 online
c2t5d55s2 auto:sliced dg_bmpr03 dg_bmpr_13 online
c2t5d56s2 auto:cdsdisk dg_bmpr_0101 dg_bmpr_01 online
c2t5d57s2 auto:sliced dg_bmpr02 dg_bmpr_15 online
c2t5d58s2 auto:sliced dg_bmpr06 dg_bmpr_12 online
c2t5d59s2 auto:sliced c2t4d27s2 dg_bmpr_redo_03 online
c2t5d60s2 auto:sliced dg_bmpr02 dg_bmpr_12 online
c2t5d61s2 auto:sliced dg_bmpr02 dg_bmpr_13 online
c2t5d62s2 auto:cdsdisk dg_bmpr_0103 dg_bmpr_01 online
c2t5d84s2 auto:sliced dg_bmpr01 dg_bmpr2_ofa online
c2t5d85s2 auto:sliced c2t4d28s2 dg_bmpr_redo_04 online
c2t5d86s2 auto:sliced dg_bmpr04 dg_bmpr_15 online
c2t5d87s2 auto:sliced c2t4d29 dg_bmpr_08 online
c2t5d88s2 auto:sliced c3t4d43 dg_bmpr_08 online
c2t5d89s2 auto:sliced dg_bmpr04 dg_bmpr_16 online
c2t5d90s2 auto:sliced dg_bmpr02 dg_bmpr_07 online
c2t5d91s2 auto:sliced c3t4d44 dg_bmpr_08 online
c2t5d92s2 auto:sliced dg_bmpr04 dg_bmpr_02 online
c2t5d93s2 auto:sliced dg_bmpr01 dg_bmpr_05 online
c2t5d94s2 auto:sliced dg_bmpr04 dg_bmpr_14 online
c2t5d95s2 auto:sliced c2t4d33s2 dg_bmpr_redo_05 online
c2t5d96s2 auto:sliced dg_bmpr03 dg_bmpr_06 online
c2t5d97s2 auto:sliced dg_bmpr02 dg_bmpr_03 online
c2t5d98s2 auto:sliced dg_bmpr02 dg_bmpr_17 online
c2t5d99s2 auto:sliced dg_bmpr02 dg_bmpr1_ofa online
c2t5d100s2 auto:sliced dg_bmpr03 dg_bmpr_09 online
c2t5d101s2 auto:sliced dg_bmpr02 dg_bmpr_05 online
c2t5d102s2 auto:sliced dg_bmpr03 dg_bmpr_12 online
c2t5d103s2 auto:sliced dg_bmpr04 dg_bmpr_03 online
c2t5d104s2 auto:sliced dg_bmpr01 dg_bmpr_20 online
c2t5d105s2 auto:sliced dg_bmpr01 dg_bmpr_23 online
c2t5d106s2 auto:sliced dg_bmpr03 dg_bmpr_27 online
c2t5d107s2 auto:sliced dg_bmpr02 dg_bmpr_28 online
c2t5d108s2 auto:sliced dg_bmpr02 dg_bmpr_29 online
c2t5d109s2 auto:sliced dg_bmpr02 dg_bmpr_30 online
c2t5d110s2 auto:sliced dg_bmpr02 dg_bmpr_24 online
c2t5d111s2 auto:sliced dg_bmpr04 dg_bmpr_30 online
c2t5d112s2 auto:sliced dg_bmpr04 dg_bmpr_31 online
c2t5d113s2 auto:sliced dg_bmpr11 dg_bmpr1_ofa online
c2t5d114s2 auto:sliced dg_bmpr_0108 dg_bmpr_01 online
c2t5d115s2 auto:sliced dg_bmpr02 dg_bmpr_21 online
c2t5d116s2 auto:sliced dg_bmpr03 dg_bmpr_31 online
c2t5d117s2 auto:sliced dg_bmpr10 dg_bmpr1_ofa online
c2t5d118s2 auto:sliced dg_bmpr03 dg_bmpr_25 online
c2t5d119s2 auto:sliced dg_bmpr04 dg_bmpr_18 online
c2t5d120s2 auto:sliced dg_bmpr_0105 dg_bmpr_01 online
c2t5d121s2 auto:sliced dg_bmpr02 dg_bmpr_19 online
c2t5d122s2 auto:sliced dg_bmpr03 dg_bmpr_21 online
c2t5d123s2 auto:sliced dg_bmpr03 dg_bmpr_22 online
c2t5d124s2 auto:sliced dg_bmpr03 dg_bmpr_23 online
c2t5d125s2 auto:sliced dg_bmpr01 dg_bmpr_31 online
c2t5d126s2 auto:sliced dg_bmpr01 dg_bmpr_27 online
c2t5d127s2 auto:sliced dg_bmpr05 dg_bmpr_14 online
c2t5d128s2 auto:sliced dg_bmpr01 dg_bmpr_15 online
c2t5d129s2 auto:sliced dg_bmpr03 dg_bmpr_10 online
c2t5d130s2 auto:sliced dg_bmpr04 dg_bmpr_17 online
c2t5d131s2 auto:sliced dg_bmpr04 dg_bmpr_06 online
c2t5d132s2 auto:sliced dg_bmpr03 dg_bmpr_11 online
c2t5d133s2 auto:sliced dg_bmpr03 dg_bmpr_07 online
c2t5d134s2 auto:sliced dg_bmpr05 dg_bmpr_02 online
c2t5d135s2 auto:sliced dg_bmpr08 dg_bmpr_04 online
c2t5d136s2 auto:sliced dg_bmpr06 dg_bmpr_03 online
c2t5d137s2 auto:sliced dg_bmpr05 dg_bmpr_05 online
c2t5d138s2 auto:sliced dg_bmpr04 dg_bmpr_07 online
c2t5d139s2 auto:sliced dg_bmpr06 dg_bmpr1_ofa online
c2t5d140s2 auto:sliced dg_bmpr08 dg_bmpr_03 online
c2t5d141s2 auto:sliced dg_bmpr08 dg_bmpr_02 online
c2t5d142s2 auto:sliced c3t4d45 dg_bmpr_08 online
c2t5d143s2 auto:sliced dg_bmpr07 dg_bmpr1_ofa online
c2t5d144s2 auto:sliced dg_bmpr06 dg_bmpr_05 online
c2t5d145s2 auto:sliced dg_bmpr04 dg_bmpr_11 online
c2t5d146s2 auto:sliced dg_bmpr01 dg_bmpr_09 online
c2t5d147s2 auto:sliced dg_bmpr01 dg_bmpr_16 online
c2t5d148s2 auto:sliced dg_bmpr01 dg_bmpr_11 online
c2t5d149s2 auto:sliced dg_bmpr04 dg_bmpr_10 online
c2t5d150s2 auto:sliced dg_bmpr04 dg_bmpr_13 online
c2t5d151s2 auto:sliced dg_bmpr03 dg_bmpr_14 online
c2t5d152s2 auto:sliced dg_bmpr03 dg_bmpr_15 online
c2t5d153s2 auto:sliced dg_bmpr05 dg_bmpr_03 online
c2t5d154s2 auto:sliced dg_bmpr03 dg_bmpr_16 online
c2t5d155s2 auto:sliced dg_bmpr02 dg_bmpr2_ofa online
c2t5d156s2 auto:sliced dg_bmpr_0107 dg_bmpr_01 online
c2t5d157s2 auto:sliced dg_bmpr07 dg_bmpr_02 online
c2t5d158s2 auto:sliced dg_bmpr07 dg_bmpr_05 online
c2t5d159s2 auto:sliced dg_bmpr06 dg_bmpr_04 online
c2t5d160s2 auto:sliced dg_bmpr02 dg_bmpr_09 online
c2t5d161s2 auto:sliced dg_bmpr02 dg_bmpr_11 online
c2t5d162s2 auto:sliced dg_bmpr07 dg_bmpr_04 online
c2t5d163s2 auto:sliced dg_bmpr06 dg_bmpr_02 online
c2t5d164s2 auto:sliced dg_bmpr01 dg_bmpr_19 online
c2t5d165s2 auto:sliced dg_bmpr01 dg_bmpr_22 online
c2t5d166s2 auto:sliced dg_bmpr02 dg_bmpr_23 online
c2t5d167s2 auto:sliced dg_bmpr05 dg_bmpr1_ofa online
c2t5d168s2 auto:sliced dg_bmpr04 dg_bmpr_24 online
c2t5d169s2 auto:sliced dg_bmpr04 dg_bmpr_25 online
c2t5d170s2 auto:sliced dg_bmpr01 dg_bmpr_26 online
c2t5d171s2 auto:sliced dg_bmpr04 dg_bmpr1_ofa online
c2t5d172s2 auto:sliced dg_bmpr02 dg_bmpr_20 online
c2t5d173s2 auto:sliced dg_bmpr04 dg_bmpr_26 online
c2t5d174s2 auto:sliced dg_bmpr04 dg_bmpr_27 online
c2t5d175s2 auto:sliced dg_bmpr04 dg_bmpr_28 online
c2t5d176s2 auto:sliced dg_bmpr04 dg_bmpr_29 online
c2t5d177s2 auto:sliced dg_bmpr03 dg_bmpr_26 online
c2t5d178s2 auto:sliced dg_bmpr02 dg_bmpr_27 online
c2t5d179s2 auto:sliced dg_bmpr03 dg_bmpr_28 online
c2t5d180s2 auto:sliced dg_bmpr03 dg_bmpr_29 online
c2t5d181s2 auto:sliced dg_bmpr03 dg_bmpr_30 online
c2t5d182s2 auto:sliced dg_bmpr08 dg_bmpr1_ofa online
c2t5d183s2 auto:sliced dg_bmpr03 dg_bmpr_18 online
c2t5d184s2 auto:sliced dg_bmpr03 dg_bmpr_19 online
c2t5d185s2 auto:sliced dg_bmpr03 dg_bmpr_20 online
c2t5d186s2 auto:sliced dg_bmpr01 dg_bmpr_29 online
c2t5d187s2 auto:sliced dg_bmpr05 dg_bmpr_06 online
c2t5d188s2 auto:sliced dg_bmpr06 dg_bmpr_06 online
c2t5d189s2 auto:sliced dg_bmpr06 dg_bmpr_08 online
c2t5d190s2 auto:sliced dg_bmpr06 dg_bmpr_10 online
c2t5d191s2 auto:sliced dg_bmpr07 dg_bmpr_06 online
c2t5d192s2 auto:sliced dg_bmpr07 dg_bmpr_08 online
c2t5d193s2 auto:sliced dg_bmpr08 dg_bmpr_10 online
c2t5d194s2 auto:sliced dg_bmpr08 dg_bmpr_06 online
c2t5d195s2 auto:sliced dg_bmpr08 dg_bmpr_08 online
c2t5d196s2 auto:sliced dg_bmpr06 dg_bmpr_13 online
c2t5d197s2 auto:sliced dg_bmpr05 dg_bmpr_07 online
c2t5d198s2 auto:sliced dg_bmpr05 dg_bmpr_09 online
c2t5d199s2 auto:sliced dg_bmpr08 dg_bmpr_07 online
c2t5d200s2 auto:sliced dg_bmpr07 dg_bmpr_09 online
c2t5d201s2 auto:sliced dg_bmpr06 dg_bmpr_07 online
c2t5d202s2 auto:sliced dg_bmpr06 dg_bmpr_09 online
c2t5d203s2 auto:sliced dg_bmpr07 dg_bmpr_07 online
c2t5d204s2 auto:sliced dg_bmpr08 dg_bmpr_09 online
c2t5d205s2 auto:sliced dg_bmpr05 dg_bmpr_08 online
c2t5d206s2 auto:sliced dg_bmpr05 dg_bmpr_10 online
c2t5d207s2 auto:sliced dg_bmpr07 dg_bmpr_15 online
c2t5d208s2 auto:sliced dg_bmpr06 dg_bmpr_20 online
c2t5d209s2 auto:sliced dg_bmpr07 dg_bmpr_18 online
c2t5d210s2 auto:sliced dg_bmpr06 dg_bmpr_17 online
c2t5d211s2 auto:sliced dg_bmpr05 dg_bmpr_11 online
c2t5d212s2 auto:sliced dg_bmpr07 dg_bmpr_12 online
c2t5d213s2 auto:sliced dg_bmpr06 dg_bmpr_14 online
c2t5d214s2 auto:sliced dg_bmpr08 dg_bmpr_15 online
c2t5d215s2 auto:sliced dg_bmpr08 dg_bmpr_16 online
c2t5d216s2 auto:sliced dg_bmpr06 dg_bmpr_16 online
c2t5d217s2 auto:sliced dg_bmpr06 dg_bmpr_19 online
c2t5d218s2 auto:sliced dg_bmpr08 dg_bmpr_18 online
c2t5d219s2 auto:sliced dg_bmpr06 dg_bmpr_11 online
c2t5d220s2 auto:sliced dg_bmpr08 dg_bmpr_12 online
c2t5d221s2 auto:sliced dg_bmpr07 dg_bmpr_14 online
c2t5d222s2 auto:sliced dg_bmpr06 dg_bmpr_18 online
c2t5d223s2 auto:sliced dg_bmpr08 dg_bmpr_17 online
c2t5d224s2 auto:sliced dg_bmpr08 dg_bmpr_21 online
c2t5d225s2 auto:sliced dg_bmpr07 dg_bmpr_11 online
c2t5d226s2 auto:sliced dg_bmpr05 dg_bmpr_13 online
c2t5d227s2 auto:sliced dg_bmpr05 dg_bmpr_20 online
c2t5d228s2 auto:sliced dg_bmpr05 dg_bmpr_16 online
c2t5d229s2 auto:sliced dg_bmpr07 dg_bmpr_17 online
c2t5d230s2 auto:sliced dg_bmpr07 dg_bmpr_20 online
c2t5d231s2 auto:sliced dg_bmpr05 dg_bmpr_21 online
c2t5d232s2 auto:sliced dg_bmpr08 dg_bmpr_14 online
c2t5d233s2 auto:sliced dg_bmpr05 dg_bmpr_19 online
c2t5d234s2 auto:sliced dg_bmpr08 dg_bmpr_20 online
c2t5d235s2 auto:sliced dg_bmpr08 dg_bmpr_19 online
c2t5d236s2 auto:sliced dg_bmpr05 dg_bmpr_18 online
c2t5d237s2 auto:sliced dg_bmpr08 dg_bmpr_11 online
c2t5d238s2 auto:sliced dg_bmpr07 dg_bmpr_13 online
c2t5d239s2 auto:sliced dg_bmpr05 dg_bmpr_15 online
c2t5d240s2 auto:sliced dg_bmpr07 dg_bmpr_21 online
c2t5d241s2 auto:sliced dg_bmpr06 dg_bmpr_21 online
c2t5d242s2 auto:sliced dg_bmpr07 dg_bmpr_16 online
c2t5d243s2 auto:sliced dg_bmpr05 dg_bmpr_12 online
c2t5d244s2 auto:sliced dg_bmpr08 dg_bmpr_13 online
c2t5d245s2 auto:sliced dg_bmpr06 dg_bmpr_15 online
c2t5d246s2 auto:sliced dg_bmpr07 dg_bmpr_19 online
c2t5d247s2 auto:sliced dg_bmpr05 dg_bmpr_17 online
c2t6d0s2 auto:sliced disk-01 dg_bmpr_redo online
c2t6d1s2 auto:sliced disk-02 dg_bmpr_redo online
c2t6d2s2 auto:sliced disk-03 dg_bmpr_redo online
c2t6d3s2 auto:sliced disk-04 dg_bmpr_redo online
c2t6d4s2 auto:cdsdisk disk-01 dg_bmpr_redo_mirror online
c2t6d5s2 auto:cdsdisk disk-02 dg_bmpr_redo_mirror online
c2t6d6s2 auto:cdsdisk disk-03 dg_bmpr_redo_mirror online
c2t6d7s2 auto:cdsdisk disk-04 dg_bmpr_redo_mirror online
c2t6d8s2 auto:sliced dg_bmpr05 dg_bmpr_22 online
c2t6d9s2 auto:sliced dg_bmpr06 dg_bmpr_22 online
c2t6d10s2 auto:sliced dg_bmpr07 dg_bmpr_22 online
c2t6d11s2 auto:sliced dg_bmpr08 dg_bmpr_22 online
c2t6d12s2 auto:sliced dg_bmpr05 dg_bmpr_23 online
c2t6d13s2 auto:sliced dg_bmpr06 dg_bmpr_23 online
c2t6d14s2 auto:sliced dg_bmpr07 dg_bmpr_23 online
c2t6d15s2 auto:sliced dg_bmpr08 dg_bmpr_23 online
c2t6d16s2 auto:sliced dg_bmpr05 dg_bmpr_24 online
c2t6d17s2 auto:sliced dg_bmpr06 dg_bmpr_24 online
c2t6d18s2 auto:sliced dg_bmpr07 dg_bmpr_24 online
c2t6d19s2 auto:sliced dg_bmpr08 dg_bmpr_24 online
c2t6d20s2 auto:sliced dg_bmpr05 dg_bmpr_25 online
c2t6d21s2 auto:sliced dg_bmpr06 dg_bmpr_25 online
c2t6d22s2 auto:sliced dg_bmpr07 dg_bmpr_25 online
c2t6d23s2 auto:sliced dg_bmpr08 dg_bmpr_25 online
c2t6d24s2 auto:sliced dg_bmpr05 dg_bmpr_26 online
c2t6d25s2 auto:sliced dg_bmpr06 dg_bmpr_26 online
c2t6d26s2 auto:sliced dg_bmpr07 dg_bmpr_26 online
c2t6d27s2 auto:sliced dg_bmpr08 dg_bmpr_26 online
c2t6d28s2 auto:sliced dg_bmpr05 dg_bmpr_27 online
c2t6d29s2 auto:sliced dg_bmpr06 dg_bmpr_27 online
c2t6d30s2 auto:sliced dg_bmpr07 dg_bmpr_27 online
c2t6d31s2 auto:sliced dg_bmpr08 dg_bmpr_27 online
c2t6d32s2 auto:sliced dg_bmpr_0112 dg_bmpr_01 online
c2t6d33s2 auto:sliced dg_bmpr07 dg_bmpr_28 online
c2t6d34s2 auto:sliced dg_bmpr09 dg_bmpr_02 online
c2t6d35s2 auto:sliced dg_bmpr08 dg_bmpr_28 online
c2t6d36s2 auto:sliced dg_bmpr10 dg_bmpr_02 online
c2t6d37s2 auto:sliced dg_bmpr05 dg_bmpr_29 online
c2t6d38s2 auto:sliced dg_bmpr06 dg_bmpr_30 online
c2t6d39s2 auto:sliced dg_bmpr11 dg_bmpr_02 online
c2t6d40s2 auto:sliced dg_bmpr06 dg_bmpr_29 online
c2t6d41s2 auto:sliced dg_bmpr_0109 dg_bmpr_01 online
c2t6d42s2 auto:sliced dg_bmpr12 dg_bmpr_02 online
c2t6d43s2 auto:sliced dg_bmpr07 dg_bmpr_29 online
c2t6d44s2 auto:sliced dg_bmpr07 dg_bmpr_30 online
c2t6d45s2 auto:sliced dg_bmpr05 dg_bmpr_31 online
c2t6d46s2 auto:sliced dg_bmpr09 dg_bmpr_03 online
c2t6d47s2 auto:sliced dg_bmpr_0110 dg_bmpr_01 online
c2t6d48s2 auto:sliced dg_bmpr05 dg_bmpr_28 online
c2t6d49s2 auto:sliced dg_bmpr08 dg_bmpr_29 online
c2t6d50s2 auto:sliced dg_bmpr08 dg_bmpr_30 online
c2t6d51s2 auto:sliced dg_bmpr06 dg_bmpr_31 online
c2t6d52s2 auto:sliced dg_bmpr07 dg_bmpr_31 online
c2t6d53s2 auto:sliced dg_bmpr11 dg_bmpr_03 online
c2t6d54s2 auto:sliced dg_bmpr_0111 dg_bmpr_01 online
c2t6d55s2 auto:sliced dg_bmpr06 dg_bmpr_28 online
c2t6d56s2 auto:sliced dg_bmpr05 dg_bmpr_30 online
c2t6d57s2 auto:sliced dg_bmpr08 dg_bmpr_31 online
c2t6d64s2 auto:sliced dg_bmpr10 dg_bmpr_03 online
c2t6d65s2 auto:sliced dg_bmpr12 dg_bmpr_06 online
c2t6d66s2 auto:sliced dg_bmpr12 dg_bmpr_03 online
c2t6d67s2 auto:sliced dg_bmpr09 dg_bmpr_07 online
c2t6d68s2 auto:sliced dg_bmpr11 dg_bmpr_09 online
c2t6d69s2 auto:sliced dg_bmpr11 dg_bmpr_11 online
c2t6d70s2 auto:sliced dg_bmpr11 dg_bmpr_13 online
c2t6d71s2 auto:sliced dg_bmpr09 dg_bmpr_04 online
c2t6d72s2 auto:sliced dg_bmpr10 dg_bmpr_07 online
c2t6d73s2 auto:sliced dg_bmpr12 dg_bmpr_09 online
c2t6d74s2 auto:sliced dg_bmpr12 dg_bmpr_11 online
c2t6d75s2 auto:sliced dg_bmpr12 dg_bmpr_13 online
c2t6d76s2 auto:sliced dg_bmpr11 dg_bmpr_15 online
c2t6d77s2 auto:sliced dg_bmpr12 dg_bmpr_16 online
c2t6d78s2 auto:sliced dg_bmpr12 dg_bmpr_17 online
c2t6d79s2 auto:sliced dg_bmpr11 dg_bmpr_04 online
c2t6d80s2 auto:sliced dg_bmpr12 dg_bmpr_07 online
c2t6d81s2 auto:sliced dg_bmpr09 dg_bmpr_10 online
c2t6d82s2 auto:sliced dg_bmpr09 dg_bmpr_12 online
c2t6d83s2 auto:sliced dg_bmpr09 dg_bmpr_14 online
c2t6d84s2 auto:sliced dg_bmpr09 dg_bmpr_05 online
c2t6d85s2 auto:sliced dg_bmpr09 dg_bmpr_08 online
c2t6d86s2 auto:sliced dg_bmpr10 dg_bmpr_10 online
c2t6d87s2 auto:sliced dg_bmpr10 dg_bmpr_12 online
c2t6d88s2 auto:sliced dg_bmpr10 dg_bmpr_14 online
c2t6d89s2 auto:sliced dg_bmpr11 dg_bmpr_05 online
c2t6d90s2 auto:sliced dg_bmpr10 dg_bmpr_08 online
c2t6d91s2 auto:sliced dg_bmpr11 dg_bmpr_10 online
c2t6d92s2 auto:sliced dg_bmpr11 dg_bmpr_12 online
c2t6d93s2 auto:sliced dg_bmpr11 dg_bmpr_14 online
c2t6d94s2 auto:sliced dg_bmpr12 dg_bmpr_15 online
c2t6d95s2 auto:sliced dg_bmpr09 dg_bmpr_17 online
c2t6d97s2 auto:sliced dg_bmpr12 dg_bmpr_05 online
c2t6d98s2 auto:sliced dg_bmpr11 dg_bmpr_08 online
c2t6d99s2 auto:sliced dg_bmpr12 dg_bmpr_10 online
c2t6d100s2 auto:sliced dg_bmpr12 dg_bmpr_12 online
c2t6d101s2 auto:sliced dg_bmpr12 dg_bmpr_14 online
c2t6d102s2 auto:sliced dg_bmpr09 dg_bmpr_16 online
c2t6d103s2 auto:sliced dg_bmpr09 dg_bmpr_06 online
c2t6d104s2 auto:sliced dg_bmpr12 dg_bmpr_08 online
c2t6d105s2 auto:sliced dg_bmpr09 dg_bmpr_11 online
c2t6d106s2 auto:sliced dg_bmpr09 dg_bmpr_13 online
c2t6d107s2 auto:sliced dg_bmpr09 dg_bmpr_15 online
c2t6d108s2 auto:sliced dg_bmpr10 dg_bmpr_16 online
c2t6d109s2 auto:sliced dg_bmpr10 dg_bmpr_17 online
c2t6d111s2 auto:sliced dg_bmpr11 dg_bmpr_06 online
c2t6d112s2 auto:sliced dg_bmpr10 dg_bmpr_09 online
c2t6d113s2 auto:sliced dg_bmpr10 dg_bmpr_11 online
c2t6d114s2 auto:sliced dg_bmpr10 dg_bmpr_13 online
c2t6d115s2 auto:sliced dg_bmpr10 dg_bmpr_15 online
c2t6d116s2 auto:sliced dg_bmpr11 dg_bmpr_16 online
c2t6d117s2 auto:sliced dg_bmpr11 dg_bmpr_17 online
c2t6d118s2 auto:sliced dg_bmpr10 dg_bmpr_05 online
c2t6d119s2 auto:sliced dg_bmpr10 dg_bmpr_06 online
c2t6d120s2 auto:sliced dg_bmpr09 dg_bmpr_09 online
c2t6d121s2 auto:sliced dg_bmpr10 dg_bmpr_04 online
c2t6d122s2 auto:sliced dg_bmpr11 dg_bmpr_07 online
c2t6d123s2 auto:sliced dg_bmpr12 dg_bmpr_04 online
[h3mis681]#vxdg list | grep bmpr
dg_bmpr_redo enabled 1076611735.1367.r2r-a880vxvm16
dg_bmpr_redo_mirror enabled,cds 1085165231.61.h3mis540
dg_bmpr_redo_03 enabled 1101856067.92.h3mis057
dg_bmpr_redo_04 enabled 1101856118.97.h3mis057
dg_bmpr_redo_05 enabled 1101856160.100.h3mis057
dg_bmpr_01 enabled 1076611259.1329.r2r-a880vxvm16
dg_bmpr_02 enabled 1076611391.1340.r2r-a880vxvm16
dg_bmpr_03 enabled 1076611490.1351.r2r-a880vxvm16
dg_bmpr_04 enabled 1076611652.1362.r2r-a880vxvm16
dg_bmpr_05 enabled 1091782309.123.h3mis046
dg_bmpr_06 enabled 1091788470.166.h3mis046
dg_bmpr_07 enabled 1091782670.127.h3mis046
dg_bmpr_08 enabled 1101856324.110.h3mis057
dg_bmpr_09 enabled 1104249200.118.h3mis540
dg_bmpr_10 enabled 1108061662.106.h3mis046
dg_bmpr_11 enabled 1110383595.138.h3mis540
dg_bmpr_12 enabled 1116579742.194.h3mis540
dg_bmpr_13 enabled 1116525652.166.h3mis540
dg_bmpr_14 enabled 1122024449.140.h3mis710
dg_bmpr_15 enabled 1123247740.156.h3mis710
dg_bmpr_16 enabled 1123247863.158.h3mis710
dg_bmpr_17 enabled 1124443653.194.h3mis710
dg_bmpr_18 enabled 1130766851.224.h3mis708
dg_bmpr_19 enabled 1130766906.226.h3mis708
dg_bmpr_20 enabled 1130766938.228.h3mis708
dg_bmpr_21 enabled 1130766966.230.h3mis708
dg_bmpr_22 enabled 1139511780.254.h3mis708
dg_bmpr_23 enabled 1141179811.202.h3mis709
dg_bmpr_24 enabled 1143730758.255.h3mis709
dg_bmpr_25 enabled 1143731534.269.h3mis709
dg_bmpr_26 enabled 1143731593.271.h3mis709
dg_bmpr_27 enabled 1143731646.273.h3mis709
dg_bmpr_28 enabled 1155199232.249.h3mis711
dg_bmpr_29 enabled 1155199311.251.h3mis711
dg_bmpr_30 enabled 1155199377.253.h3mis711
dg_bmpr_31 enabled 1155199425.255.h3mis711
dg_bmpr1_ofa enabled 1075996533.1226.r2r-a880vxvm16
dg_bmpr2_ofa enabled 1076611795.1372.r2r-a880vxvm16
[h3mis681]#vxdg list | grep bmpr | awk ‘{ print $1 }’
dg_bmpr_redo
dg_bmpr_redo_mirror
dg_bmpr_redo_03
dg_bmpr_redo_04
dg_bmpr_redo_05
dg_bmpr_01
dg_bmpr_02
dg_bmpr_03
dg_bmpr_04
dg_bmpr_05
dg_bmpr_06
dg_bmpr_07
dg_bmpr_08
dg_bmpr_09
dg_bmpr_10
dg_bmpr_11
dg_bmpr_12
dg_bmpr_13
dg_bmpr_14
dg_bmpr_15
dg_bmpr_16
dg_bmpr_17
dg_bmpr_18
dg_bmpr_19
dg_bmpr_20
dg_bmpr_21
dg_bmpr_22
dg_bmpr_23
dg_bmpr_24
dg_bmpr_25
dg_bmpr_26
dg_bmpr_27
dg_bmpr_28
dg_bmpr_29
dg_bmpr_30
dg_bmpr_31
dg_bmpr1_ofa
dg_bmpr2_ofa
[h3mis681]#vxdg list | grep bmpr | awk ‘{ print $1 }’
[h3mis681]#for i in `vxdg list | grep bmpr | awk ‘{ print $1 }’`
> do
> echo vxdg deport $i
> done
vxdg deport dg_bmpr_redo
vxdg deport dg_bmpr_redo_mirror
vxdg deport dg_bmpr_redo_03
vxdg deport dg_bmpr_redo_04
vxdg deport dg_bmpr_redo_05
vxdg deport dg_bmpr_01
vxdg deport dg_bmpr_02
vxdg deport dg_bmpr_03
vxdg deport dg_bmpr_04
vxdg deport dg_bmpr_05
vxdg deport dg_bmpr_06
vxdg deport dg_bmpr_07
vxdg deport dg_bmpr_08
vxdg deport dg_bmpr_09
vxdg deport dg_bmpr_10
vxdg deport dg_bmpr_11
vxdg deport dg_bmpr_12
vxdg deport dg_bmpr_13
vxdg deport dg_bmpr_14
vxdg deport dg_bmpr_15
vxdg deport dg_bmpr_16
vxdg deport dg_bmpr_17
vxdg deport dg_bmpr_18
vxdg deport dg_bmpr_19
vxdg deport dg_bmpr_20
vxdg deport dg_bmpr_21
vxdg deport dg_bmpr_22
vxdg deport dg_bmpr_23
vxdg deport dg_bmpr_24
vxdg deport dg_bmpr_25
vxdg deport dg_bmpr_26
vxdg deport dg_bmpr_27
vxdg deport dg_bmpr_28
vxdg deport dg_bmpr_29
vxdg deport dg_bmpr_30
vxdg deport dg_bmpr_31
vxdg deport dg_bmpr1_ofa
vxdg deport dg_bmpr2_ofa
[h3mis681]#for i in `vxdg list | grep bmpr | awk ‘{ print $1 }’`; do vxdg deport $i; done
[h3mis681]#vxdg list
NAME STATE ID
rootdg enabled 1182248016.211.h3mis681
[h3mis681]#df -k
Filesystem kbytes used avail capacity Mounted on
/dev/vx/dsk/bootdg/rootvol
10322908 3339601 6776849 34% /
/proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
fd 0 0 0 0% /dev/fd
/dev/vx/dsk/bootdg/var
10321884 910465 9308201 9% /var
swap 10789216 32 10789184 1% /var/run
dmpfs 10789184 0 10789184 0% /dev/vx/dmp
dmpfs 10789184 0 10789184 0% /dev/vx/rdmp
swap 10790328 1144 10789184 1% /tmp
/dev/vx/dsk/bootdg/vol_cmsm_file_06
493039 130454 313282 30% /cmsm_file
/dev/vx/dsk/bootdg/home
4128430 96954 3990192 3% /home
/dev/vx/dsk/bootdg/vol_audit_01
4128430 586 4086560 1% /audit
/dev/vx/dsk/bootdg/vol_apache_03
47279 9 42543 1% /apache
/dev/vx/dsk/bootdg/vol_cmsm_sw_05
984559 406084 519402 44% /cmsm_sw
/dev/vx/dsk/bootdg/vol_export_01
2097152 834636 1184701 42% /export
/dev/vx/dsk/bootdg/vol_oradata_01
6291456 2102297 3928606 35% /oradata
/dev/vx/dsk/bootdg/vol_audit_08
2097152 31682 1938049 2% /audit_BMPR1
/dev/vx/dsk/bootdg/vol_iplanet_04
288639 199772 60004 77% /ldap/iplanet
/dev/vx/dsk/bootdg/vol_bmcctm_07
204800 36210 158100 19% /bmc/ctmagent
/dev/vx/dsk/bootdg/vol_ecc_01
1048576 256329 742848 26% /usr/ecc
/dev/vx/dsk/bootdg/vol_appora_01
8388608 6628637 1649994 81% /app/oracle
/dev/vx/dsk/bootdg/vol_epipha_02
1984479 1474858 450087 77% /epiphany/epiadv6/ap
[h3mis681]#
———————————————————————————————–
# Partizionato male del disco per rimetterlo a posto
* /dev/rdsk/c1t0d0s2 partition map
*
* Dimensions:
* 512 bytes/sector
* 107 sectors/track
* 27 tracks/cylinder
* 2889 sectors/cylinder
* 24622 cylinders
* 24620 accessible cylinders
*
* Flags:
* 1: unmountable
* 10: read-only
*
* Unallocated space:
* First Sector Last
* Sector Count Sector
* 0 2889 2888
* 10492848 4284480226 5777
* 71127180 4234332964 10492847
* 35661816 35465364 71127179
*
* First Sector Last
* Partition Tag Flags Sector Count Sector Mount Directory
0 2 00 5778 10487070 10492847
1 3 01 10492848 16779312 27272159
2 5 01 0 71127180 71127179
3 15 01 2889 2889 5777
4 14 01 5778 71121402 71127179
5 0 00 27272160 8389656 35661815
* /dev/rdsk/c1t1d0s2 partition map
*
* Dimensions:
* 512 bytes/sector
* 107 sectors/track
* 27 tracks/cylinder
* 2889 sectors/cylinder
* 24622 cylinders
* 24620 accessible cylinders
*
* Flags:
* 1: unmountable
* 10: read-only
*
* First Sector Last
* Partition Tag Flags Sector Count Sector Mount Directory
2 5 00 0 71127180 71127179
3 15 01 0 2889 2888
4 14 01 2889 71124291 71127179
bash-2.03# uname -a
SunOS h3mis215 5.8 Generic_117350-51 sun4u sparc SUNW,Sun-Fire-880
bash-2.03# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c1t0d0s2 auto:sliced rootdg01 rootdg online
c1t1d0s2 auto:sliced rootdg02 rootdg online
c1t2d0s2 auto:sliced dg_prod_0101 dg_prod_01 online
c1t3d0s2 auto:cdsdisk dg_prod_0102 dg_prod_01 online
c1t4d0s2 auto:sliced dg_prod_0103 dg_prod_01 online
c1t5d0s2 auto:sliced dg_prod_0104 dg_prod_01 online
bash-2.03# vxbootsetup -v -g rootdg rootdg02
bash: vxbootsetup: command not found
bash-2.03# /etc/vx/bin/vxbootsetup -v -g rootdg rootdg02
! vxmksdpart -f -v -g rootdg rootdg02-01 0 0×2 0×200
! vxpartadd /dev/rdsk/c1t1d0s2 0 0×2 0×200 2889 10487070
! /usr/sbin/installboot /usr/platform/SUNW,Sun-Fire-880/lib/fs/ufs/bootblk /dev/rdsk/c1t1d0s0
! vxeeprom devalias vx-rootdg02 /dev/dsk/c1t1d0s0
! vxmksdpart -f -v -g rootdg rootdg02-02 1 0×3 0×201
! vxpartadd /dev/rdsk/c1t1d0s2 1 0×3 0×201 10489959 16779312
! vxmksdpart -f -v -g rootdg rootdg02-03 5 0×0 0×200
! vxpartadd /dev/rdsk/c1t1d0s2 5 0×0 0×200 27269271 8389656
! vxmksdpart -f -v -g rootdg rootdg02-04 7 0×0 0×200
! vxpartadd /dev/rdsk/c1t1d0s2 7 0×0 0×200 35658927 2097414
—————————————————————————————————————————
# cmc web veritas
https://cmcsvc.ced.h3g.it:14443/view/login.do
username: dondonis ( utente unix )
passwd: solita
domain: h3mis276.ced.h3g.it o h3mis578.ced.h3g.it
—————————————————————————————————————————-
Veritas Volume Manager Command Line Examples
Tags:
* Veritas VM
Volume Manager CLI examples:
—————————
display disk listings:
# vxdisk list
display volume manager object listings
# vxprint -ht
display free space in a disk group
# vxdg -g <diskgroup> free
list all volume manager tasks currently running on the system
# vxtask list
add a disk to Volume Manager (devicename = cXtXdX) (prompt driven)
# vxdiskadd <devicename>
designate/remove a disk as a hot-relocation spare
# vxedit set spare=on <diskname>
# vxedit set spare=off <diskname>
rename a disk
# vxedit rename <old_diskname> <new_diskname>
reserve/unreserve a disk (space won’t be allocated unless specifically mentioned in vxassist)
# vxedit set reserve=on <diskname>
# vxedit set reserve=off <diskname>
take a disk offline (first remove the disk from its disk group) (devicename=cXtXdXs2)
#vxdisk offline <devicename>
remove a disk
(first, stop any applications associated with the volume,
unmount the volume, stop the volume,
if you need the data on the disk, move the volumes to another disk or back up volume)
–removing the disk from its disk group:
# vxdg -g <diskgroup> rmdisk <diskname>
–remove the disk from volume manager control (devicename=cXtXdXs2)
# vxdisk rm <devicename>
display multipath information
# vxdisk list <diskname>
create a disk group
(see ‘add a disk to volume manager – if the group does not exist, you will be prompted)
upgrade a disk group
–list disk group version
# vxdg list <diskgroup>
–upgrade disk group to highest version currently running
# vxdg upgrade <diskgroup>
destroy a disk group
# vxdg destroy <diskgroup>
display disk group information
# vxdg list
# vxdg list <diskgroup>
move a disk group
(stop any applications associated with all volumes in the disk group,
unmount and stop all volumes in the disk group:
–deport (disable local access) the disk group to be moved on first system
# vxdg deport <diskgroup>
–import (enable local access) the disk group and its disks from the second system
# vxdg import <diskgroup>
–start all volumes in the disk group on the second system
# vxrecover -g <diskgroup> -sb
or # vxvol -g <diskgroup> startall
estimating maximum volume size (any_valid_type = raid5, stripe, mirror)
# vxassist -g <diskgroup> maxsize layout=<any_valid_type>
create a concatenated volume (length examples = 15g, 15m)
# vxassist -g <diskgroup> make <volumename> <length> <diskname> <diskname>
create a striped volume (length examples = 15g, 15m)
# vxassist -g <diskgroup> make <volumename> <length> layout=stripe <diskname> \
<diskname>
create a raid5 volume (without logging) (length examples = 15g, 15m)
# vxassist -g <diskgroup> make <volumename> <length> layout=raid5,nolog <diskname> \
<diskname> <diskname> <diskname>
create a raid5 volume (with logging) (length examples = 15g, 15m)
# vxassist -g <diskgroup> make <volumename> <length> layout=raid5,log <diskname> \
<diskname> <diskname> <diskname>
create a mirrored volume (without DRL) (length examples = 15g, 15m)
# vxassist -g <diskgroup> make <volumename> <length> layout=mirror,nolog <diskname> \
<diskname>
create a mirrored volume (with DRL) (length examples = 15g, 15m)
# vxassist -g <diskgroup> make <volumename> <length> layout=mirror,log <diskname> \
<diskname>
mirror an existing volume
# vxassist mirror <volumename> <diskname_of_disk_to_be_mirrored>
mirror all volumes within a disk group
# vxmirror -g <diskgroup> -a
mirror the root (boot) disk
EEPROM variable “use-nvramrc?” must be set to true
# vxrootmir -v <medianame>
remove a mirror (use ‘vxprint -g <diskgroup> -ht’ to get plexname)
# vxplex -o rm dis <plexname>
add a log to an existing volume
# vxassist addlog <volumename> <diskname>
remove a log from an existing volume
# vxassist remove log <volumename>
create a raid 0+1 volume (without DRL)
# vxassist -g <diskgroup> make <volumename> <length> layout=mirror-stripe,nolog \
nmirror=# nstripe=# <diskname> <diskname> <diskname>
create a raid 1+0 volume (without DRL)
# vxassist -g <diskgroup> make <volumename> <length> layout=stripe-mirror,nolog \
nmirror=# nstripe=# <diskname> <diskname> <diskname>
resize a volume
# vxassist -g <diskgroup> growto <volumename> <length>
# vxassist -g <diskgroup> growby <volumename> <length>
# vxassist -g <diskgroup> shrinkto <volumename> <length>
# vxassist -g <diskgroup> shrinkby <volumename> <length>
estimate how much a volume can grow
# vxassist -g <diskgroup> maxgrow <volumename>
remove a volume
(stop all applications associated with the volume,
unmount volume (remove /etc/vfstab entry))
–stop volume
# vxvol stop <volumename>
– remove volume (for raid 1+0, use ‘rf-rm’)
# vxedit -r rm <volumename>
or # vxassist remove volume <volumename>
change the volume read policy
# vxvol rdpol <policy> <volumename>
# vxvol rdpol prefer <volumename> <preferred_plex_name>
change volume attributes
# vxedit set <field>=<value> <volumename>
resize a filesystem (ufs cannot be shrunk, only grown)
# vxresize -g <diskgroup> <volumename> + <size>
# vxresize -g <diskgroup> <volumename> – <size>
join subdisks (must be in the order of offset on disks)
# vxsd join <subdisk> <subdisk> <subdisk>
»
* Add new comment
* 21728 reads
create a striped volume (length examples = 15g, 15m)
Submitted by Anonymous (not verified) on Wed, 07/16/2008 – 04:41.
The syntax is incorrect for:
create a striped volume (length examples = 15g, 15m)
# vxassist -g make layout=stripe \
It should be something like this:
# vxassist -g testdg make testdgvol1 285503488 layout=stripe alloc=disk1,disk2,disk3,disk4
———————————————————————————————————-
root@h3fas118 # vxassist -g rootdg maxsize layout=mirror
Maximum volume size: 219435008 (107146Mb)
root@h3fas118 # vxassist -b -g rootdg make vol_ecc_01 1g layout=mirror
root@h3fas118 # vxtask list
TASKID PTID TYPE/STATE PCT PROGRESS
161 RDWRBACK/R 49.32% 0/2097152/1034240 VOLSTART vol_ecc_01 rootdg
root@h3fas118 # vxtask list
TASKID PTID TYPE/STATE PCT PROGRESS
root@h3fas118 # mkfs -F vxfs /dev/vx/rdsk/rootdg/vol_ecc_01
version 7 layout
2097152 sectors, 1048576 blocks of size 1024, log size 16384 blocks
largefiles supported
root@h3fas118 # mkdir /usr/ecc
root@h3fas118 # mount -F vxfs /dev/vx/dsk/rootdg/vol_ecc_01 /usr/ecc/
root@h3fas118 # vi /etc/vfstab
“/etc/vfstab” 18 lines, 797 characters
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/vx/dsk/bootdg/swapvol - - swap - no -
/dev/vx/dsk/bootdg/rootvol /dev/vx/rdsk/bootdg/rootvol / ufs 1 no -
/dev/vx/dsk/bootdg/var /dev/vx/rdsk/bootdg/var /var ufs 1 no -
/dev/vx/dsk/bootdg/home /dev/vx/rdsk/bootdg/home /home ufs 2 yes -
/devices - /devices devfs - no -
sharefs - /etc/dfs/sharetab sharefs - no -
ctfs - /system/contract ctfs - no -
objfs - /system/object objfs - no -
swap - /tmp tmpfs - yes -
#NOTE: volume rootvol (/) encapsulated partition c1t0d0s0
#NOTE: volume swapvol (swap) encapsulated partition c1t0d0s1
#NOTE: volume var (/var) encapsulated partition c1t0d0s5
#NOTE: volume home (/home) encapsulated partition c1t0d0s6
/dev/vx/dsk/bootdg/vol_ecc_01 /dev/vx/rdsk/bootdg/vol_ecc_01 /usr/ecc vxfs 2 yes largefiles
————————————————————————————————————————-
# Creazione Raw per Oracle in VXVM
391 vxdg init dg_time_01 disk01=c3t5006016210602CE1d0s2 cds=off
392 vxdisk list
393 vxdisksetup -i c3t5006016210602CE1d0 format=sliced
394 vxdisksetup -i c3t5006016210602CE1d1 format=sliced
395 vxdisksetup -i c3t5006016210602CE1d2 format=sliced
396 vxdg init dg_time_01 disk01=c3t5006016210602CE1d0s2 cds=off
397 vxdg list
398 vxdg init dg_time_ofa disk02=c3t5006016210602CE1d1 cds=off
399 vxdg init dg_time_redo disk03=c3t5006016210602CE1d2 cds=off
400 vxassist -b -g dg_time_01 -U gen make rlv_time_0512_raw_001 512m user=oracle group=dba mode=640
401 grep oracle /etc/passwd
402 cat /etc/group
403 groupadd -g 1301 dba
404 useradd -u 1301 -g dba -m -d /home/oracle -s /usr/bin/ksh oracle
405 passwd oracle
406 vxassist -b -g dg_time_01 -U gen make rlv_time_0512_raw_001 512m user=oracle group=dba mode=640
407 vxassist -b -g dg_time_01 -U gen make rlv_time_0512_raw_002 512m user=oracle group=dba mode=640
408 vxassist -b -g dg_time_01 -U gen make rlv_time_1024_raw_001 1024m user=oracle group=dba mode=640
409 vxassist -b -g dg_time_01 -U gen make rlv_time_1024_raw_002 1024m user=oracle group=dba mode=640
410 vxassist -b -g dg_time_01 -U gen make rlv_time_1024_raw_003 1024m user=oracle group=dba mode=640
411 vxassist -b -g dg_time_01 -U gen make rlv_time_1024_raw_004 1024m user=oracle group=dba mode=640
412 vxassist -b -g dg_time_01 -U gen make rlv_time_1024_raw_005 1024m user=oracle group=dba mode=640
413 vxassist -b -g dg_time_01 -U gen make rlv_time_2048_raw_001 2048m user=oracle group=dba mode=640
414 vxassist -b -g dg_time_01 -U gen make rlv_time_4096_raw_001 4096m user=oracle group=dba mode=640
415 vxassist -b -g dg_time_01 -U gen make rlv_time_4096_raw_002 4096m user=oracle group=dba mode=640
416 vxassist -b -g dg_time_01 -U gen make rlv_time_4096_raw_003 4096m user=oracle group=dba mode=640
417 vxassist -b -g dg_time_01 -U gen make rlv_time_4096_raw_004 4096m user=oracle group=dba mode=640
418 vxassist -b -g dg_time_01 -U gen make rlv_time_8192_raw_001 8192m user=oracle group=dba mode=640
419 clear
420 vxassist -b -g dg_time_01 -U gen make rlv_time_8192_raw_002 8192m user=oracle group=dba mode=640
421 vxassist -b -g dg_time_01 -U gen make rlv_time_8192_raw_003 8192m user=oracle group=dba mode=640
422 vxassist -b -g dg_time_01 -U gen make rlv_time_8192_raw_004 8192m user=oracle group=dba mode=640
423 vxassist -b -g dg_time_01 -U gen make rlv_time_8192_raw_005 8192m user=oracle group=dba mode=640
424 vxassist -b -g dg_time_01 -U gen make rlv_time_8192_raw_006 8192m user=oracle group=dba mode=640
425 vxassist -b -g dg_time_01 -U gen make rlv_time_8192_raw_007 8192m user=oracle group=dba mode=640
426 vxassist -b -g dg_time_01 -U gen make rlv_time_8192_raw_008 8192m user=oracle group=dba mode=640
427 vxtask list
428 vxtask list
429 vxdisk list
430 vxprint -vg dg_time_01
431 vxassist -b -g dg_time_redo -U gen make rlv_time_1024_raw_001 1024m user=oracle group=dba mode=640
432 vxassist -b -g dg_time_redo -U gen make rlv_time_1024_raw_002 1024m user=oracle group=dba mode=640
433 vxassist -b -g dg_time_redo -U gen make rlv_time_1024_raw_003 1024m user=oracle group=dba mode=640
434 vxassist -b -g dg_time_redo -U gen make rlv_time_1024_raw_004 1024m user=oracle group=dba mode=640
435 vxassist -b -g dg_time_redo -U gen make rlv_time_1024_raw_005 1024m user=oracle group=dba mode=640
436 vxassist -b -g dg_time_redo -U gen make rlv_time_1024_raw_006 1024m user=oracle group=dba mode=640
437 vxassist -b -g dg_time_redo -U gen make rlv_time_1024_raw_007 1024m user=oracle group=dba mode=640
438 vxassist -b -g dg_time_redo -U gen make rlv_time_1024_raw_008 1024m user=oracle group=dba mode=640
439 vxdg list
440 vxassist -b -g dg_time_ofa make lv_time_ofa 4g
441 vxassist -b -g dg_time_ofa make lv_time_archive 7g
442 vxassist -g dg_time_ofa maxsize
443 vxassist -b -g dg_time_ofa make lv_time_archive 7134m
444 vxassist -g dg_time_ofa maxsize
445 vxassist -g rootdg maxsize layout=mirror
446 vxassist -b -g rootdg make vol_appora_01 8g layout=mirror
447 vxtask list
448 vxtask list
449 vxtask list
450 vxtask list
451 clear
452 mkfs -F vxfs /dev/vx/rdsk/dg_time_ofa/lv_time_archive
453 mkfs -F vxfs /dev/vx/rdsk/rootdg/vol_appora_01
454 mkdir /ofa_TIME
455 mkdir /archive_TIME
456 vxtask list
457 mkdir -p /app/oracle
458 vatask list
459 vxtask list
460 mkfs -F vxfs /dev/vx/rdsk/rootdg/vol_appora_01
461 vxdg list
462 vxdisk list
463 format
464 vxdisk list
465 vxprint -vg rootdg
466 vi /etc/vfstab
467 clear
468 mount /app/oracle
469 df -h
470 cat /etc/vfstab
471 ls /dev/vx/rdsk/dg_time_ofa/lv_time_
472 vi /etc/vfstab
473 mount /ofa_TIME
474 mount /archive_TIME
475 df -h
476 vi /etc/vfstab
477 clear
478 uname -r
479 stty cols 130
480 vi /etc/vfstab
481 vi /etc/project
482 vi /etc/system
483 vi /etc/project
484 vi /etc/system
485 vi /etc/system
486 cat /etc/project
487 id oracle
488 grep oracle /etc/passwd
489 vi /etc/user_attr
490 w
491 ps -ef | grep -v root
492 df -k
493 history
494 stty erase ^?
495 export PATH=$PATH:/usr/local/bin:/usr/symcli/bin:/sbin:/usr/sbin/:.
496 export PS1=”[\u@\h:\w] “
497 alias ll=’ls -la’
498 df -k
499 cd /usr/ecc/
500 ll
501 history
461 fuser -cu /dev/vx/rdsk/dg_CCV_01/rlv_ccv_4096_007
462 clear
463 vxprint -vg dg_CCV_01
464 vxdisk list
465 vxprint -vg dg_CCV_01
466 vxprint -vg dg_CCV_01 maxsize layout=mirror
467 vxprint -vg dg_CCV_01 maxsize
468 vxassist -g dg_CCV_01 maxsize
469 vxprint -thg dg_CCV_01
470 clear
471 vxassist -g dg_CCV_01 maxsize
472 vxprint -vg dg_CCV_01
473 vxassist -g dg_CCV_01 remove volume rlv_ccv_4096_007
474 vxassist -g dg_CCV_01 remove volume rlv_ccv_4096_008
475 vxassist -g dg_CCV_01 remove volume rlv_ccv_4096_009
476 vxassist -g dg_CCV_01 remove volume rlv_ccv_4096_010
477 vxassist -g dg_CCV_01 maxsize
478 vxprint -thg dg_CCV_01
479 vxassist -g dg_CCV_01 -U gen make rlv_ccv_1024_003 1024m layout=stripe ncol=8 stripeunit=256k user=oracle group=dba mode=640
480 vxprint -thg dg_CCV_01
481 vxassist -g dg_CCV_01 -U gen make rlv_ccv_1024_004 1024m layout=stripe ncol=8 stripeunit=256k user=oracle group=dba mode=640
482 vxprint -thg dg_CCV_01
483 vxassist -g dg_CCV_01 -U gen make rlv_ccv_1024_005 1024m layout=stripe ncol=8 stripeunit=256k user=oracle group=dba mode=640
484 vxassist -g dg_CCV_01 -U gen make rlv_ccv_1024_006 1024m layout=stripe ncol=8 stripeunit=256k user=oracle group=dba mode=640
485 vxassist -g dg_CCV_01 -U gen make rlv_ccv_1024_007 1024m layout=stripe ncol=8 stripeunit=256k user=oracle group=dba mode=640
486 vxassist -g dg_CCV_01 -U gen make rlv_ccv_1024_008 1024m layout=stripe ncol=8 stripeunit=256k user=oracle group=dba mode=640
487 vxassist -g dg_CCV_01 -U gen make rlv_ccv_1024_009 1024m layout=stripe ncol=8 stripeunit=256k user=oracle group=dba mode=640
488 vxassist -g dg_CCV_01 -U gen make rlv_ccv_1024_010 1024m layout=stripe ncol=8 stripeunit=256k user=oracle group=dba mode=640
489 vxassist -g dg_CCV_01 -U gen make rlv_ccv_1024_011 1024m layout=stripe ncol=8 stripeunit=256k user=oracle group=dba mode=640
490 vxassist -g dg_CCV_01 -U gen make rlv_ccv_1024_012 1024m layout=stripe ncol=8 stripeunit=256k user=oracle group=dba mode=640
491 vxassist -g dg_CCV_01 -U gen make rlv_ccv_1024_013 1024m layout=stripe ncol=8 stripeunit=256k user=oracle group=dba mode=640
492 vxassist -g dg_CCV_01 -U gen make rlv_ccv_1024_014 1024m layout=stripe ncol=8 stripeunit=256k user=oracle group=dba mode=640
493 vxassist -g dg_CCV_01 -U gen make rlv_ccv_1024_015 1024m layout=stripe ncol=8 stripeunit=256k user=oracle group=dba mode=640
494 vxassist -g dg_CCV_01 -U gen make rlv_ccv_1024_016 1024m layout=stripe ncol=8 stripeunit=256k user=oracle group=dba mode=640
495 vxassist -g dg_CCV_01 -U gen make rlv_ccv_1024_017 1024m layout=stripe ncol=8 stripeunit=256k user=oracle group=dba mode=640
496 vxassist -g dg_CCV_01 -U gen make rlv_ccv_1024_018 1024m layout=stripe ncol=8 stripeunit=256k user=oracle group=dba mode=640
497 vxassist -g dg_CCV_01 maxsize
498 vxprint -thg dg_CCV_01
499 ls -lrt /dev/vx/rdsk/dg_CCV_01/rlv_ccv_1024_014
500 history
root@h3mis692 #
———————————————————————————————————————–
# problema h3mis845 raw device in disable recover
341 vxprint -htg dg_wise_01
342 vxrecover -bs -g dg_wise_01 rlv_wise_4096_raw_007
343 vxprint -htg dg_wise_01
344 vxmend -g rlv_wise_4096_raw_007 - DISABLED ACTIVE 8388608 SELECT - gen
345 pl rlv_wise_4096_raw_007-01 rlv_wise_4096_raw_007 DISABLED RECOVER 8392608 STRIPE 4/256 RW
346 sd disk01-27 rlv_wise_4096_raw_007-01 disk01 26245440 2098080 0/0 c2t50060E8003EB5E3Bd7 ENA
347 sd disk02-27 rlv_wise_4096_raw_007-01 disk02 26245440 2098080 1/0 c2t50060E8003EB5E3Bd8 ENA
348 sd disk03-27 rlv_wise_4096_raw_007-01 disk03 26245440 2098080 2/0 c2t50060E8003EB5E3Bd9 ENA
349 sd disk04-27 rlv_wise_4096_raw_007-01 disk04 26245440 2098080 3/0 c2t50060E8003EB5E3Bd10 ENA
350 <h3mis845># vxrecover -bs -g dg_wise_01 rlv_wise_4096_raw_007
351 <h3mis845># vxprint -htg dg_wise_01
352 DG NAME NCONFIG NLOG MINORS GROUP-ID
353 ST NAME STATE DM_CNT SPARE_CNT APPVOL_CNT
354 DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
355 RV NAME RLINK_CNT KSTATE STATE PRIMARY DATAVOLS SRL
356 RL NAME RVG KSTATE STATE REM_HOST REM_DG REM_RLNK
357 CO NAME CACHEVOL KSTATE STATE
358 VT NAME RVG KSTATE STATE NVOLUME
359 V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
360 PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
361 SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE
362 SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE
363 SC NAME PLEX CACHE DISKOFFS LENGTH [COL/]OFF DEVICE MODE
364 DC NAME PARENTVOL LOGVOL
365 SP NAME SNAPVOL DCO
366 EX NAME ASSOC VC PERMS MODE STATE
367 SR NAME KSTATE
368 dg dg_wise_01 default default 95000 1214918824.302.h3mis845
369 dm disk01 c2t50060E8003EB5E3Bd7s2 auto 2623 28445760 -
370 dm disk02 c2t50060E8003EB5E3Bd8s2 auto 2623 28445760 -
371 dm disk03 c2t50060E8003EB5E3Bd9s2 auto 2623 28445760 -
372 dm disk04 c2t50060E8003EB5E3Bd10s2 auto 2623 28445760 -
373 v rlv_wise_0512_raw_001 - DISABLED ACTIVE 1048576 SELECT - gen
374 pl rlv_wise_0512_raw_001-01 rlv_wise_0512_raw_001 DISABLED RECOVER 1054560 STRIPE 4/256 RW
375 sd disk01-01 rlv_wise_0512_raw_001-01 disk01 0 263520 0/0 c2t50060E8003EB5E3Bd7 ENA
376 sd disk02-01 rlv_wise_0512_raw_001-01 disk02 0 263520 1/0 c2t50060E8003EB5E3Bd8 ENA
377 sd disk03-01 rlv_wise_0512_raw_001-01 disk03 0 263520 2/0 c2t50060E8003EB5E3Bd9 ENA
378 sd disk04-01 rlv_wise_0512_raw_001-01 disk04 0 263520 3/0 c2t50060E8003EB5E3Bd10 ENA
379 v rlv_wise_0512_raw_002 - DISABLED ACTIVE 1048576 SELECT - gen
380 pl rlv_wise_0512_raw_002-01 rlv_wise_0512_raw_002 DISABLED RECOVER 1054560 STRIPE 4/256 RW
381 sd disk01-02 rlv_wise_0512_raw_002-01 disk01 263520 263520 0/0 c2t50060E8003EB5E3Bd7 ENA
382 sd disk02-02 rlv_wise_0512_raw_002-01 disk02 263520 263520 1/0 c2t50060E8003EB5E3Bd8 ENA
383 sd disk03-02 rlv_wise_0512_raw_002-01 disk03 263520 263520 2/0 c2t50060E8003EB5E3Bd9 ENA
384 sd disk04-02 rlv_wise_0512_raw_002-01 disk04 263520 263520 3/0 c2t50060E8003EB5E3Bd10 ENA
385 vxprint -htg dg_wise_01
386 vxmend -g dg_wise_01 fix stale rlv_wise_4096_raw_007-01
387 vxmend -g dg_wise_01 fix clean rlv_wise_4096_raw_007-01
388 vxvol -g dg_wise_01 start rlv_wise_4096_raw_007
389 vxprint -htg dg_wise_01
390 vxmend -g dg_wise_01 fix stale rlv_wise_4096_raw_006-01
391 vxmend -g dg_wise_01 fix stale rlv_wise_4096_raw_005-01
392 vxmend -g dg_wise_01 fix stale rlv_wise_4096_raw_004-01
393 vxmend -g dg_wise_01 fix stale rlv_wise_4096_raw_003-01
394 vxmend -g dg_wise_01 fix stale rlv_wise_4096_raw_002-01
395 vxmend -g dg_wise_01 fix stale rlv_wise_4096_raw_001-01
396 vxmend -g dg_wise_01 fix stale rlv_wise_2048_raw_008-01
397 vxmend -g dg_wise_01 fix stale rlv_wise_2048_raw_007-01
398 vxmend -g dg_wise_01 fix stale rlv_wise_2048_raw_006-01
399 vxmend -g dg_wise_01 fix stale rlv_wise_2048_raw_005-01
400 vxmend -g dg_wise_01 fix stale rlv_wise_2048_raw_004-01
401 vxmend -g dg_wise_01 fix stale rlv_wise_2048_raw_003-01
402 vxmend -g dg_wise_01 fix stale rlv_wise_2048_raw_002-01
403 vxmend -g dg_wise_01 fix stale rlv_wise_2048_raw_001-01
404 vxmend -g dg_wise_01 fix stale rlv_wise_1024_raw_008-01
405 vxmend -g dg_wise_01 fix stale rlv_wise_1024_raw_007-01
406 vxmend -g dg_wise_01 fix stale rlv_wise_1024_raw_006-01
407 vxmend -g dg_wise_01 fix stale rlv_wise_1024_raw_005-01
408 vxmend -g dg_wise_01 fix stale rlv_wise_1024_raw_004-01
409 vxmend -g dg_wise_01 fix stale rlv_wise_1024_raw_003-01
410 vxmend -g dg_wise_01 fix stale rlv_wise_1024_raw_002-01
411 vxmend -g dg_wise_01 fix stale rlv_wise_1024_raw_001-01
412 vxmend -g dg_wise_01 fix stale rlv_wise_0512_raw_004-01
413 vxmend -g dg_wise_01 fix stale rlv_wise_0512_raw_003-01
414 vxmend -g dg_wise_01 fix stale rlv_wise_0512_raw_002-01
415 vxmend -g dg_wise_01 fix stale rlv_wise_0512_raw_001-01
416 vxmend -g dg_wise_01 fix clean rlv_wise_4096_raw_006-01
417 vxmend -g dg_wise_01 fix clean rlv_wise_4096_raw_005-01
418 vxmend -g dg_wise_01 fix clean rlv_wise_4096_raw_004-01
419 vxmend -g dg_wise_01 fix clean rlv_wise_4096_raw_003-01
420 vxmend -g dg_wise_01 fix clean rlv_wise_4096_raw_002-01
421 vxmend -g dg_wise_01 fix clean rlv_wise_4096_raw_001-01
422 vxmend -g dg_wise_01 fix clean rlv_wise_2048_raw_008-01
423 vxmend -g dg_wise_01 fix clean rlv_wise_2048_raw_007-01
424 vxmend -g dg_wise_01 fix clean rlv_wise_2048_raw_006-01
425 vxmend -g dg_wise_01 fix clean rlv_wise_2048_raw_005-01
426 vxmend -g dg_wise_01 fix clean rlv_wise_2048_raw_004-01
427 vxmend -g dg_wise_01 fix clean rlv_wise_2048_raw_003-01
428 vxmend -g dg_wise_01 fix clean rlv_wise_2048_raw_002-01
429 vxmend -g dg_wise_01 fix clean rlv_wise_2048_raw_001-01
430 vxmend -g dg_wise_01 fix clean rlv_wise_1024_raw_008-01
431 vxmend -g dg_wise_01 fix clean rlv_wise_1024_raw_007-01
432 vxmend -g dg_wise_01 fix clean rlv_wise_1024_raw_006-01
433 vxmend -g dg_wise_01 fix clean rlv_wise_1024_raw_005-01
434 vxmend -g dg_wise_01 fix clean rlv_wise_1024_raw_004-01
435 vxmend -g dg_wise_01 fix clean rlv_wise_1024_raw_003-01
436 vxmend -g dg_wise_01 fix clean rlv_wise_1024_raw_002-01
437 vxmend -g dg_wise_01 fix clean rlv_wise_1024_raw_001-01
438 vxmend -g dg_wise_01 fix clean rlv_wise_0512_raw_004-01
439 vxmend -g dg_wise_01 fix clean rlv_wise_0512_raw_003-01
440 vxmend -g dg_wise_01 fix clean rlv_wise_0512_raw_002-01
441 vxmend -g dg_wise_01 fix clean rlv_wise_0512_raw_001-01
442 vxprint -qQvg dg_wise_01
443 vxprint -qQvg dg_wise_01|awk ‘{print $2}’
444 for vol in $(vxprint -qQvg dg_wise_01|awk ‘{print $2}’); do echo ${vol}; vxvol -g dg_wise_01 start ${vol}; done
445 vxprint -qQvg dg_wise_01
446 vxprint -ht|grep -i disa
447 vxprint -ht|grep -i reco
448 finger
449 vxdisk -o alldgs list
450 cat /etc/vxfendg
451 /opt/VRTSvcs/vxfen/bin/vxfentsthdw
452 grep vxfen /var/sadm/install/contents
453 vxfenadm
454 cat /etc/vxfentab
455 vxfenadm -g /dev/rdsk/c2t50060E8003EB5E3Bd30s2
456 vxfenadm -G /dev/rdsk/c2t50060E8003EB5E3Bd30s2
457 vxfenadm -g /dev/rdsk/c2t50060E8003EB5E3Bd30s2
458 vxfenadm -r /dev/rdsk/c2t50060E8003EB5E3Bd30s2
459 vxfenadm -R /dev/rdsk/c2t50060E8003EB5E3Bd30s2
460 vxfenadm -d
461 man vxfenadm
462 vxfenadm -g all -f /etc/vxfentab
463 vxfenadm -d
464 man vxfenadm
465 dmesg
ZONE
metainit d102 -p d100 30g
newfs -m 1 /dev/md/rdsk/d102
mkdir /zone_h3miz005
root@h3mis854 # mount /dev/md/dsk/d102 /zone_h3miz005
root@h3mis854 # metainit d102 -p d100 25g
root@h3mis854 # metastat -p
d200 -m d210 d220 1
d210 1 1 c1t4d0s4
d220 1 1 c1t5d0s4
d5 -m d15 d25 1
d15 1 1 c1t0d0s5
d25 1 1 c1t1d0s5
d4 -m d14 d24 1
d14 1 1 c1t0d0s4
d24 1 1 c1t1d0s4
d1 -m d11 d21 0
d11 1 1 c1t0d0s1
d21 1 1 c1t1d0s1
d0 -m d10 d20 1
d10 1 1 c1t0d0s0
d20 1 1 c1t1d0s0
d102 -p d100 -o 8388672 -b 52428800
d100 -m d110 d120 1
d110 1 1 c1t2d0s4
d120 1 1 c1t3d0s4
d101 -p d100 -o 32 -b 8388608
root@h3mis854 # newfs -m 1 /dev/md/rdsk/d102
/dev/md/rdsk/d102: Unable to find Media type. Proceeding with system determined parameters.
newfs: construct a new file system /dev/md/rdsk/d102: (y/n)? y^C
root@h3mis854 # df -k
Filesystem kbytes used avail capacity Mounted on
/dev/md/dsk/d0 7229330 4229357 2927680 60% /
/devices 0 0 0 0% /devices
ctfs 0 0 0 0% /system/contract
proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
swap 11447904 1504 11446400 1% /etc/svc/volatile
objfs 0 0 0 0% /system/object
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
7229330 4229357 2927680 60% /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
7229330 4229357 2927680 60% /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd 0 0 0 0% /dev/fd
/dev/md/dsk/d4 6196247 1492931 4641354 25% /var
swap 11446432 32 11446400 1% /tmp
swap 11446448 48 11446400 1% /var/run
/dev/md/dsk/d101 4128766 5115 4082364 1% /audit
/dev/md/dsk/d5 2055085 2065 1991368 1% /home
root@h3mis854 # newfs -m 1 /dev/md/rdsk/d102
/dev/md/rdsk/d102: Unable to find Media type. Proceeding with system determined parameters.
newfs: construct a new file system /dev/md/rdsk/d102: (y/n)? y
/dev/md/rdsk/d102: Unable to find Media type. Proceeding with system determined parameters.
Warning: 4096 sector(s) in last cylinder unallocated
/dev/md/rdsk/d102: 52428800 sectors in 8534 cylinders of 48 tracks, 128 sectors
25600.0MB in 534 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:
51512864, 51611296, 51709728, 51808160, 51906592, 52005024, 52103456,
52201888, 52300320, 52398752
root@h3mis854 # metastat -p
d200 -m d210 d220 1
d210 1 1 c1t4d0s4
d220 1 1 c1t5d0s4
d5 -m d15 d25 1
d15 1 1 c1t0d0s5
d25 1 1 c1t1d0s5
d4 -m d14 d24 1
d14 1 1 c1t0d0s4
d24 1 1 c1t1d0s4
d1 -m d11 d21 0
d11 1 1 c1t0d0s1
d21 1 1 c1t1d0s1
d0 -m d10 d20 1
d10 1 1 c1t0d0s0
d20 1 1 c1t1d0s0
d102 -p d100 -o 8388672 -b 52428800
d100 -m d110 d120 1
d110 1 1 c1t2d0s4
d120 1 1 c1t3d0s4
d101 -p d100 -o 32 -b 8388608
root@h3mis854 # mkdir /zone_h3miz005
root@h3mis854 # mount /dev/md/dsk/d102 /zone_h3miz005
root@h3mis854 # df -k
Filesystem kbytes used avail capacity Mounted on
/dev/md/dsk/d0 7229330 4229534 2927503 60% /
/devices 0 0 0 0% /devices
ctfs 0 0 0 0% /system/contract
proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
swap 11446256 1504 11444752 1% /etc/svc/volatile
objfs 0 0 0 0% /system/object
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
7229330 4229534 2927503 60% /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
7229330 4229534 2927503 60% /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd 0 0 0 0% /dev/fd
/dev/md/dsk/d4 6196247 1492931 4641354 25% /var
swap 11444784 32 11444752 1% /tmp
swap 11444800 48 11444752 1% /var/run
/dev/md/dsk/d101 4128766 5115 4082364 1% /audit
/dev/md/dsk/d5 2055085 2065 1991368 1% /home
/dev/md/dsk/d102 25817079 25617 25533292 1% /zone_h3miz005
root@h3mis854 # df -h
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d0 6.9G 4.0G 2.8G 60% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 11G 1.5M 11G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
6.9G 4.0G 2.8G 60% /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
6.9G 4.0G 2.8G 60% /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd 0K 0K 0K 0% /dev/fd
/dev/md/dsk/d4 5.9G 1.4G 4.4G 25% /var
swap 11G 32K 11G 1% /tmp
swap 11G 48K 11G 1% /var/run
/dev/md/dsk/d101 3.9G 5.0M 3.9G 1% /audit
/dev/md/dsk/d5 2.0G 2.0M 1.9G 1% /home
/dev/md/dsk/d102 25G 25M 24G 1% /zone_h3miz005
root@h3mis854 # cd /zone_h3miz005
root@h3mis854 # ls -ltr
total 16
drwx—— 2 root root 8192 Feb 4 15:21 lost+found
root@h3mis854 # df -h .
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d102 25G 25M 24G 1% /zone_h3miz005
root@h3mis854 #
root@h3mis854 # zonecfg -z h3miz005
h3miz005: No such zone configured
Use ‘create’ to begin configuring a new zone.
zonecfg:h3miz005> create
zonecfg:h3miz005> set zonepath=/zone_h3miz005
zonecfg:h3miz005> set autoboot=true
zonecfg:h3miz005> set bootargs=”-m verbose”
zonecfg:h3miz005> add dedicated-cpu
zonecfg:h3miz005:dedicated-cpu> set ncpus=1
zonecfg:h3miz005:dedicated-cpu> end
zonecfg:h3miz005> set limitpriv=”default,sys_time”
zonecfg:h3miz005> set scheduling-class=FSS
zonecfg:h3miz005> add capped-memory
zonecfg:h3miz005:capped-memory> set physical=2g
zonecfg:h3miz005:capped-memory> set swap=2g
zonecfg:h3miz005:capped-memory> set locked=2g
zonecfg:h3miz005:capped-memory> end
zonecfg:h3miz005> set ip-type=exclusive
zonecfg:h3miz005> add net
zonecfg:h3miz005:net> set address=127.0.0.1
zonecfg:h3miz005:net> end
physical not specified
zonecfg:h3miz005:net> end
zonecfg:h3miz005:net>
zonecfg:h3miz005:net>
zonecfg:h3miz005:net>
zonecfg:h3miz005> remove capped-memory
clear ip-type
zonecfg:h3miz005> add capped-memory
zonecfg:h3miz005:capped-memory> set physical=2g
zonecfg:h3miz005:capped-memory> end
zonecfg:h3miz005> verify
zonecfg:h3miz005> commit
zonecfg:h3miz005> exit
root@h3mis854 # zoneadm -z h3miz005 install
/zone_h3miz005 must not be group readable.
/zone_h3miz005 must not be group executable.
/zone_h3miz005 must not be world readable.
/zone_h3miz005 must not be world executable.
could not verify zonepath /zone_h3miz005 because of the above errors.
zoneadm: zone h3miz005 failed to verify
root@h3mis854 # zonecfg -z h3miz005
zonecfg:h3miz005> verify
zonecfg:h3miz005> commit
root@h3mis854 # chmod 700 zone_h3miz005
root@h3mis854 # ls -ltr
total 1035
drwx—— 2 root root 8192 Dec 3 12:42 lost+found
lrwxrwxrwx 1 root root 9 Dec 3 12:43 bin -> ./usr/bin
drwxr-xr-x 2 root sys 512 Dec 3 12:43 mnt
drwxr-xr-x 4 root root 512 Dec 3 12:43 system
drwxr-xr-x 2 root sys 512 Dec 3 12:52 export
drwxr-xr-x 15 root sys 512 Dec 3 13:17 kernel
drwxr-xr-x 3 root root 512 Dec 3 13:41 home
drwxr-xr-x 2 root root 512 Dec 3 13:59 vol
drwxr-xr-x 46 root sys 1024 Dec 4 10:55 var
drwxr-xr-x 54 root sys 2048 Dec 4 15:41 platform
drwxr-xr-x 2 root sys 1024 Dec 4 15:49 sbin
drwxr-xr-x 7 root bin 5632 Dec 4 15:59 lib
drwxr-xr-x 2 root nobody 512 Dec 5 10:23 cdrom
drwxr-xr-x 42 root sys 1024 Dec 16 11:45 usr
drwxr-xr-x 9 root sys 512 Dec 16 15:07 opt
drwxr-xr-x 2 root sys 512 Dec 18 10:53 devices
dr-xr-xr-x 1 root root 1 Dec 18 10:55 net
drwxr-xr-x 84 root sys 4608 Dec 18 10:55 etc
drwxr-xr-x 3 root root 512 Dec 18 10:55 audit
drwxrwxrwt 6 root sys 397 Feb 4 15:17 tmp
drwxr-xr-x 19 root sys 4096 Feb 4 15:18 dev
drwx—— 3 root root 512 Feb 4 15:21 zone_h3miz005
dr-xr-xr-x 58 root root 480032 Feb 4 16:03 proc
root@h3mis854 # zoneadm -z h3miz005 install
Preparing to install zone <h3miz005>.
Creating list of files to copy from the global zone.
Copying <3558> files to the zone.
Initializing zone product registry.
Determining zone package initialization order.
Preparing to initialize <1234> packages on the zone.
Initialized <1234> packages on zone.
Zone <h3miz005> is initialized.
Installation of <1> packages was skipped.
The file </zone_h3miz005/root/var/sadm/system/logs/install_log> contains a log of the zone installation.
root@h3mis854 # zoneadm list -iv
ID NAME STATUS PATH BRAND IP
0 global running / native shared
- h3miz005 installed /zone_h3miz005 native excl
root@h3mis854 # zlogin h3miz005
zlogin: login allowed only to running zones (h3miz005 is ‘installed’).
root@h3mis854 #
root@h3mis854 # zoneadm -z h3miz005 boot
root@h3mis854 # zoneadm list -iv
ID NAME STATUS PATH BRAND IP
0 global running / native shared
1 h3miz005 running /zone_h3miz005 native excl
root@h3mis854 # zlogin h3miz005
[Connected to zone 'h3miz005' pts/3]
ricordati di configurare la console ———> zlogin -C zonename
root@h3fas055 # ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
lo0:1: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
zone hzfas002
inet 127.0.0.1 netmask ff000000
lo0:2: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
zone h3faz002
inet 127.0.0.1 netmask ff000000
eri0: flags=9040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER> mtu 1500 index 2
inet 10.218.204.131 netmask ffffff80 broadcast 10.218.204.255
groupname PROD
ether 0:3:ba:b0:48:31
eri0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.218.204.136 netmask ffffff80 broadcast 10.218.204.255
eri0:2: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
zone hzfas002
inet 10.218.204.133 netmask ffffff80 broadcast 10.218.204.255
qfe0: flags=69040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,STANDBY,INACTIVE> mtu 1500 index 3
inet 10.218.204.138 netmask ffffff80 broadcast 10.218.204.255
groupname PROD
ether 0:3:ba:35:d:91
qfe1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 4
inet 10.219.90.60 netmask fffff800 broadcast 10.219.95.255
ether 0:3:ba:35:d:92
root@h3fas055 # zoneadm list -iv
ID NAME STATUS PATH
0 global running /
1 hzfas002 running /zone/hzfas002
3 h3faz002 running /zone/h3faz002
- hzfas003 installed /zone/hzfas003
root@h3fas055 # zlogin h3faz002
[Connected to zone 'h3faz002' pts/2]
Last login: Fri Feb 6 12:28:40 on console
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
# bash
bash-3.00# hostname
h3faz002
bash-3.00# init 5
bash-3.00# Hangup
#
[Connection to zone 'h3faz002' pts/2 closed]
root@h3fas055 # zoneadm list -iv
ID NAME STATUS PATH
0 global running /
1 hzfas002 running /zone/hzfas002
3 h3faz002 running /zone/h3faz002
- hzfas003 installed /zone/hzfas003
root@h3fas055 # zoneadm list -iv
ID NAME STATUS PATH
0 global running /
1 hzfas002 running /zone/hzfas002
- hzfas003 installed /zone/hzfas003
- h3faz002 installed /zone/h3faz002
root@h3fas055 # zonecfg -z h3faz002
zonecfg:h3faz002> add net
zonecfg:h3faz002:net> set address=10.218.204.145
zonecfg:h3faz002:net> set physical=eri0
zonecfg:h3faz002:net> set defrouter=10.218.204.254
usage:
set <property-name>=<property-value>
For resource type … there are property types …:
(global) zonepath
(global) autoboot
(global) pool
fs dir, special, raw, type
inherit-pkg-dir dir
net address, physical
device match
rctl name, value
attr name, type, value
dataset name
zonecfg:h3faz002:net> end
zonecfg:h3faz002> verify
zonecfg:h3faz002> commit
zonecfg:h3faz002> exit
root@h3fas055 # zoneadm -z h3faz002 boot
root@h3fas055 # zlogin h3faz002
[Connected to zone 'h3faz002' pts/2]
Last login: Fri Feb 6 17:53:49 on pts/2
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
# bash
bash-3.00# svcs -a | grep ssh
online 17:56:41 svc:/network/ssh:default
bash-3.00# vi /etc/ssh/ssh
ssh_config ssh_host_dsa_key.pub ssh_host_rsa_key.pub
ssh_host_dsa_key ssh_host_rsa_key sshd_config
bash-3.00# vi /etc/ssh/sshd_config
“/etc/ssh/sshd_config” 160 lines, 5202 characters
#
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident “@(#)sshd_config 1.8 04/05/10 SMI”
#
# Configuration file for sshd(1m)
# Protocol versions supported
#
# The sshd shipped in this release of Solaris has support for major versions
# 1 and 2. It is recommended due to security weaknesses in the v1 protocol
# that sites run only v2 if possible. Support for v1 is provided to help sites
# with existing ssh v1 clients/servers to transition.
# Support for v1 may not be available in a future release of Solaris.
#
# To enable support for v1 an RSA1 key must be created with ssh-keygen(1).
# RSA and DSA keys for protocol v2 are created by /etc/init.d/sshd if they
# do not already exist, RSA1 keys for protocol v1 are not automatically created.
# Uncomment ONLY ONE of the following Protocol statements.
# Only v2 (recommended)
Protocol 2
# Both v1 and v2 (not recommended)
#Protocol 2,1
# Only v1 (not recommended)
#Protocol 1
# Listen port (the IANA registered port number for ssh is 22)
Port 22
# The default listen address is all interfaces, this may need to be changed
# if you wish to restrict the interfaces sshd listens on for a multi homed host.
:/Login
#MACS hmac-md5,hmac-sha1,hmac-sha1-96,hmac-md5-96
# Length of the server key
# Default 768, Minimum 512
ServerKeyBits 768
# sshd regenerates the key every KeyRegenerationInterval seconds.
# The key is never stored anywhere except the memory of sshd.
# The default is 1 hour (3600 seconds).
KeyRegenerationInterval 3600
# Ensure secure permissions on users .ssh directory.
StrictModes yes
# Length of time in seconds before a client that hasn’t completed
# authentication is disconnected.
# Default is 600 seconds. 0 means no time limit.
LoginGraceTime 600
# Maximum number of retries for authentication
# Default is 6. Default (if unset) for MaxAuthTriesLog is MaxAuthTries / 2
MaxAuthTries 6
MaxAuthTriesLog 3
# Are logins to accounts with empty passwords allowed.
# If PermitEmptyPasswords is no, pass PAM_DISALLOW_NULL_AUTHTOK
# to pam_authenticate(3PAM).
PermitEmptyPasswords no
# To disable tunneled clear text passwords, change PasswordAuthentication to no.
PasswordAuthentication yes
# Use PAM via keyboard interactive method for authentication.
# Depending on the setup of pam.conf(4) this may allow tunneled clear text
# passwords even when PasswordAuthentication is set to no. This is dependent
# on what the individual modules request and is out of the control of sshd
# or the protocol.
PAMAuthenticationViaKBDInt yes
# Are root logins permitted using sshd.
# Note that sshd uses pam_authenticate(3PAM) so the root (or any other) user
# maybe denied access by a PAM module regardless of this setting.
# Valid options are yes, without-password, no.
PermitRootLogin yes
“/etc/ssh/sshd_config” 160 lines, 5203 characters
bash-3.00# Feb 6 17:57:41 h3faz002 sendmail[26042]: [ID 702911 mail.alert] unable to qualify my own domain name (localhost) — using short name
Feb 6 17:57:41 h3faz002 sendmail[26043]: [ID 702911 mail.alert] unable to qualify my own domain name (localhost) — using short name
bash-3.00# svcs -a | grep ssh
online 17:56:41 svc:/network/ssh:default
bash-3.00# svcadm restart svc:/network/ssh:default
bash-3.00#
copiare le chiavi di mis000 a /.ssh/authorized_key
cambiare el auto_home
bash-3.00# cat /etc/auto_master
#
# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident “@(#)auto_master 1.8 03/04/28 SMI”
#
# Master map for automounter
#
+auto_master
/net -hosts -nosuid,nobrowse
/autohome auto_home -nobrowse ———–> qua si ha cambiato /home con /autohome
bash-3.00# cat /etc/auto
auto_home auto_master autopush
bash-3.00# cat /etc/auto_home
#
# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident “@(#)auto_home 1.6 03/04/28 SMI”
#
# Home directory map for automounter
#
+auto_home
bash-3.00#









Lascia un commento