Skip to main content

Posts

Showing posts from July, 2015

How to create a Zone in Solaris 10

How to check zones in the Global Zone   ID NAME             STATUS     PATH                           BRAND    IP    0 global           running    /                                        native   shared    1  bpass          running    /zones/bpass                native   shared The directory where the zone will be running need 700 permission root@/ # cd zones root@/ # mkdir -p /newzone root@/ # chmod 700 newzone root@/ # zonecfg -z newzone Use 'create' to begin configuring a new zone. zonecfg:newzone>create zonecfg:newzone>set zonepath=/zones/newzone zonecfg:newzone>set autoboot=true zonecfg:capped-memory>set physical=2g zonecfg:capped-memory>set swap=4g zonecfg:capped-memory>set locked=1g zonecfg:capped-memory>end If you want to create a Whole zone, you will use shared file system, and you can see when you perform a "zonecfg -z newzone info" the following file systems shared /lib /platform /sbin /usr However you can remove them in order to avoid

How to configurate IPMP Solaris

Verify hosts files and if you do not have them #more /etc/hosts Add them in our case we will work with names in the hosts file below #vi /etc/hosts 10.1.1.5   spa01 10.1.1.6   spa01-test1 10.1.1.7    spa01-test2 Verify Network and Netmask #more /etc/netmasks 10.10.10.0   255.255.255.0 Interface Configuration # /sbin/ifconfig bge0 spa01-test1 netmask + broadcast + group ipmp0  deprecated -failover up # /sbin/ifconfig ce0  spa02-test2 netmask + broadcast + group ipmp0 deprecated -failover up \ addif spa01 netmask + broadcast + failover up You can save the configuration on the following files /etc/hostname.bge0 spa01-test1 netmask + broadcast + group ipmp0 deprecated -failover up /etc/hostname.ce0 spa02-test2 netmask + broadcast + group ipmp0 deprecated -failover up \ addif spa01 netmask + broadcast + failover up You can verify the time to detect any NIC failure #more /etc/default/m pathd # #pragma ident    "@(

How to change Disk Failed in Solaris Volume Manager

1.-How to check the HW and Transport Errors root@ # iostat -en   ---- errors ---   s/w h/w trn tot device     0   0   0   0 md/d20     0   0   0   0 md/d21     0   0   0   0 md/d25     0   0   0   0 md/d26     0   0   0   0 md/d60     0   0   0   0 md/d61     0   0   0   0 md/d65     0   0   0   0 md/d66     0   0   0   0 md/d80     0   0   0   0 md/d81     0   0   0   0 md/d85     0   0   0   0 md/d86     0   6   6   12 c0t1d0     0   0   0   0 c0t0d0     0   0   0   0 c0t3d0     0   0   0   0 c5t0d0     0   0   0   0 c5t1d0 3.-Verify the metadevices in maintenance #metastat d20: Mirror     Submirror 0: d60       State: Okay     Submirror 1: d80       State: Okay     Pass: 1     Read option: roundrobin (default)     Write option: parallel (default)     Size: 104862500 blocks (50 GB)d1: Submirror of d0     State: Needs maintenance     Invoke: metareplace d20 c1t0d0s0 <new device>     Size: 16780224 blocks (8.0 GB)     Stripe 0:         Device     Start Block  Dbase        State R

How to change a Disk with Veritas Volume Manager

You can detect what disk is with issues on the server #vxprint -htr | more dg rootdg       default      default  70000    1165523746.8. dm disk01       -            -        -        -                  NODEVICE        <--- Disk Broken dm rootdisk     c1t0d0s2     auto     20351    143328960 - Just in case you can check to the devalias assigned to the disk failed #eeprom |grep devalias devalias vx-disk01 /pci@1f,700000/scsi@2/disk@1,0:a devalias vx-rootdisk /pci@1f,700000/scsi@2/disk@0 , You can run a cfgadm in order to check if the disk is available # cfgadm -avl unavailable  unavailable  n   /devices/pci@1f,700000/scsi@2:scsi::dsk/c1t1d0      <---Disk With Issues c1::dsk/c1t2d0                 connected    configured   unknown    HITACHI  HUS10733ASUN72G We will proceed now to offline the disk a perform the remove to replace the disk (disk01) #vxdisk offline disk01 #vxdisk rm disk01 Checking the disk status #vxprint -htr | more Disk group: rootdg dg rootdg       default      def

How to extend or reduce a File System with LVM Linux

Before Reduce a File System Take a Backup in order to restore the information LVM Reduce a File System   #umount -f /test   #lvdisplay   #e2fsck -f /dev/vg_root/lv_test   #lvreduce /dev/vg_root/lv_test -L 3G   #mkfs.ext3 /dev/vg_root/lv_test   #e2fsck -f /dev/vg_root/lv_test   #mount /test   #df -h LVM resize a File System   #cd /Web   #ls (to check files)   #vgdisplay   #df -h /Web   #lvextend /dev/mapper/vg_root-lv_web -L +19G   #resize2fs /dev/mapper/vg_root-lv_web   #df -h Regards Roger  

How to migrate zpool Solaris 10/11

Migrate Zpool #zpool list NAME             SIZE  ALLOC   FREE  CAP  HEALTH  ALTROOT zbackserver      831G  800G     31G  96%  ONLINE  - #zfs list NAME                                  USED   AVAIL  REFER  MOUNTPOINT rpool                    136G  20.6G   115G  15%  ONLINE  - zbackserver                           800G   31G    31K  none zbackserver/backupserver              800G   31G    800G  /backup We have a new LUN assigned on the server, we will need to label it #format -e c5t600601600551220046512D30807CE311d0s2 format>label SMI   <-------------Select SMI EFI format>p partition>p Part      Tag    Flag     First Sector        Size        Last Sector   0        usr    wm               256      999.99GB         2934223710   1 unassigned    wm                 0          0              0   2 unassigned    wm                 0          0              0   3 unassigned    wm                 0          0              0   4 unassigned    wm             

How to create LDOM or Guest Domain

We have asked to Storage Team Two Luns in order to install OS and Oracle, mapped on both T5 We performed a devfsadm or cfgadm -c configure cXX, and previously I copied the ISO into PATH /opt LUNS presented to the T5 Servers  /dev/dsk/c0t60060480000290300399533030303233d0s2 /dev/dsk/c0t60060480000290300399533030303235d0s2 List the current configuration created (You can go to the post LO GICAL DOMAINS) in o rder to configure the Hypervisor for example networking root@t5#ldm ls-services  VCC     NAME             LDOM             PORT-RANGE     primary-vcc0     primary          5000-5100 VSW     NAME             LDOM             MAC               NET-DEV   ID   DEVICE     LINKPROP   DEFAULT-VLAN-ID PVID VID                  MTU   MODE   INTER-VNET-LINK     primary-vsw0     primary          00:14:4f:f8:b6:e4 aggr1     0    switch@0               1               1                         1500         on     primary-vsw1     primary          00:14:4f:f9:b7:e8 aggr2     0