LDOMs (OVM for SPARC) Command line reference [cheat sheet]

Display Default LDOM servicesPurposeCommand Check ldom manager (ldmd)# svcs ldmd Check vntsd is running# svcs vntsd Check Default Services are running# ldm list-services primary Check ldm software# ldm -V check ldoms manager package in Solaris 11# pkg info ldomsmanagerCreating Default LDOM servicesPurposeCommand add virtual console concentrator (vcc)# ldm add-vcc port-range=5000-5100 primary-vcc0 primary add virtual network switch (vsw)# ldm add-vsw net-dev=net0 … [Read more...]

A beginners guide to Solaris performance monitoring and troubleshooting

In my opinion one of the hardest thing to do by any system admin is to pin point the exact cause of performance bottleneck. Many of us struggle to do this. This post will help to get started with some basic performance monitoring and troubleshooting. The post contains some of the excellent videos by Brenden Gregg. Gregg is one of the leading experts on DTrace and creator of the DTraceToolkit.1. uptime : Load averages The uptime command gives us the load averages along with the system uptime … [Read more...]

Beginners guide to Oracle Solaris Live Upgrade

Solaris Live Upgrade enables system administrators to create and upgrade a boot environment that is initially inactive, without affecting the running system. A simple Solaris live upgrade procedure involves below 4 steps :1. Creating new Boot environment. 2. Applying patches to the new boot environment or upgrading the OS version in new BE. 3. Activating the new boot environment. 4. Rebooting the system with new boot environment in effect.Pre-requsites : 1. Disk space - You should … [Read more...]

OVM for SPARC (LDOMs) : Troubleshooting console issues

Basics In a Logical Domains environment, console I/O from all domains, except the primary domain, is redirected to a service domain running the virtual console concentrator (vcc) and virtual network terminal server (vntsd) services, instead of the systems controller. The virtual console concentrator service functions as a concentrator for all domains, console traffic, and interfaces with the virtual network terminal server daemon and exports access to each console through a UNIX socket. … [Read more...]

SF3800/SF4800/SF4810/SF6800 – E4900/E6900 : connecting to a domain shell console which is already in use

Sun Fire 3800, 4800, 4810, 6800, E4900, and E6900 System Controller (SC) software contains multiple shells. Each have specific functionality regarding administration of the platform. The shells include:1. Domain Console: The domain's console device connection (/dev/console). When connected, the user will have one of the following prompts: a. OpenBoot Prom (OBP) b. console login 2. Domain Shell: A shell on the system controller with the ability to administer a specific domain on the … [Read more...]

The ultimate Solaris Volume Manager (SVM) interview questions

What are the configuration files used in SVM ? /etc/lvm/md.tab 1. The file is empty by default. The file is only used when metainit command is issued by the administrator. It is configured manually. 2. It can be populated by appending the output of # metastat -p. For example #metastat -p >> /etc/lvm/md.tab. 3. It can be used to recreate all the metadevices in one go. Best used in recovery of SVM configurations. For example # metainit -a (to create all metadevices mentioned in md.tab … [Read more...]

How to identify the boot device (primary and alternate) in Solaris

In a general production environment you'll find the OS root disk is mirrored to avoid any single point of failures. Its is important to know how to find the primary and alternate boot device. You can either identify the boot device from the OK prompt (in case of a SPARC machine) or when the OS is booted up.SPARC Identifying boot device at OK prompt To identify the boot device at OK prompt :ok> printenv boot-deviceboot-device = rootdisk mirrordiskHere the primary boot device is … [Read more...]

Solaris Volume Manager (SVM) : Growing concat metadevice

Solaris Volume Manager (SVM) : Growing mirrored metadevices online Solaris Volume Manager (SVM) : Growing RAID 5 metadevices onlineIn the example shown below, the concat metadevice d80 is configured using the slice c1t3d0s0 of size 1 GB. The high level steps to grow this metadevice are :1. Umount the file system on the metadevice if any. 2. Increase the size of disk partition being used by metadevice. 3. Recreate the metadevice. 4. Growing the file system.The resizing … [Read more...]

Solaris Volume Manager (SVM) : Growing RAID 5 metadevices online

Solaris Volume Manager (SVM) : Growing mirrored metadevices online Solaris Volume Manager (SVM) : Growing concat metadevice In the example below, we have a 3 column RAID5 metadevice d10 [ size - 1GB ] with 3 disks - c5t23d0s1, c5t24d0s1, c5t25d0s1. The high level steps to grow the RAID 5 metadevice d10 are :1. Attaching a new disk to the RAID 5 metadevice as a concatenated device. 2. Growing the file system online.Once we have done growing the RAID 5 metadevice, we would still have a … [Read more...]

Solaris Volume Manager (SVM) : Growing mirrored metadevices online

Solaris Volume Manager (SVM) : Growing RAID 5 metadevices online Solaris Volume Manager (SVM) : Growing concat metadevice The example shown below uses metadevice d3, which is a 33Gb mirror with a mounted file system. The high level steps to grow the mirrored metadevice d3 includes :1. Attaching 2 more sub-mirrors (bigger ones - d32 and d33) to the parent metadevice d3. 2. Detaching the older sub-mirrors d30 and d31 after sync. 3. Growing the parent metadevice d3 to reflect new size. 4. … [Read more...]