27 Aralık 2017 Çarşamba

6 Aralık 2017 Çarşamba

NetBackup / rereadconfig

C:\Program Files\Veritas\NetBackup\bin\admincmd>bprdreq.exe -rereadconfig

NetBackup / Data Domain OST plugin

NetBackup üzerinde yüklü OST versiyonunu kontrol etmek için aşağıdaki moutu çalıştırabiliriz.

C:\Program Files\Veritas\NetBackup\bin\admincmd>bpstsinfo.exe -pi -stype DataDomain

Plugin Info:
        Plugin Name: libstspiDataDomain.dll
        Prefix: DataDomain:
        Label: Data Domain Plugin
        Build Version: 11
        Build Version Minor: 1
        Operating Version: 11
        Vendor Version: 3.4.0.2-565076

EMC DataDomain üzerinde fc ismini kontrol etmek içim aşağıdaki komutu çalıştırabiliriz.

sysadmin@dd1# ddboost fc dfc-server-name show
DDBoost dfc-server-name: dd1
Configure clients to use "DFC-dd1" for DDBoost FC.





28 Kasım 2017 Salı

OPSCenter / service stop start

1) Stop OpsCenter services:
<install_path>\OpsCenter\server\bin>opsadmin stop
Stopping the OpsCenter Web Console Service...
Stopping the OpsCenter Server...
Stopping the OpsCenter database...
2) Start OpsCenter services:
 <install_path>\OpsCenter\server\bin>opsadmin start 
Starting the OpsCenter Database... 
The Veritas OpsCenter Database Server service is starting. 
The Veritas OpsCenter Database Server service was started successfully.
Starting the OpsCenter Server... 
The Veritas OpsCenter Server Service service is starting. 
The Veritas OpsCenter Server Service service was started successfully.
Starting OpsCenter Web Console Service... 
The Veritas OpsCenter WebServer Service service is starting. 
The Veritas OpsCenter WebServer Service service was started successfully.


21 Kasım 2017 Salı

EMC DD / Service Not Available

The GUI Service is temporarily unavailable. Please refresh your browser. If the problem persists, please contact DataDomain support for assistance.

Aşağıdaki komutları ssh arayüzünden çalıştırarak web arayüzüne erişimi sağlanabilir.

# adminaccess disable http
# adminaccess disable https

# adminaccess enable http
# adminaccess enable https

1 Kasım 2017 Çarşamba

NetBackup / Restore Active Directory Object

MS-Windows policy restore error(2808) and  rai error = 6

08:46:28 11/1/2017: Restore Started
08:47:31 (1966436.xxx) Found (23,149) files in (1) images for Restore Job ID 1966436.xxx
08:47:31 (1966436.001) Restoring from copy 1 of image created Mon Oct 30 20:00:00 2017 from policy W_AD
08:47:31 (1966436.001) Granular restore has started, this may take a while....
08:47:57 (1966436.001) INF - Restore executed on server SERVERNAME
08:48:54 (1966436.001) TAR - \System State\Active Directory\Active Directory\DC=
08:48:54 (1966436.001) MNR - The following file was kept:
08:48:54 (1966436.001) UTF - \System State\Active Directory\Active Directory\DC=
08:49:03 (1966436.001) TAR - \System State\Active Directory\Active Directory\DC=
08:49:45 (1966436.001) TAR - \System State\Active Directory\Active Directory\DC=
08:49:45 (1966436.001) TAR - \System State\Active Directory\Active Directory\DC=
08:50:07 (1966436.001) TAR -
08:50:07 (1966436.001) MNR - error writing file: %1
08:50:08 (1966436.001) ERR - unable to create object for restore: \System State\Active Directory\Active Directory\DCrai error = 6
08:50:08 (1966436.001) ERR - unable to create object for restore: \c, rai error = 6
08:50:08 (1966436.001) ERR - unable to create object for restore: \cn, rai error = 6
08:50:08 (1966436.001) ERR - unable to create object for restore: \co, rai error = 6
08:50:08 (1966436.001) ERR - unable to create object for restore: \codePage, rai error = 6
08:50:08 (1966436.001) ERR - unable to create object for restore: \comment, rai error = 6
08:50:08 (1966436.001) ERR - unable to create object for restore: \company, rai error = 6
08:50:08 (1966436.001) ERR - unable to create object for restore: \countryCode, rai error = 6
08:50:08 (1966436.001) ERR - unable to create object for restore: \department, rai error = 6
08:50:08 (1966436.001) ERR - unable to create object for restore: \description, rai error = 6
08:50:08 (1966436.001) ERR - unable to create object for restore: \directReports, rai error = 6
08:50:08 (1966436.001) ERR - unable to create object for restore: \displayName, rai error = 6

