change_ip_details_permanent
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
change_ip_details_permanent [2017/02/28 13:18] – created walkeradmin | change_ip_details_permanent [2023/03/21 20:20] (current) – walkeradmin | ||
---|---|---|---|
Line 9: | Line 9: | ||
==== Introduction ==== | ==== Introduction ==== | ||
\\ | \\ | ||
- | To permanently change the IP details you must first be able to connect to the VSPP (see | + | To permanently change the IP details you must first be able to connect to the VSPP (see Change IP Address CMD Line). Once connected we need to edit the VSPP Configuration. |
+ | \\ | ||
+ | \\ | ||
+ | The VSPP is configured using a powerful tool called SYSU. SYSU created a file called system.ini that contains all of our configuration parameters. | ||
+ | \\ | ||
+ | \\ | ||
+ | ==== Using SYSU ==== | ||
+ | \\ | ||
+ | To change the VSPP configuration run the following: | ||
+ | \\ | ||
+ | sysu edit | ||
+ | \\ | ||
+ | This will load the system.ini into Vi. | ||
+ | \\ | ||
+ | |||
+ | < | ||
+ | ##### system Topology #### | ||
+ | ## all parameters marked with green should be changed with relevant site configuration ## | ||
+ | ##### Region and Rack properties ##### | ||
+ | [aio-region] | ||
+ | type = region | ||
+ | inherit = MANAGER: | ||
+ | pods = aio-pod | ||
+ | [aio-pod] | ||
+ | type = pod | ||
+ | inherit = MANAGER: | ||
+ | raid.mode = 0 | ||
+ | segment.size = 1 | ||
+ | geo.ids = 1 | ||
+ | subnets = 0.0.0.0/0 | ||
+ | # Do not change volume.line.size | ||
+ | volume.line.size = 96 | ||
+ | [pod-group-aio] | ||
+ | type = pod_group | ||
+ | inherit = MANAGER: | ||
+ | pods = aio-pod | ||
+ | [AIO] | ||
+ | type = stateful | ||
+ | default_gateway = MNG | ||
+ | os = CENTOS6.6.P30.3-X86_64 | ||
+ | machine = SERVER | ||
+ | site = FX-SITE | ||
+ | node.aio1 = aio103, MNG-20, VIDEO-20.1 | ||
+ | repos = file:/// | ||
+ | apps = syspu, dns, manager, postgres, gui, storage, streamer, graphite, riemann, mon_agent | ||
+ | nic = MNG|ETH2, VIDEO|ETH3 | ||
+ | pod = aio-pod | ||
+ | [FX-SITE] | ||
+ | type = site | ||
+ | syspu = syspu | ||
+ | ntp.servers = 192.168.100.150 | ||
+ | domains = system.fx | ||
+ | timezone = Europe/ | ||
+ | # Fabrix brand and version | ||
+ | Type : | ||
+ | # Fabrix brand and version | ||
+ | brand = fabrix | ||
+ | version = 3.8 | ||
+ | [syspu] | ||
+ | type = application | ||
+ | inherit = SYSPU:APP | ||
+ | # Changing HTTPD port that is used by Syspu (the default is port 80) | ||
+ | # port = 82 | ||
+ | [mon_agent] | ||
+ | type = application | ||
+ | inherit = MON_AGENT: | ||
+ | # push.manager is relevant for Manager >= 3.5 | ||
+ | push.manager = manager | ||
+ | push.riemann = riemann | ||
+ | # A graphite prefix that will be use by mon_agent | ||
+ | parser.ini.mon_agent.ini.107 = general@prefix_name = Ericsson.VSPP | ||
+ | [graphite] | ||
+ | type = application | ||
+ | inherit = GRAPHITE: | ||
+ | [riemann] | ||
+ | type = application | ||
+ | inherit = RIEMANN: | ||
+ | [dns] | ||
+ | type = application | ||
+ | inherit = DNS:APP | ||
+ | domains = system.fx | ||
+ | # DNS additional nameservers (optional) | ||
+ | nameservers = 192.168.100.150 | ||
+ | [manager] | ||
+ | type = application | ||
+ | inherit = MANAGER: | ||
+ | # Cluster: list of define application sections, these applications will be cluster under this manager. | ||
+ | cluster = storage, streamer | ||
+ | # Gui application section | ||
+ | gui.section = gui | ||
+ | # PostgresDB application section | ||
+ | db.section = postgres | ||
+ | fxdb.domains = manager.system.fx | ||
+ | fxdb.domains = manager.system.fx | ||
+ | enable.api = True | ||
+ | regions = aio-region | ||
+ | # Manager application configuration | ||
+ | parser.ini.manager.ini.100 = general@DISABLE_SSL = 1 | ||
+ | parser.ini.manager.ini.101 = general@SRM_SERVER_ADDR = | ||
+ | parser.ini.manager.ini.102 = general@PUBLIC_LISTENING_ADDR=9090 | ||
+ | parser.ini.manager.ini.103 = general@USE_SYSLOG = 0 | ||
+ | parser.ini.manager.ini.104= general@USE_STREAMER_REPORT_FOR_LINK_STATUS = false | ||
+ | [postgres] | ||
+ | type = application | ||
+ | inherit = POSTGRES9: | ||
+ | # Solid DB core limitation (for more details see Appendix E): | ||
+ | # RSDVR private copy - Managers should use all cores in the machine (remove this configuration parameter) | ||
+ | # All other production systems - Manager Solid should be limited to four cores: 0-3 | ||
+ | # Lab systems - Manager Solid should be limited to one core: 0 | ||
+ | # database.cores = 0 | ||
+ | # Network layout | ||
+ | # db network defines the interface for client connection (all client will be configure according) | ||
+ | db.network = management | ||
+ | # Solid application parameters | ||
+ | # Solid dedicated disk for transaction logs (Uncomment in case you set up a dedicated disk) | ||
+ | # parser.ini.solid.ini.100 = Logging@LogDir = / | ||
+ | [gui] | ||
+ | type = application | ||
+ | inherit = GUI:APP | ||
+ | db.section = postgres | ||
+ | # Enabling GUI dashboard by referencing to graphite section: | ||
+ | graphite.section = graphite | ||
+ | parser.property.configuration.properties.100 = show.all = true | ||
+ | [storage] | ||
+ | type = application | ||
+ | inherit = STORAGE_SERVICE_LEDS_SUPPORT: | ||
+ | # Network layout | ||
+ | # Cluster is the application interconnect (disks) communication network | ||
+ | cluster.network = management | ||
+ | # storage application configuration | ||
+ | parser.ini.storage-server.ini.100 = general@USE_SYSLOG = 0 | ||
+ | parser.ini.storage-server.ini.101 = general@WORKING_PATH = / | ||
+ | parser.ini.storage-server.ini.102 = general@LOG_FILENAME = / | ||
+ | parser.ini.storage-server.ini.103 = general@DISABLE_SSL = 1 | ||
+ | # These parameters are controlling the application memory allocation, for small server (VM) use “50” | ||
+ | # SERVER_DATA_CACHE_SIZE is memory per disk in MB | ||
+ | parser.ini.storage-server.ini.104 = general@SERVER_DATA_CACHE_SIZE = 50 | ||
+ | parser.ini.storage-server.ini.105 = general@CLIENT_DATA_CACHE_SIZE = 50 | ||
+ | # Disable LED features (Normally in VM environment) | ||
+ | parser.ini.storage-server.ini.106 = general@USING_VIRTUAL_BLOCK_DEVICE = false | ||
+ | parser.ini.storage-server.ini.107 = general@IGNORE_BLOCK_DEVICES = sda | ||
+ | parser.ini.storage-server.ini.108 = general@DEVICE_FILE_NAME_PREFIX = sd | ||
+ | parser.ini.storage-server.ini.109 = USING_PHYSICAL_DISK = true | ||
+ | parser.ini.storage-server.ini.110 = LED_ENABLED = false | ||
+ | [streamer] | ||
+ | type = application | ||
+ | inherit = STREAMER: | ||
+ | # BW Properties | ||
+ | max.cdn = 1G | ||
+ | max.streaming = 1G | ||
+ | max.ingest = 1G | ||
+ | max.total = 1G | ||
+ | abr_streaming = true | ||
+ | # Network layout | ||
+ | # External is for "video stream" | ||
+ | external.network = management | ||
+ | # Ingest is the "video ingest" | ||
+ | ingest.network = video | ||
+ | # Cluster is the application interconnect (disks) communication network | ||
+ | cluster.network = management | ||
+ | # Uncomment and update Streamer virtual network | ||
+ | # virtual.network = management | ||
+ | # streamer INI parameters | ||
+ | parser.ini.streamer.ini.100 = general@STREAMER_ADDR = 2929 | ||
+ | parser.ini.streamer.ini.101 = general@LOG_FILENAME = / | ||
+ | parser.ini.streamer.ini.102 = general@STRING_TABLES_FILE = / | ||
+ | # These parameters are controlling the application memory allocation, for small server (VM) use “50” | ||
+ | parser.ini.streamer.ini.103 = general@TOTAL_STREAMING_THROUGHPUT = 450 | ||
+ | parser.ini.streamer.ini.104 = general@CLIENT_DATA_CACHE_SIZE = 200 | ||
+ | parser.ini.streamer.ini.105 = general@TOTAL_STREAMING_THROUGHPUT = 450 | ||
+ | parser.ini.streamer.ini.106 = general@DISABLE_SSL = 1 | ||
+ | parser.ini.streamer.ini.107 = general@USE_SYSLOG = 0 | ||
+ | #### Network properties #### | ||
+ | [MNG] | ||
+ | type = network | ||
+ | name = management | ||
+ | network = 192.168.27.0 | ||
+ | netmask = 255.255.255.0 | ||
+ | next_hop = 192.168.27.254 | ||
+ | [VIDEO] | ||
+ | type = network | ||
+ | name = video | ||
+ | network = 10.10.0.0 | ||
+ | netmask = 255.255.0.0 | ||
+ | next_hop = 10.10.255.254 | ||
+ | #### Nic Properties #### | ||
+ | [ETH0] | ||
+ | type = nic | ||
+ | device = eth0 | ||
+ | bootproto = static | ||
+ | [ETH1] | ||
+ | type = nic | ||
+ | device = eth1 | ||
+ | bootproto = static | ||
+ | [ETH2] | ||
+ | type = nic | ||
+ | device = eth2 | ||
+ | bootproto = static | ||
+ | [ETH3] | ||
+ | type = nic | ||
+ | device = eth3 | ||
+ | bootproto = static | ||
+ | #### Machine Property #### | ||
+ | [SERVER] | ||
+ | type = machine | ||
+ | # | ||
+ | IBM-COMMON (for all IBM servers), HP-COMMON (for all HP servers) for other brands inherit SERVER-COMMON | ||
+ | inherit = SERVER-COMMON | ||
+ | # uncomment, below “kcmdline” empty attribute incase of virtual environment! | ||
+ | # kcmdline = | ||
+ | # Number of disks used by VSPP Storage: | ||
+ | storage.disks = 4 | ||
+ | |||
+ | </ | ||
+ | \\ | ||
+ | ==== Change IP Details ==== | ||
+ | \\ | ||
+ | There are a few sections we need to change to make IP Address changes that are permanent. The main three sections we are interested in are: | ||
+ | \\ | ||
+ | \\ | ||
+ | [AIO]\\ | ||
+ | [MNG]\\ | ||
+ | [VIDEO]\\ | ||
+ | \\ | ||
+ | \\ | ||
+ | The IP Address details are split across these three sections. | ||
+ | \\ | ||
+ | \\ | ||
+ | ==== [MNG Section] ==== | ||
+ | \\ | ||
+ | First check the [MNG] section. | ||
+ | <sxh [xml][; options for SyntaxHighlighter]> | ||
+ | [MNG] | ||
+ | type = network | ||
+ | name = management | ||
+ | network = 192.168.27.0 | ||
+ | netmask = 255.255.255.0 | ||
+ | next_hop = 192.168.27.254 | ||
+ | </ | ||
+ | Here we specify the network and netmask settings. The main part here is the ' | ||
+ | \\ | ||
+ | network = 192.168.27.0 | ||
+ | \\ | ||
+ | This is saying our management address is on the 192.168.27 subnet, the .0 means we are not specifying this octet in this section. | ||
+ | \\ | ||
+ | \\ | ||
+ | ==== [VIDEO Section] ==== | ||
+ | \\ | ||
+ | Now check the [VIDEO] section. | ||
+ | <sxh [xml][; options for SyntaxHighlighter]> | ||
+ | [VIDEO] | ||
+ | type = network | ||
+ | name = video | ||
+ | network = 10.10.0.0 | ||
+ | netmask = 255.255.0.0 | ||
+ | next_hop = 10.10.255.254 | ||
+ | </ | ||
+ | Here we are specifying the VIDEO interface subnet, the main part is the network section again. | ||
+ | \\ | ||
+ | network = 10.10.0.0 | ||
+ | \\ | ||
+ | In this example the VIDEO network is 10.10, the last two octets are specified elsewhere. | ||
+ | \\ | ||
+ | ==== [AIO Section] ==== | ||
+ | \\ | ||
+ | Now check the [AIO] section. | ||
+ | <sxh [xml][; options for SyntaxHighlighter]> | ||
+ | [AIO] | ||
+ | type = stateful | ||
+ | default_gateway = MNG | ||
+ | os = CENTOS6.6.P30.3-X86_64 | ||
+ | machine = SERVER | ||
+ | site = FX-SITE | ||
+ | node.aio1 = aio103, MNG-20, VIDEO-20.1 | ||
+ | repos = file:/// | ||
+ | apps = syspu, dns, manager, postgres, gui, storage, streamer, graphite, riemann, mon_agent | ||
+ | nic = MNG|ETH2, VIDEO|ETH3 | ||
+ | pod = aio-pod | ||
+ | </ | ||
+ | There are a few configuration items here, but the main points are as follows: | ||
+ | \\ | ||
+ | node.aio1 = aio103, MNG-20, VIDEO-20.1 | ||
+ | \\ | ||
+ | Here the first part relates the actual VSPP chassis we are on (node.aio1 = aio103) and the next two parts are the final octets of our IP Addresses for Management (MNG) and Video. | ||
+ | \\ | ||
+ | MNG-20, VIDEO-20.1 | ||
+ | \\ | ||
+ | MNG-20 sets the last octet of our Management address to 20 (so 192.168.27.20) | ||
+ | \\ | ||
+ | VIDEO-20.1 sets the last two octets of our VIDEO address to 20.1 (so 10.10.20.1) | ||
+ | \\ | ||
+ | \\ | ||
+ | ==== Save and Apply settings ==== | ||
+ | \\ | ||
+ | Once you have edited (this is Vi remember) and saved the file, you will need to do the following: | ||
+ | \\ | ||
+ | \\ | ||
+ | Use <color red>sysu sketch</ | ||
+ | \\ | ||
+ | sysu sketch | ||
+ | \\ | ||
+ | You will see a lot of text as the unit is configured, keep an eye out for any failures. | ||
+ | \\ | ||
+ | \\ | ||
+ | Next use <color red>sysu network.config</ | ||
+ | \\ | ||
+ | sysu network.config | ||
+ | \\ | ||
+ | You can see the available options for sysu by using <color red>sysu tab tab</ | ||
+ | \\ | ||
+ | \\ | ||
+ | Now use sysu apps.config to start the apps | ||
+ | \\ | ||
+ | sysu apps.config | ||
+ | \\ | ||
+ | \\ | ||
+ | ==== Using Monit ==== | ||
+ | \\ | ||
+ | Monit is like the command service in linux, it can start and stop (among other things) the VSPP processes. | ||
+ | \\ | ||
+ | \\ | ||
+ | To check the status of VSPP use: | ||
+ | \\ | ||
+ | monit summary | ||
+ | \\ | ||
+ | You will see an output similar to the following (the status might differ) | ||
+ | \\ | ||
+ | < | ||
+ | [root@aio103 ~]# monit summary | ||
+ | monit: Cannot translate ' | ||
+ | The Monit daemon 5.3.2 uptime: 1h 18m | ||
+ | |||
+ | Remote Host ' | ||
+ | Remote Host ' | ||
+ | Process ' | ||
+ | Process ' | ||
+ | Process ' | ||
+ | Process ' | ||
+ | Process ' | ||
+ | Process ' | ||
+ | Process ' | ||
+ | Process ' | ||
+ | Process ' | ||
+ | Process ' | ||
+ | Process ' | ||
+ | Process ' | ||
+ | Process ' | ||
+ | Process ' | ||
+ | Process ' | ||
+ | Process ' | ||
+ | System ' | ||
+ | </ | ||
+ | When you see <color red>Not monitored</ | ||
+ | \\ | ||
+ | monit start all | ||
+ | \\ | ||
+ | This will kick of all the processes, to check the process status you can again use <color red> | ||
+ | \\ | ||
+ | < | ||
+ | [root@aio103 ~]# monit summary | ||
+ | The Monit daemon 5.3.2 uptime: 1h 19m | ||
+ | |||
+ | Remote Host ' | ||
+ | Remote Host ' | ||
+ | Process ' | ||
+ | Process ' | ||
+ | Process ' | ||
+ | Process ' | ||
+ | Process ' | ||
+ | Process ' | ||
+ | Process ' | ||
+ | Process ' | ||
+ | Process ' | ||
+ | Process ' | ||
+ | Process ' | ||
+ | Process ' | ||
+ | Process ' | ||
+ | Process ' | ||
+ | Process ' | ||
+ | Process ' | ||
+ | System ' | ||
+ | [root@aio103 ~]# sysu edit | ||
+ | No changes were made , nothing to do | ||
+ | </ | ||
+ | \\ | ||
+ | \\ |
change_ip_details_permanent.1488287921.txt.gz · Last modified: 2023/03/09 22:35 (external edit)