Skip to main content

Posts

Showing posts with the label ZFS

Solaris 11.3 Bug# 21207532 System or DB hang in zil_commit() at shutdown

The issue is generated due to ZFS bug present in version lower than 11.3.2.4.0, those symptoms produce that some errors related with IO wait are generated in the trace log file of the Oracle Data Base, shutting down the mmon process as you see below Trace log example: Thu Sep 01 08:51:11 2016 WARNING: aiowait timed out 2 times Thu Sep 01 08:57:38 2016 minact-scn: got error during useg scan e:12751 usn:4 minact-scn: useg scan erroring out with error e:12751 Suspending MMON action 'Block Cleanout Optim, Undo Segment Scan' for 82800 seconds Thu Sep 01 09:01:11 2016 WARNING: aiowait timed out 3 times Thu Sep 01 09:07:20 2016 Suspending MMON action 'undo usage' for 82800 seconds Thu Sep 01 09:11:11 2016 WARNING: aiowait timed out 4 times Thu Sep 01 09:12:03 2016 Shutting down instance (immediate) Stopping background process SMCO Thu Sep 01 09:12:34 2016 Background process SMCO not dead after 30 seconds Killing background process SMCO Shutting

How to Install Boot Blocks Solaris

How to Install Boot Blocks for a ZFS Root  FS (rpool) As root user run the following: #installboot -F zfs /usr/platform/`uname i`/lib/fs/zfs/bootblk /dev/rdsk/c#t#d#s0 #init 6   How to Install Boot Blocks Solaris Sparc As root user run the following: #installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c#t#d#s0 #init 6 How to install Boot Block Solaris x86 As root user run the following: #/sbin/installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c#t#d#s# #init6 What are the grub stage1 and stage 2? below the explanation /boot/grub/stage1 partition boot file. /boot/grub/stage2 boot block code. For each command you will need to reboot in order to check or verify that is correctly installed #init 6  

How to boot a server across the network and restore zfs root file system from snap

How to boot a server across the network and restore zfs root from snap You will need the mac-address from the client server in order to generate in the server with the media the following files In the Server with the DVD Rom and Solaris Media add the following root@client# vi /etc/ethers 0:22:11:77:a4:b8 testing       Add in the /etc/hosts file the IP address root@client# vi /etc/hosts ##WAN BOOT### 192.168.1.2  testing           Add the client from server wan boot and architecture root@server# cd /cdrom/sol_10_509_sparc/Solaris_10/Tools command : add_install_client client_server architecture root@server# ./add_install_client testing sun4u This variable need to be blank in the client, you will need to execute it from OK prompt ok> ok> set-defaults network-boot-argument ok> boot net -s  (-s single user) or ok> boot net - install    (install server from the media across network) After server is up and running, you can configure the inte

How to boot a Solaris Server across the network and Restore root ufs

How to boot a server across the network and restore from DUMP You will need the mac-address from the client server in order to generate in the server with the media the following files In the Server with the DVD Rom and Solaris Media add the following root@client# vi /etc/ethers 0:22:11:77:a4:b8 testing       Add in the /etc/hosts file the IP address root@client# vi /etc/hosts ##WAN BOOT### 192.168.1.2  testing           Add the client from server wan boot and architecture root@server# cd /cdrom/sol_10_509_sparc/Solaris_10/Tools command : add_install_client client_server architecture root@server# ./add_install_client testing sun4u This variable need to be blank in the client, you will need to execute it from OK prompt ok> ok> set-defaults network-boot-argument ok> boot net -s  (-s single user) or ok> boot net - install    (install server from the media across network) After server is up and running, you can configure the interface in

How check zfs integrity in a zfs filesystem

How check zfs integrity in a zfs filesystem You can check with a zpool status command what is the state of zpool and if you have errors related with write / read / chksum # zpool status -v | more   pool: ialab01  state: ONLINE  scan: none requested config:         NAME                                                                   STATE     READ WRITE CKSUM         lab01                                                                        ONLINE       0          0           0           c5t60060160055122004A512D00000CE311d0   ONLINE       0          0           0 However if you see any error related with Read, Write and Cksum, you will need to check the device associated to the zpool. Important: Only one active scrubbing operation per pool can occur at one time. # zpool status -v | more   pool: ialab01  state: Degraded  scan: none requested config:         NAME                                                                STATE     READ WRITE CKSUM       

How to create destroy and increase a zpool

How to create destroy and increase a zpool 1.-Is very important to have the LUN's allocated in the server and discover them, the first step is check what are the controller associated to the SAN boxes unavailable  scsi-sas     n        /devices/pci@0,600000/pci@0/pci@8/pci@0/scsi@1:scsi c0::dsk/c0t0d0                 connected    configured   unknown    SEAGATE ST914603SSUN146G unavailable  disk         n        /devices/pci@0,600000/pci@0/pci@8/pci@0/scsi@1:scsi::dsk/c0t0d0 c0::dsk/c0t1d0                 connected    configured   unknown    SEAGATE ST914603SSUN146G unavailable  disk         n        /devices/pci@0,600000/pci@0/pci@8/pci@0/scsi@1:scsi::dsk/c0t1d0 unavailable  fc-fabric    n        /devices/pci@0,600000/pci@0/pci@9/SUNW,qlc@0/fp@0,0:fc c1::500601601111111f           connected    configured   unknown unavailable  disk         n        /devices/pci@0,600000/pci@0/pci@9/SUNW,qlc@0/fp@0,0:fc::500601604460160f c1::500601681111111f           connected    co

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