Solution
Move the partially restored user object to the original OU  and run the restore again.

https://www.veritas.com/support/en_US/article.000019663


24 Ekim 2017 Salı

NetBackup / bpstsinfo

C:\Program Files\Veritas\NetBackup\bin\admincmd>bpstsinfo.exe -pi -stype DataDomain

Plugin Info:
        Plugin Name: libstspiDataDomain.dll
        Prefix: DataDomain:
        Label: Data Domain Plugin
        Build Version: 11
        Build Version Minor: 1
        Operating Version: 11
        Vendor Version: 3.4.0.2-565076
C:\Program Files\Veritas\NetBackup\bin\admincmd>


11 Ekim 2017 Çarşamba

EMC DD / cifs option

SE@emcdd1## cifs option show all
All Options:

Option                                Value
-----------------------------------   -------------
domain-account-mmc-share-management   enabled (*)
idle-timeout                          1800 (*)
idmap-type                            rid (*)
loglevel                              1 (*)
max-global-open-files                 30000 (*)
max-mpx-count                         50 (*)
max-tcp-connections                   600 (*)
organizational-unit                   Computers (*)
restrict-anonymous                    disabled (*)
server-signing                        disabled (*)
tcp-window-size                       1048576 (*)
-----------------------------------   -------------
(*) default value
SE@emcdd1##
SE@emcdd1## cifs option set restrict-anonymous enabled
Set "restrict-anonymous" to "enabled".
SE@emcdd1##
SE@emcdd1## cifs option show all
All Options:

Option                                Value
-----------------------------------   -------------
restrict-anonymous                    enabled
domain-account-mmc-share-management   enabled (*)
idle-timeout                          1800 (*)
idmap-type                            rid (*)
loglevel                              1 (*)
max-global-open-files                 30000 (*)
max-mpx-count                         50 (*)
max-tcp-connections                   600 (*)
organizational-unit                   Computers (*)
server-signing                        disabled (*)
tcp-window-size                       1048576 (*)
-----------------------------------   -------------
(*) default value
SE@emcdd1## cifs status
CIFS is enabled.
SE@emcdd1##

28 Eylül 2017 Perşembe

19 Eylül 2017 Salı

EMC DD / ddboost storage-unit show compression

ddboostuser@emcdd# ddboost storage-unit show compression

List of storage-units and their compression info:

dd1:
Total files: 1,364,756;  bytes/storage_used: 50.6
Original Bytes: 1,768,419,833,360,174
Globally Compressed:   77,796,850,034,908
Locally Compressed:   34,655,578,348,217
Meta-data:      314,322,229,876

dd2:
Total files: 19,286;  bytes/storage_used: 93.8
Original Bytes:  212,582,758,224,424
Globally Compressed:    2,886,464,303,450
Locally Compressed:    2,254,647,609,354
Meta-data:       11,109,884,644

dd3:
Total files: 13,807;  bytes/storage_used: 8.9
Original Bytes:  130,801,256,914,162
Globally Compressed:   18,336,415,105,575
Locally Compressed:   14,567,967,404,862
Meta-data:       76,862,685,320

dd4:
Total files: 68,491;  bytes/storage_used: 28.8
Original Bytes:   46,094,832,794,516
Globally Compressed:    5,186,124,041,047
Locally Compressed:    1,578,983,801,905
Meta-data:       21,244,748,444

dd5:
Total files: 49,306;  bytes/storage_used: 24.5
Original Bytes:   28,734,213,905,844
Globally Compressed:    2,412,664,580,260
Locally Compressed:    1,162,789,071,960
Meta-data:        9,815,201,744

dd6:
Total files: 1,296;  bytes/storage_used: 55.6
Original Bytes:   53,526,297,574,923
Globally Compressed:    2,099,011,472,746
Locally Compressed:      954,617,714,265
Meta-data:        8,484,776,928
ddboostuser@emcdd#

EMC DD / client-group show files

ddboostuser@emcdddd1# client-group show files
             Client      Client          Server       Operation      Path                                                              Start   Last           Duration
Group-Name   Hostname    Interface       Interface                                                                                     Offset  Offset         hh:mm:ss
----------   ---------------------   -------------   -------------   ---------   --------------------------------------------------------------------------   ----------
unassigned   emcddmbx1   192.168.2.68    192.168.2.248   dsp-write   exchange/emcdddag01/68/2.0/data_ss/_ts10k_150568/1505689682.ss        0   88,235,573,248   00:10:21
unassigned   emcddmbx4   192.168.2.230   192.168.2.248   dsp-write   exchange/emcdddag01/68/2.0/data_ss/_ts10k_150569/1505690009.ss        0   33,445,380,096   00:04:10
unassigned   emcddmbx5   192.168.2.128   192.168.2.248   dsp-write   exchange/emcdddag01/68/2.0/data_ss/_ts10k_150569/1505690055.ss        0   53,116,665,856   00:04:09
unassigned   emcddmbx3   192.168.2.64    192.168.2.248   dsp-write   exchange/emcdddag01/68/2.0/data_ss/_ts10k_150569/1505690074.ss        0   30,773,608,448   00:03:46
unassigned   emcddmbx2   192.168.2.69    192.168.2.248   dsp-write   exchange/emcdddag01/68/2.0/data_ss/_ts10k_150569/1505690283.ss        0    4,253,024,256   00:00:21
----------   ---------------------   -------------   -------------   ---------   --------------------------------------------------------------------------   -----------
ddboostuser@emcdddd1#

16 Eylül 2017 Cumartesi

DELL EMC / VMAX Error deleting volume

Storage üzerindeki volume silinmek istendiğinde aşağıdaki hata mesajı alınmakta

Starting Tasks...
Error deleting Volume 00041
Device has tracks allocated
Delete Volumes...

Starting Tasks...
Start Free Thin volume 00041 ...
Succeeded

https://support.emc.com/kb/468639

Knowledge Base Article: 000468639
Solutions Enabler: Device is not in the correct state to be deleted. A free of all allocations is required.
(000468639)
Solutions Enabler 8.0.3
Unisphere for VMAX 8.0.3, Solutions Enabler 8.0.3
Version: 4 Article Type: Break Fix Audience: Level 30 = Customers Last Published: Thu Jul 06 00:03:08 GMT 2017
Summary:
Issue: ERROR:Device is not in the correct state to be deleted. A free of all allocations is required.
symconfigure -sid xxx -cmd "delete dev 0099:00A0;" preview
Execute a symconfigure operation for symmetrix '000' (y/[n]) ? y
A Configuration Change operation is in progress. Please wait.
Establishing a configuration change session...............Established
Error occurred while Defining change number 1:
Device is not in the correct state to be deleted. A free of all allocations is required
Device 0099 generated the failure
Terminating the configuration change session..............Done.
Cause: Allocations or written tracks left on device.
Resolution: CLI:
To free up all allocations or written tracks on can use the following the SYMCLI command
-
symdev -sid ### free -all -devs <SymDevStart>:<SymDevEnd>
Unisphere:
To free up all allocations or written tracks in Unisphere navigate to the Volumes listing
page, select the devices and then click on the more button (>>) and choose
Start/Allocate/Free/Reclaim.
In the dialog choose Free and then check Free all allocations for the volume (written and
unwritten).
Primary Product: Solutions Enabler 8.0.3
Product: Unisphere for VMAX 8.0.3, Solutions Enabler 8.0.3
Problem Code: EMC Software

