• No results found

Task: Manage the Boot Environments Perform these steps to manage boot environment:

In document D73488GC11_ag.pdf (Page 35-41)

1. In a terminal window on the Sol11-Server1 virtual machine, list the current BEs.

root@s11-serv1:~# beadm list

BE Active Mountpoint Space Policy Created -- --- --- --- --- --- solaris NR / 2.28G static 2011-08-05 14:13

The Active field indicates whether the boot environment is active now (N) and active on reboot (R).

2. Clone the current active BE. Name the clone solaris-1.

root@s11-serv1:~# beadm create solaris-1 4. Activate the solaris-1 BE. Display the list of BEs. Note that solaris-1 is pending

activation on reboot.

Oracle University and BOS-it GmbH & Co.KG use only

5. Reboot the Sol11-Server1 virtual machine.

root@s11-serv1:~# init 6

Notice that solaris is now the default boot entry in the GRUB menu.

6. After Sol11-Server1 has rebooted, log in as the oracle user and su to root.

7. In a terminal window, list the current BEs.

root@s11-serv1:~# beadm list

BE Active Mountpoint Space Policy Created -- --- --- --- --- --- solaris - - 3.96M static 2011-05-01 22:14 solaris-1 NR / 2.34G static 2011-08-08 14:13 Note that the solaris-1 image is now active.

8. Verify that the diffstat package is not currently installed on the new active BE.

root@s11-serv1:~# pkg list diffstat

pkg list: no packages matching “diffstat’ installed 9. Install the diffstat package on the new active BE.

root@s11-serv1:~# pkg install diffstat Creating plan...

Packages to install: 1 Create boot environment: No Create backup boot environment: No

DOWNLOAD PKGS FILES XFER (MB) Completed 1/1 6/6 0.0/0.0

Oracle University and BOS-it GmbH & Co.KG use only

PHASE ACTIONS Install Phase 24/24

PHASE ITEMS Package State Update Phase 1/1 Image State Update Phase 2/2

10. Activate the solaris BE. Display the list of BEs. Note that solaris is pending activation on reboot. 11. Reboot the Sol11-Server1 virtual machine. After Sol11-Server1 has rebooted, log in as the

oracle user and su to root.

12. Verify that the solaris image is now active and that the diffstat package is not installed.

pkg list: no packages matching “diffstat’ installed 13. Mount the inactive BE.

root@s11-serv1:~# beadm mount solaris-1 /solaris-1 root@s11-serv1:~# beadm list

BE Active Mountpoint Space Policy Created -- --- --- --- --- --- solaris NR / 2.35G static 2011-08-05 14:13 solaris-1 - /solaris-1 78.95M static 2011-08-08 14:13 14. Verify that the diffstat package is installed in the inactive package:

root@s11-serv1:~# pkg -R /solaris-1 verify -v diffstat Verifying: PACKAGE STATUS

pkg://solaris/text/diffstat OK 15. Remove the diffstat package from the mounted inactive BE.

root@s11-serv1:~# pkg -R /solaris-1 uninstall diffstat Creating Plan…

Packages to install: 1 Create boot environment: No Create backup boot environment: No

Oracle University and BOS-it GmbH & Co.KG use only

PHASE ACTIONS root@s11-serv1:~# pkg -R /solaris-1 list diffstat pkg list: no packages matching “diffstat’ installed 16. Unmount the inactive BE.

root@s11-serv1:~# beadm unmount solaris-1

17. Create a snapshot of the solaris BE. Name the snapshot backup.

root@s11-serv1:~# beadm create solaris@backup 18. Display the list of snapshots associated with the solaris BE.

root@s11-serv1:~# beadm list -a solaris

BE/Dataset/Snapshot Active Mountpoint Space Policy Created

19. Create a new boot environment from the solaris@backup snapshot. Name this BE solaris-2.

root@s11-serv1:~# beadm create -e solaris@backup solaris-2 root@s11-serv1:~# beadm list

Oracle University and BOS-it GmbH & Co.KG use only

20. Delete the solaris-2 BE and show the results.

root@s11-serv1:~# beadm destroy solaris-2

Are you sure you want to destroy solaris-2? This action cannot be undone(y/[n]): y

root@s11-serv1:~# beadm list

BE Active Mountpoint Space Policy Created -- --- --- --- --- --- solaris NR / 2.35G static 2011-08-05 22:14 solaris-1 - - 79.18M static 2011-08-08 14:13 21. Rename the original solaris-1 BE to solaris-alt.

root@s11-serv1:~# beadm rename solaris-1 solaris-alt 22. List the boot environments.

root@s11-serv1:~# beadm list

BE Active Mountpoint Space Policy Created -- --- --- --- --- --- Solaris NR / 2.35G static 2011-08-08 14:59 solaris-alt - - 79.18M static 2011-08-05 22:14

Oracle University and BOS-it GmbH & Co.KG use only

Practice 3-7: Testing Your Skills and Knowledge Overview

In this practice, you get to apply the skills and knowledge you gained from the lecture and guided practices. You are challenged with completing the following task(s) without the benefit of a step-by-step guide.

Hint: Use all the available resources, such as man pages, student guide, activity guide, and your instructor, to successfully complete each task.

Note: This practice is optional. Check with your instructor to determine if you have enough time available to complete this practice. If you begin this practice and run out of time, set this practice aside and return to it if time permits.

Task 1: Manage Software Packages

Perform this task on the Sol11-Server1 VM.

• Determine the current status of the IPS repository.

• Display detailed information about the snort software package.

• Determine if the snort package is currently installed in the system.

• Perform a "dry run" installation of the snort package.

• Install the snort package.

• Verify that the snort package was installed correctly.

• Remove the snort package.

Task 2: Manage the Boot Environment (BE)

Perform this task on the Sol11-Server1 VM.

• List the current bootable environments (BEs).

• Clone the active BE to a BE named solaris11.

• Activate BE solaris11 and reboot the system.

• Create a snapshot of the active BE (solaris11).

• Create a new boot environment named solaris11-1 from the BE snapshot.

• Activate the original BE (solaris) and reboot the system.

• Destroy the solaris11 and solars11-1 BEs.

Oracle University and BOS-it GmbH & Co.KG use only

In document D73488GC11_ag.pdf (Page 35-41)