Wise people learn when they can; fools learn when they must - Arthur Wellesley
Showing posts with label SOLARIS. Show all posts
Showing posts with label SOLARIS. Show all posts

Thursday, 2 March 2017

SOLARIS BASICS-P7


SOLARIS BASICS-P7

BASIC NETWORKING -2,

Well, move ahead from last post.

We already did a plumb/unplumb to an interface.

Now how to do UP/DOWN to an interface.

root@sol-test-1:>/#ifconfig e1000g1 up

SOLARIS BASICS-P6


SOLARIS BASICS-P6


BASIC NETWORKING -1,

IP/SUBNET/GATEWAY:

root@sol-test-1:>/#ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 192.168.234.133 netmask ffffff00 broadcast 192.168.234.255
        ether 0:c:29:c2:8f:90

SOLARIS BASICS-P5


SOLARIS BASICS-P5

FILE SYSTEM TYPES

Solaris uses VFS (Virtual File System) Architecture. This provides standard interface for different FS types. It is called VIRTUAL because the user can issue same command to work regardless of the file system.

SUPPORTED FS TYPES BY VFS:

1.  DISK BASED FS
2.  DISTRIBUTED FS
3.  PSEUDO FS

SOLARIS BASICS-P4


SOLARIS BASICS-P4


FILE SYSTEM

In UNIX everything is file, if you find something which is not file then it must be a process.

So what is file system…?

Let’s consider a disk is divided into 4 partitions. And now we have to put data on them. Is it possible…?

SOLARIS BASICS-P3


SOLARIS BASICS-P3

DEVICE NAMING CONVENTION

According to Solaris devices has 3 names.

But Why…?

Isn’t it good to call the devices by their actual names…?

SOLARIS BASICS-P2


SOLARIS BASICS-P2

COMPONENTS OF UFS

UFS: UNIX file system is default File System for Solaris 10.

Partitions -> Cylinders -> Blocks

Partitions are divided in to Cylinders; further Cylinders are divided in to Blocks.

SOLARIS BASICS-P1


SOLARIS BASICS-P1


We will start the basics with Disk Architecture.

Sunday, 18 January 2015

Solaris Networking -2


SOLARIS NETWORKING-2

What we are going to Learn,

·         Ifconfig intersection
·         Dladm
·         Inetadm / inetconv
·         Enable / Disable Net Services via inetadm
·         Network Services Default Properties
·         Modify Default Network Services Properties
·         Individual Network Services Properties
·         Modify Individual Network Services Properties

Let’s start with Network Interface,

Saturday, 17 January 2015

Solaris Practice -3 [Random-Answers]


                 SOLARIS PRACTICE-3 [RANDOM-answers]


A daemon is a software process that runs in the background continuously and provides the
service to the client upon request

inodes free/used
root@sol-test-1:>/# df -F ufs -oi
root@sol-test-1:>/# df  -oi
root@sol-test-1:>/# ls -i

nfs version
root@sol-test-1:>/# nfsstat -a
root@sol-test-1:>/# modinfo |grep -i nfs
root@sol-test-1:>/# cat /etc/default/nfs

Solaris Practice -3 [Random]


                               
                                       SOLARIS PRACTICE-3 [RANDOM]

           Well...

           Here some Random questions from Solaris, See How comfortable you are with these                            without turning your Notes
  1. Define Daemon
  2. How to know the inodes free/used
  3. How to know the nfs version
  4. list files in current dir sorted by size
  5. How to disable STOP+A
  6. How to deal with Corrupted passwd / shadow file
  7. How to know shared memory

Friday, 16 January 2015

Solaris Networking - 1

  
SOLARIS NETWORKING-1

What we are going to Learn,

·         TCP/IP Layers basic
·         ARP
·         RARP

Great,

We almost touched Major topics From SA-1 / SA-2, but we did not get in hand to hand with Networking Part of Solaris which is SA-3,

So, let’s dedicate few posts for Solaris Networking,

Well… Systems can talk with each other! Right???  Yes…   ok then,

Tuesday, 13 January 2015

SAMBA IN SOLARIS


SAMBA IN SOLARIS

What we are going to learn about SAMBA,

·         Packages & services
·         Where the files are stored
·         Configuring samba
·         Add users for samba
·         How to check who is logged in via samba
·         How to kill samba user
·         How to check samba version


So, what is this samba?
Somehow related to Gabbar Singh?

Nope…

FTP IN SOLARIS


FTP IN SOLARIS

What we are about to learn,

·         FTP files location, packages & services
·         FTP user types
·         How to enable ftp for real user
·         How to enable ftp for guest user
·         How to enable ftp for anonymous user
·         How to check the logged in users via ftp
·         How to restrict user’s access for ftp
·         How to restrict hosts access for ftp
·         How to restrict / allow particular user from particular hostfor ftp