13 Eylül 2017 Çarşamba

6 Eylül 2017 Çarşamba

Disk Blocksize / fsutil fsinfo drives

C:\Users\ali>fsutil fsinfo drives

Drives: A:\ C:\ D:\ E:\ F:\ G:\ H:\ I:\ J:\ K:\ L:\ M:\ N:\ O:\

C:\Users\ali>fsutil fsinfo ntfsInfo O:
NTFS Volume Serial Number :       0x6edcb102dcb0c59d
Version :                         3.1
Number Sectors :                  0x000000007ffbefff
Total Clusters :                  0x000000000fff7dff
Free Clusters  :                  0x00000000014a1648
Total Reserved :                  0x0000000000000000
Bytes Per Sector  :               512
Bytes Per Cluster :               4096
Bytes Per FileRecord Segment    : 1024
Clusters Per FileRecord Segment : 0
Mft Valid Data Length :           0x0000000383480000
Mft Start Lcn  :                  0x00000000000c0000
Mft2 Start Lcn :                  0x0000000000000002
Mft Zone Start :                  0x000000000ead8a20
Mft Zone End   :                  0x000000000eae5240
RM Identifier:        23FDB521-58C0-11E7-9588-005056B3559C

EMC DD / filesys

ddboostuser@emcdd# filesys clean status
Cleaning started at 2017/09/06 09:52:02: phase 2 of 12 (pre-analysis)
 82.2% complete,  9785 GiB free; time: phase  0:49:15, total  0:54:34
ddboostuser@emcdd#

29 Ağustos 2017 Salı

NetBackup Appliance - Reonfigure bond from the appliance's CLISH

Unconfigure bond and reconfigure bond from the appliance's CLISH

Problem
Need to remove the current network bond or reconfigure the bond on the NetBackup appliance

Cause
No longer want to use the current bond or need to reconfigure the network bond

Solution
1. Network > Show Status
Determine what is plugged in

2. Network > Show Configuration
Determine the configuration

3. Network > Unconfigure bond0
This step will remove the IP address from bond0

4. Network > LinkAggregation Disable bond0
This step will remove the Bond

5. Network > Show Configuration
Determine the configuration has been deleted

6. Network > Configure 10.200.x.x 255.255.x.x 10.200.x.1 eth2,eth3,eth4,eth5
This step is an example and will create new bond0 interface on eth2, eth3, eth4 and eth5

7. Network > Show Configuration
This will show your new configuration with your new bond0

8. Network > Show Status
This will show the details of the bond and the ports


Applies To NetBackup 5220 and 5230 appliances

https://www.veritas.com/support/en_US/article.000024787


25 Ağustos 2017 Cuma

EMC DD / alerts show current

ddboostuser@emcdd# alerts show current

Id       Post Time                  Severity   Class        Object          Message
------   ------------------------   --------   ----------   -------------   ---------------------------------------------------------------------------
p0-146   Fri Aug 18 05:30:45 2017   CRITICAL   Filesystem   FilesysType=2   EVT-SPACE-00004: Space usage in Data Collection has exceeded 90% threshold.
------   ------------------------   --------   ----------   -------------   ---------------------------------------------------------------------------
There is 1 active alert.
ddboostuser@emcdd#

EMC DD / listclients

msagentadmin administration --listClients --ddhost taltdd1  --ddpath "/alt_dd_stu1" --dduser "ddboostuser"

EMC DD / ddboost clients show active all

ddboostuser@emcdd# ddboost clients show active all

