Sunday, April 01, 2007

Create a Device Alias with nvalias

Creating device aliases is a routine task for sysads. Here's an example for creating an alias for a SunFire v490's backup disk. Obviously, the alias can be named anything, but I commonly see backup, mybackup, disk0, disk1, disk2, and soforth.

ok nvalias backup /pci@9,600000/SUNW,qlc@2/fp@1,0

By the way, aliases are stored in the NVRAMRC, which is part of the NVRAM.

To boot off the backup
ok boot backup

No comments: