Solaris advanced system management lecture notes Day 3

Source: Internet
Author: User

SA-299 Day 3
-------------

========================================================== ==============
Create State database replica

View existing Disk Partitions
-------------

Format

Create status database
-------------
 
Metadb-a-f c0t0d0s4 c0t0d0s5 c0t0d0s6 c0t0d0s7

Metadb

========================================================== ==============
Create install flash from the existing system

Flarcreate-N flash_root_archive-c-r/-E root_archive-x/flash/
-A admin_operator/flash/flash_archive1

========================================================== ==============
Create an install image from a CD-ROM/DVD

Mkdir/export/install

CD/CDROM/cdrom0/S0/solaris_9/tools

./Setup_install_server/export/install

CD/

Eject CDROM

 

========================================================== ==============
Custom jumpstart Installation

VI/etc/vfstab

Mkdir/export/install

# Mountall

Mount/dev/DSK/c0t0d0s7/export/install/

CD/CDROM/cdrom0/S0/solaris_9/tools

./Setup_install_server/export/install

#./Setup_install_server-B/export/install

CD/CDROM/cdrom0/solaris_9/tools

./Add_to_install_server/export/install

Root_password = nyn44252b2sqq

CD/export/config

VI sysidcfg
Type:
Network_interface = primary {protocol_ipv6 = No
Netmask = 255.255.255.0
Default_route = 10.1.101.1}
Security_policy = none
Name_service = none
Timezone = Asia/Chongqing
System_locale = Zh. GBK
Timeserver = 10.1.101.1
Root_password = nyn44252b2sqq

VI rules
Type:
Hostname sun10-profile10-
Hostname sun99-profile10-

VI profile10
Type:
Install_type initial_install
System_type Standalone
Partitioning explicit
Filesys c0t0d0s0 2048/
Filesys c0t0d0s512 swap
Cluster sunwcxall

CD/export/install/solaris_9/MISC/jumpstart_sample

CP check/export/config

CD/export/config

./Check

VI/etc/Ethers
Type:
0: 3: BA: e: 26: 66 sun10
8: 0: 20: Fe: 68: 57 sun99

VI/etc/hosts
Type:
10.1.101.10 sun10
10.1.101.99 sun99

Share-O ro/export/config
Share-O ro/export/install

VI/etc/dfs/dfstab
Type:
Share-O ro/export/config
Share-F nfs-O Ro, anon = 0/export/install

Revoke all

Share

CD/CDROM/cdrom0/S0/solaris_9/tools/

# Cp add_install_client/export/install/

CD/export/install/solaris_9/tools

./Add_install_client-C 10.1.101.70:/export/config-P 10.1.101.70:/export/config sun10 sun4u
./Add_install_client-C 10.1.101.70:/export/config-P 10.1.101.70:/export/config sun99 sun4u

Mkdir/tftpboot
BC
Obase = 16
#10.1.101.10 0a01650a
#10.1.101.99 0a016563

# Ln-s inetboot. sun4u. solaris_9 0a01650a
# Ln-s inetboot. sun4u. solaris_9 0a016563

========================================================== ==============
Boot client from jumpstart Server

Boot net-install

# Choose whether to enable power-saving?
# Select to install other language packs.

========================================================== ==============
Wrapper: Reuse custom jumpstart install

CD/Export

# Compression

Tar-CVF sol9install.tar./install
Gzip sol9install.tar

Tar-CVF sol9config.tar./config
Gzip sol9config.tar

# Decompress
Gzip sol9install.tar.gz
Tar-xvf sol9install.tar

Gzip sol9config.tar.gz
Tar-xvf sol9config.tar

# Modify configuration

========================================================== ==============
Reference

Pkill-kill vold

========================================================== ==============
Flash Installation

Newfs/dev/DSK/c0t0d0s6

Mkdir/flash

Mount/dev/DSK/c0t0d0s6/flash/install

# Create a flash Archive

Flarcreate-N flash_root_archive-c-r/-E root_archive-x/flash-x/export/install-x/export/config-A admin_operator/flash/install/flarsol9

Mkdir/flash/config

# Cp-r/export/config/flash

VI/etc/Ethers
Type:
8: 0: 20: F8: EF: B4 sun80

VI/etc/hosts
Type:
10.1.101.80 sun80

CD/flash/config

VI rules
Type:
Hostname sun80-profile-

VI Profile
Type:
Install_type flash_install
Archive_location NFS 10.1.101.70:/flash/install/flarsol9
Partitioning explicit
Filesys c0t0d0s0 2048/
Filesys c0t0d0s512 swap

VI/etc/dfs/dfstab
Type:
Share-O ro/flash/config
Share-F nfs-O Ro, anon = 0/flash/install

Revoke all

Share

./Check

CD/flash/install

#./Add_install_client-P 10.1.101.70:/flash/config-C 10.1.101.70:/flash/config sun80 sun4u

#./Add_install_client-P 10.1.101.70:/flash/config-C 10.1.101.70:/flash/config sun10 sun4u

# Boot Client

Boot net-install

========================================================== ==============
Volume Management

# Initial volume D11

/Usr/sbin/metainit-F D11 1 c0t0d0s0

# SMC

/Usr/sbin/metainit D10-M D11

# Delete D10

/Usr/sbin/metainit D10-M D11

Metaroot D10

Tail/etc/System

Init 6

Metattach D10 D12

Master/Slave boot Partition
-------------

Ls-L/dev/DSK/c0t0d0s3

Import prom:
OK: nvalias backup_root/PCI @ 1f, 0/PCI @ 1, 1/ide @ 3/Dad @ 0, 0: d

EEPROM setenv boot-device disk backup_root net

OK: boot backup_root

========================================================== ==============

/Usr/sbin/metainit-F D21 1 c0t0d0s4

/Usr/sbin/metainit-F D22 1 c0t0d0s5

#/Usr/sbin/metaclear d20

/Usr/sbin/metainit d20-M D21

Effectach d20 D22

Newfs/dev/MD/DSK/d20

VI/etc/vfstab
Type:
/Dev/MD/DSK/d20/dev/MD/rdsk/d20/volume UFS 1 no-

/Usr/sbin/metastat d20

# Uninstall

/Usr/sbin/metadetach d20 D22

Umount/volume

/Usr/sbin/metaclear d20

/Usr/sbin/metaclear D21

========================================================== ==============
RAID 0 + 1

# Submirror 1 (RAID 0)
/Usr/sbin/metainit-F D21 1 c0t0d0s4
/Usr/sbin/effectach D21 c0t0d0s5

# Submirror 2 (RAID 0)
/Usr/sbin/metainit-F D22 1 c0t0d0s6
/Usr/sbin/effectach D22 c0t0d0s7

# Mirror (RAID 1)
/Usr/sbin/metainit d20-M D21
/Usr/sbin/javastach d20 D22

# Growfs Device

========================================================== ==============
RAID 5

/Usr/sbin/metainit-F D50 c0t0d0s4 c0t0d0s5 c0t0d0s6 c0t0d0s7

========================================================== ==============
Hot spare

========================================================== ==============
X86 boot partition (command )??
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.