Client                  Client               Server               Operation   Mode  Storage-unit
Hostname            Interface          Interface
-----------              -------------       -------------          ---------      ----      ------------
mbx3                  192.168.2.22    192.168.2.248     write          dsp      dd_stu1
mbx4                 192.168.2.230  192.168.2.248     write          dsp      exchange
mbx1                 192.168.2.68    192.168.2.248     write          dsp      exchange
mbx2                 192.168.2.69    192.168.2.248     write          dsp      exchange
---------------------   -------------   -------------   ---------   ----      -----     -------
ddboostuser@emcdd#

EMC DD / filesys show space

ddboostuser@emcdd# filesys show space

Active Tier:
Resource           Size GiB    Used GiB   Avail GiB   Use%   Cleanable GiB*
----------------   --------   ---------   ---------   ----   --------------
/data: pre-comp           -   2609673.8           -      -                -
/data: post-comp    73030.2     68105.9      4924.2    93%            167.1
/ddvar                 47.2        10.2        34.7    23%                -
/ddvar/core           108.3         5.7        97.1     5%                -
----------------   --------   ---------   ---------   ----   --------------
 * Estimated based on last cleaning of 2017/08/25 02:29:47.
ddboostuser@emcdd#

EMC DD / adminaccess show

ddboostuser@emcdd# adminaccess show
Service       Enabled   Allowed Hosts
-----------   -------   --------------------
ssh           yes       -
scp           yes       (same as ssh)
telnet        no        emcdd
ftp           no        emcdd
ftps          no        -
http          yes       -
https         yes       -
web-service   yes       N/A
-----------   -------   --------------------

Ssh/Scp options:
Option            Value
---------------   ------------------
session-timeout   default (infinite)
server-port       default (22)
---------------   ------------------

Telnet options:
Option            Value
---------------   ------------------
session-timeout   default (infinite)
---------------   ------------------

Ftp options:
Option            Value
---------------   ------------------
session-timeout   default (infinite)
---------------   ------------------

Ftps options:
Option            Value
---------------   ------------------
session-timeout   default (infinite)
---------------   ------------------

Web options:
Option            Value
---------------   -----
http-port         80
https-port        443
session-timeout   10800
---------------   -----
ddboostuser@emcdd#

22 Ağustos 2017 Salı

SUSE / Setting Up Bonding Devices

  1. Run YaST > Network Devices > Network Settings.
  2. Use Add and change the Device Type to Bond. Proceed with Next.
  3. Select how to assign the IP address to the bonding device. Three methods are at your disposal:
    • No IP Address
    • Dynamic Address (with DHCP or Zeroconf)
    • Statically assigned IP Address
    Use the method that is appropriate for your environment.
  4. In the Bond Slaves tab, select the Ethernet devices that should be included into the bond by activating the related check box.
  5. Edit the Bond Driver Options. The modes that are available for configuration are the following:
    • balance-rr
    • active-backup
    • balance-xor
    • broadcast
    • 802.3ad
    • balance-tlb
    • balance-alb
  6. Make sure that the parameter miimon=100 is added to the Bond Driver Options. Without this parameter, the data integrity is not checked regularly.
  7. Click Next and leave YaST with OK to create the device.

create a symbolic link command


ln -s /path/to/file /path/to/symlink

ln -s file1 link1

ln -s {/path/to/file-name} {link-name}

ln -s /opt/dpsapps/dbappagent/bin/hdbbackint hdbbackint

27 Temmuz 2017 Perşembe

Reset IBM / Lenovo IMM password

Download the IBM ASU Utilityhttps://support.lenovo.com/tr/en/solutions/lnvo-asu 

asu64.exe show IMM.LoginID.1
OR
asu.exe show IMM.LoginID.1
It should detect the IMM by IP address and return IMM.LoginID.1=USERID
Note: If it returns a different username you can check each login ID and reset them one by one.

Download the IBM ASU Utility 
asu64.exe set IMM.password.1 Password123
OR
asu.exe set IMM.password.1 Password123

https://support.lenovo.com/tr/en/solutions/lnvo-asu

19 Temmuz 2017 Çarşamba

Powering off a Brocade switch