File Transfer Protocol (FTP)

Works on port 21

Sunday, 28 December 2014

Solaris Practice-2 [ zones ]


PRACTICE WORK-SHEET-2 [zones]

Well, learned Zones?

OK…

Now time to have some Practice to check How Frequently or without looking to our notebook we can solve the things OR how much command we have on the Topics.

1.  What is zone?
2.  What are the types of zones?
3.  List some benefits of zones?
4.  What is Global zone & Non Global zone?
5.  What are the types of NGZ?
6.  What is diff between whole root zone & sparse root zone?
7.  What is zonepath?
8.  List & define the daemons & their functions for zones?
9.  Is it possible to assign different types of file systems to NGZ? If yes then what is the procedure to do so.
10. What are the zone states? Define all
11. How to assign physical disk to NGZ?
12. What are the IP management schemes available in zones? Define with         example
13. What is difference between zone login and zone console login?

Solaris Practice-1 [zfs-Answers]


               PRACTICE WORK-SHEET-1-ANSWERS [zfs]

ANSWERS  are from Q no 11,

1.      What is zfs?
2.      List some benefits of zfs
3.      Compare ufs & zfs
4.      Why we should move to zfs?
5.      What is the basic requirement for zfs?
6.      Limitations of zfs
7.      What is “COW” in zfs?
8.      What is “dataset” and how many datasets zfs can support?
9.      What is zpool and how many datasets zpool can support?
10.  What is “vdev” in zfs and also define the types of vdevs?
11.  What is clone in zfs?

Solaris Practice-1 [ zfs ]


                          PRACTICE WORK-SHEET-1 [zfs]

Well, learned Solaris ?

OK…

Now time to have some Practice to check How Frequently or without looking to our notebook we can solve the things OR how much command we have on the Topics.

Let’s start with ZFS…

1.      What is zfs?
2.      List some benefits of zfs
3.      Compare ufs & zfs
4.      Why we should move to zfs?
5.      What is the basic requirement for zfs?
6.      Limitations of zfs
7.      What is “COW” in zfs?
8.      What is “dataset” and how many datasets zfs can support?
9.      What is zpool and how many datasets zpool can support?
10.  What is “vdev” in zfs and also define the types of vdevs?
11.  What is clone in zfs?

Telnet-TCP Wrappers in Solaris


TELNET / TCP WRAPPERS IN SOLARIS

What we are going to Learn,

·         How to enable trace for Telnet
·         How to find users detail, logged in via telnet
·         How to enable root user trace, logged in via telnet
·         What is TCP WRAPPERS
·         How to Enable TCP WRAPPERS
·         How to Enable TCP WRAPPERS for telnet
·         How to control the network access via TCP WRAPPERS

Telnet is a protocol for connecting remote hosts

It works on port 23

SSH in Solaris


     SSH IN SOLARIS

What we are going to learn,

·         ssh basics
·         ssh files
·         ssh with / without Password
·         ssh config file modification [permit root login, banner]
·         ssh security [allow / deny users, hosts, groups]
·         ssh log generation


WHAT is SSH?

SSH (secure shell) is a secure communication protocol to access a remote client

WHY it is in use?

Though there are several protocols for remote communications like rlogin, rcp, rsh, telnet… they all offer the same thing “access to remote client” then why we need SSH?
SSH provides a secure connection between two remote hosts, means whatever the communication goes between ssh client & ssh server are in encrypted texts.

ZFS as iscsi


ZFS AS iSCSI TARGET

Well,
This is very interesting that we can use our zfs system as iscsi server

I had just created a 100m zfs FS for iscsi testing

root@sol-test-1:>/# zfs create -V 100M zm1/scsivol2

root@sol-test-1:>/# zfs share zm1/scsivol2
cannot share 'zm1/scsivol2': 'shareiscsi' property not set
set 'shareiscsi' property or use iscsitadm(1M) to share this volume

root@sol-test-1:>/# zfs set shareiscsi=on zm1/scsivol2

Zones-11 [Zone Processes & booting options]


ZONES-11
[PROCESS MONITORING-BOOT OPTIONS]


Zone Daemons,

“zoneadmd” & “zsched”


Zoneadmd  

·         Runs in GZ and it is primary process for setting up the zones virtual platform,
·         It manages the booting / shutting down of zones
·         It manages the connection to the zone from zlogin
·         It allocates the zone ID & starts the zsched process
·         One zoneadmd process for every active (ready, running, shutting down) zone on the system.

Zsched

·         It runs within the NGZ
·         Kernel threads for the zones are owned by zsched process