Changes between Version 1 and Version 2 of Orca Configuration Notes

Show
Ignore:
Timestamp:
11/20/08 21:44:59 (10 years ago)
Author:
aydan (IP: 69.134.122.47)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Orca Configuration Notes

    v1 v2  
    11== ZFS Server Installation and Configuration == 
    22 
    3 1. Install OpenSolaris. OpenSolaris will create a default zfs pool called rpool. 
     31. Install OpenSolaris. OpenSolaris will create a default ZFS pool called '''rpool'''. 
    44 
    552. You must create the following ZFS hierarchy: 
    66 
     7{{{ 
    78zfs create rpool/images 
    89zfs create rpool/images/orca 
    9 zfs create rpool/images/orca/base     --> will contain templates 
    10 zfs create rpool/images/orca/clone    --> will contain cloned fs images 
     10zfs create rpool/images/orca/base 
     11zfs create rpool/images/orca/clone 
     12}}} 
    1113 
    12 3. You must enable nfs sharing over rpool/images/orca 
     14We will use orca/base for template images and orca/clone for cloned filesystems. 
     15 
     163. You must enable NFS sharing for rpool/images/orca 
    1317 
    1418zfs set sharenfs=rw=@192.168.0.0/16,root=@192.168.0.0/16 rpool/images/orca 
     
    1620This command enables mount (and root mount) from 192.168.0.0/16 
    1721 
    18 4. Create a user sharp on the zfs server 
     22== ZFS Driver Preparation == 
    1923 
    20 to create the user: 
     241. Create a user '''sharp''' on the ZFS server 
    2125 
     26{{{ 
    2227useradd -d /export/home/sharp -m -s /bin/bash sharp 
     28passwd sharp 
     29}}} 
    2330 
    24 to set a password for the user 
    25  
    26 passwd sharp 
    27  
    28 5. Generate a keypair for user sharp and anable paswordless ssh login 
     312. Generate a keypair for user sharp 
    2932 
    3033Login as sharp and invoke: 
    3134 
     35{{{ 
    3236ssh-keygen -b 1024 -t dsa 
     37}}} 
    3338 
    34 select the default location 
    35 when prompted for key password press enter (no password) 
     39Select the default location. When prompted for key password press enter (no password). 
    3640 
     413. Enable password-less ssh login for user sharp 
     42 
     43{{{ 
    3744cd ~/.ssh 
    3845cat id_dsa.pub > authorized_keys 
     46}}} 
    3947 
    40 to test your setup: 
     48To test your setup: 
     49{{{ 
     50ssh localhost 
     51}}} 
    4152 
    42 ssh localhost 
     53This command should succeed without requiring a password. 
    4354 
    44 this command should succeed without requiring a password 
     554. Copy /root/.ssh/id_dsa to your build machine. We will refer to this key 
     56as sharp_dsa. 
    4557 
    46 6. Copy /root/.ssh/id_dsa* to your build machine 
    4758 
    48 --- 
    49 enable user sharp to invoke zfs 
     595. Enable user sharp to invoke zfs 
    5060 
    51 1. add this to ~sharp/.profile 
    52    export PATH=${PATH}:/usr/sbin/ 
    53 2. as root install sudo: 
     61Add this to ~sharp/.profile 
     62{{{ 
     63export PATH=${PATH}:/usr/sbin/ 
     64}}} 
    5465 
     666. As root install sudo: 
     67 
     68{{{ 
    5569wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/sudo-1.6.9p18-sol10-x86-local.gz 
    5670wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/libintl-3.4.0-sol10-x86-local.gz 
    5771wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/libiconv-1.11-sol10-x86-local.gz 
    5872wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/libgcc-3.3-sol10-intel-local.gz 
    59  
    6073 
    6174gunzip sudo-1.6.9p18-sol10-x86-local.gz 
     
    6982pkgadd -d libgcc-3.3-sol10-intel-local 
    7083 
    71 answer yes to all prompts during the installation 
     84} 
    7285 
    73 #create links 
     86Answer yes to all prompts during the installation. 
     87 
     88Create symbolic links 
     89{{{ 
    7490ln -s -f /usr/local/bin/sudo /usr/bin/sudo 
    7591ln -s -f /usr/local/etc/sudoers /etc/sudoers 
     92}}} 
    7693 
    77 invoking sudo should produce output similar to this one: 
     94Invoking sudo should produce output similar to this one: 
    7895 
     96{{{ 
    7997-sh-3.2$ sudo 
    8098usage: sudo -K | -L | -V | -h | -k | -l | -v 
    8199usage: sudo [-HPSb] [-p prompt] [-u username|#uid] 
    82100            { -e file [...] | -i | -s | <command> } 
     101}}} 
    83102 
    84103 
    85 #          
     1047. Edit the sudoers file to enable sharp to invoke zfs 
     105 
     106          
    86107make /etc/sudoers writable 
    87108chmod u+w /etc/sudoers