Use the following procedure to gracefully shut down a Brocade switch.
  1. Connect to the switch and log in using an account assigned to the admin role.
  2. Enter the sysShutdown command.
  3. Enter y at the prompt.
    switch:admin> sysshutdown
     
    This command will shutdown the operating systems on your switch.
    You are required to power-cycle the switch in order to restore operation.
    Are you sure you want to shutdown the switch [y/n]?y
    
  4. Wait until the following message displays:
    Broadcast message from root (ttyS0) Wed Jan 25 16:12:09 2006...
    The system is going down for system halt NOW !!
    INIT: Switching to runlevel: 0
    INIT: Sending processes the TERM signal
    Unmounting all filesystems.
    The system is halted
    flushing ide devices: hda
    Power down.
  5. Power off the switch.

11 Temmuz 2017 Salı

Linux / # mpathconf oluşturma

# mpathconf --enable --with_multipathd y

Multipath.conf dosyasının oluşturulması 

Host san scan
echo "- - -" > /sys/class/scsi_host/hosth/scan

11 Haziran 2017 Pazar

How to uninstall DWG TrueView 2017

"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DWG TrueView 2017 - English"

C:\Program Files\Autodesk\DWG TrueView 2017 - English\Setup\en-us\Setup\Setup.exe /P {28B89EEF-0028-0409-0100-CF3F3A09B77D} /M AOEM /language en-US

From Command prompt:
MsiExec.exe /qn /norestart /X{28B89EEF-0028-0409-0100-CF3F3A09B77D}

4 Haziran 2017 Pazar

McAfee Agent uninstall

Run the frminst.exe /forceuninstall command:
Click Start, Run, and type one of the following commands:

"C:\Program Files\Network Associates\Common Framework\frminst.exe" /forceuninstall
"C:\Program Files\McAfee\Common Framework\frminst.exe" /forceuninstall
"C:\Program Files\McAfee\Agent\x86\frminst.exe" /forceuninstall 
Restart the system to remove McAfee Agent processes from memory and complete the deletion of files.

2 Haziran 2017 Cuma

How to change hostname in linux

hostnamectl status

hostnamectl set-hostname name

Linux / HugePages Parameter

grep Huge /proc/meminfo

/etc/sysctl.conf
-        /etc/exports

-        /etc/security/limits.conf

How to disable fireewall in redat

#Check status:

systemctl status firewalld

#Stop firewall:

systemctl stop firewalld

#Disable firewall:

systemctl disable firewalld

1 Haziran 2017 Perşembe

How to view disk blocksize with powershell

PS C:\> $wql = "SELECT Label, Blocksize, Name FROM Win32_Volume WHERE FileSystem='NTFS'"

PS C:\> Get-WmiObject -Query $wql -ComputerName '.' | Select-Object Label, Blocksize, Name

25 Mayıs 2017 Perşembe

How to find hba information in linux

cat /sys/class/fc_host/host[0-9]*/port_name

cat /sys/class/fc_host/host1/port_name
cat /sys/class/fc_host/host2/port_name

17 Mayıs 2017 Çarşamba

How to create logical volumes in linux

