OS Categories

Where almost everything resides.

Scan and assemble: # mdadm --assemble --scan Scan to update mdadm.conf # mdadm -Es >> /etc/mdadm/mdadm.conf   If not md device has been found, or you have only one disk from two of the RAID1, you can force to re-create the md device. The important parameter is "missing", that will make mdadm to create the mirror with only one member:   # mdadm --create /dev/md127 --assume-clean --level=mirror --verbose --raid-devices=2 /dev/sda missing mdadm: /dev/sda appears to be part Read more...

if perl shows the error “setting locale failed”,

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),


Run the following (i.e for spanish)
# sudo locale-gen es_ES.UTF-8
# dpkg-reconfigure locales

it can be also en_EN.UTF-8, or any other locale.

 

To create a new PKEY on the switch: [root@ibswitch-ibs ~]# getmaster Local SM enabled and running, state MASTER 20170422 18:00:33 Master SubnetManager on sm lid 1 sm guid 0x10e04071a7a0a0 : SUN DCS 36P QDR ibswitch-ibs 172.28.228.133 [root@ibswitch-ibs ~]# smpartition start [root@ibswitch-ibs ~]# smpartition create -n test -pkey 0x0550 -flag ipoib -m full To remove PKEY on IB switch: [root@ibswitch-ibs ~]# smpartition start [root@ibswitch-ibs ~]# smpartition remove -n test  -port 0010E000656432BD-> Read more...
Before a physical system can be migrated, any existing non-global zones on the system must be archived and moved into zones on the new target system first. How to Migrate an Existing native Non-Global Zone Use the V2V process to migrate an existing zone on your Solaris 10 system to a solaris10 brand zone on a system running the Oracle Solaris 11 release. Print the existing zone's configuration. You will need this information to recreate the zone on the destination system: source# zonecfg Read more...
Spit a file in pieces with split (30 mins, in the end full size for 60Gb) # split -b 10G /mnt/timecapsule/Virtualbox/harry.vdi “harry.vdi.wcomp.part" # ls -lsh total 56G 10G -rw-r--r-- 1 root root 10G Jun 25 15:25 harry.vdi.wcomp.partaa 10G -rw-r--r-- 1 root root 10G Jun 25 15:36 harry.vdi.wcomp.partab 10G -rw-r--r-- 1 root root 10G Jun 25 15:46 harry.vdi.wcomp.partac 10G -rw-r--r-- 1 root root 10G Jun 25 16:06 harry.vdi.wcomp.partad 10G -rw-r--r-- 1 root root 10G Jun 25 16:29 harry.vdi.wcomp.partae 5.6G Read more...