This example procedure creates an LVM logical volume called new_logical_volume that consists of the disks at /dev/sda1/dev/sdb1, and /dev/sdc1.
  1. To use disks in a volume group, label them as LVM physical volumes with the pvcreatecommand.
    WARNING
    This command destroys any data on /dev/sda1/dev/sdb1, and /dev/sdc1.
    # pvcreate /dev/sda1 /dev/sdb1 /dev/sdc1
      Physical volume "/dev/sda1" successfully created
      Physical volume "/dev/sdb1" successfully created
      Physical volume "/dev/sdc1" successfully created
    
  2. #Another Example:
    
    pvcreate /dev/mapper/mpathx
  3. Create the a volume group that consists of the LVM physical volumes you have created. The following command creates the volume group new_vol_group.
    # vgcreate new_vol_group /dev/sda1 /dev/sdb1 /dev/sdc1
      Volume group "new_vol_group" successfully created
    
    You can use the vgs command to display the attributes of the new volume group.
    # vgs
      VG            #PV #LV #SN Attr   VSize  VFree
      new_vol_group   3   0   0 wz--n- 51.45G 51.45G
    
  4. Create the logical volume from the volume group you have created. The following command creates the logical volume new_logical_volume from the volume group new_vol_group. This example creates a logical volume that uses 2 gigabytes of the volume group.
    # lvcreate -L 2 G -n new_logical_volume new_vol_group
      Logical volume "new_logical_volume" created
  5. #Another Example:  lvcreate -l 100%FREE -n new_logical_volume new_vol_group
  6. Create a file system on the logical volume. The following command creates a GFS2 file system on the logical volume.
    # mkfs.gfs2 -p lock_nolock -j 1 /dev/new_vol_group/new_logical_volume
    This will destroy any data on /dev/new_vol_group/new_logical_volume.
    
    Are you sure you want to proceed? [y/n] y
    
    Device:                    /dev/new_vol_group/new_logical_volume
    Blocksize:                 4096
    Filesystem Size:           491460
    Journals:                  1
    Resource Groups:           8
    Locking Protocol:          lock_nolock
    Lock Table:
    
    Syncing...
    All Done
    
    #Another Example:
    
    mkfs.xfs /dev/vgx/lgx
    mkfs.xfs /dev/mapper/vg..
    The following commands mount the logical volume and report the file system disk space usage.
    # mount /dev/new_vol_group/new_logical_volume /mnt
    # df
    Filesystem           1K-blocks      Used Available Use% Mounted on
    /dev/new_vol_group/new_logical_volume
                           1965840        20   1965820   1% /mnt
    



      Fiziksel diskler atandıktan sonra scan işlemi yapılır

      echo "- - -" > /sys/class/scsi_host/host0/scan
      echo "- - -" > /sys/class/scsi_host/host1/scan
      echo "- - -" > /sys/class/scsi_host/host2/scan

      fdisk -l ile disklerin mpathx bilgileri not edilir

      [root@servername /]# pvcreate /dev/mapper/mpathae /dev/mapper/mpathaf
        Physical volume "/dev/mapper/mpathae" successfully created
        Physical volume "/dev/mapper/mpathaf" successfully created

      [root@servername /]# vgcreate vg11 /dev/
      [root@servername /]#  lvcreate -l 100%FREE -n BACKUP vg11

      cd /
      mkdir BACKUP mount klasörünü oluşturuyoruz

      mkfs.xx ile filesystem oluşturuyoruz

      [root@servername /]# mkfs.ext4 /dev/vg11/BACKUP
      mke2fs 1.42.9 (28-Dec-2013)
      Filesystem label=
      OS type: Linux
      Block size=4096 (log=2)
      Fragment size=4096 (log=2)
      Stride=8 blocks, Stripe width=8 blocks
      335544320 inodes, 2684352512 blocks
      134217625 blocks (5.00%) reserved for the super user
      First data block=0
      Maximum filesystem blocks=4294967296
      81920 block groups
      32768 blocks per group, 32768 fragments per group
      4096 inodes per group
      Superblock backups stored on blocks:
              32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
              4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
              102400000, 214990848, 512000000, 550731776, 644972544, 1934917632,
              2560000000

      Allocating group tables: done
      Writing inode tables: done
      Creating journal (32768 blocks): done
      Writing superblocks and filesystem accounting information: done


      Oluşturulan filesystemi mount ediyoruz
      [root@servername /]# mount /dev/mapper/vg11-BACKUP /BACKUP/


      Boot sonrasında da aktif olması için /etc/fstab dosyasını düzenliyoruz.

      [root@servername /]# vi /etc/fstab

      #
      # /etc/fstab
      # Created by anaconda on Tue Jul 11 10:39:36 2017
      #
      # Accessible filesystems, by reference, are maintained under '/dev/disk'
      # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
      #

      /dev/mapper/vg11-BACKUP /BACKUP auto defaults 0 0



25 Nisan 2017 Salı

NetBackup / unable to NB_read_master_config(): Cannot find the NetBackup configuration information (110)

/usr/openv/netbackup/bin/goodies/netbackup
unable to NB_read_master_config(): Cannot find the NetBackup configuration information (110)
EXIT status = 110
NetBackup network daemon started.
unable to NB_read_master_config(): Cannot find the NetBackup configuration information (110)
EXIT status = 110
NetBackup client daemon started.
NetBackup SAN Client Fibre Transport daemon started.
NetBackup Discovery Framework started.

NetBackup Bare Metal Restore Boot Server daemon started.

bp.conf dosyası temiz bir sistemden kopyalanarak servisler çalıştırılabilir

Able to restart Netbackup successfully after copying a good bp.conf from another similar media server to this media server.

https://www.veritas.com/support/en_US/article.000014992

Extract tar.gz file

Extract tar.gz file

tar -xzf your-software.tar.gz

Extract tar file


tar -xvf your-software.tar

Copying files between linux systems with scp

Copying files between linux systems with scp

scp ile klasör yapısını copyalama

scp -r  kaynak adres    hedef adres

scp -r root@192.168.2.93:/tmp/NetBackup/ /tmp

21 Nisan 2017 Cuma

Extend lvm swap volume

To extend an LVM2 swap logical volume 

(assuming /dev/VolGroup00/LogVol01 is the volume you want to extend):
  1. Disable swapping for the associated logical volume:
    # swapoff -v /dev/VolGroup00/LogVol01
    
  2. Resize the LVM2 logical volume by 256 MB:
    # lvm lvresize /dev/VolGroup00/LogVol01 -L +256M
    
  3. Format the new swap space:
    # mkswap /dev/VolGroup00/LogVol01
    
  4. Enable the extended logical volume:
    # swapon -va




18 Mart 2017 Cumartesi

Suse / timezone turkey +03

servername:~ # date
Sat Mar 18 01:40:53 EET 2017

servername:/tmp/time # zypper install timezone-2016g-0.60.1.x86_64.rpm
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following package is going to be upgraded:
  timezone

The following package is not supported by its vendor:
  timezone

1 package to upgrade.
Overall download size: 354.4 KiB. Already cached: 0 B. After the operation,
additional 1.3 KiB will be used.
Continue? [y/n/? shows all options] (y): y
Retrieving package timezone-2016g-0.60.1.x86_64                        (1/1), 354.4 KiB (  1.2 MiB unpacked)
Checking for file conflicts: .........................................................................[done]
(1/1) Installing: timezone-2016g-0.60.1.x86_64 .......................................................[done]
servername:/tmp/time # date
Sat Mar 18 02:42:30 +03 2017
servername:/tmp/time #

1 Mart 2017 Çarşamba

Get-DhcpServerv4Scope

$dateEnd = get-date

$filename = get-date $dateEnd -Format yyyyMMdd-hhmm


Get-DhcpServerv4Scope -ComputerName servername1 | Get-DhcpServerv4Reservation -ComputerName servername1 > C:\DHCPLOG\dhcp_reservation_"$filename".csv

Get-DhcpServerv4Scope -ComputerName servername2 | Get-DhcpServerv4Reservation -ComputerName servername2 >> C:\DHCPLOG\dhcp_reservation_"$filename".csv

23 Şubat 2017 Perşembe

Install failover cluster feature using powershell

PS C:\> Install-WindowsFeature -Name Failover-Clustering –IncludeManagementTools

Success Restart Needed Exit Code      Feature Result
------- -------------- ---------      --------------
True    Yes            SuccessRest... {Failover Clustering, Failover Clustering ...
WARNING: You must restart this server to finish the installation process.


PS C:\>

Windows Server IIS üzerinden hizmet veren bir FTP servisine erişmek istediğimizde;  Internet Explorer, FileZilla vb. uygulamalar ile erişim ...