Archive

Archive for the ‘Openfiler’ Category

Openfiler 2.99.2 & USB boot & Large Volumes & iSCSI & Samba

November 26, 2011 admin 1 comment

Dell PowerEdge 2900 III
RAID-Controller -- Dell Perc 6/i (3 HDD -- HUA723020ALA640 A7K3000 2 TB)
USB-Stick -- Corsair Voyager GT 8GB

Openfiler 2.99.1 & USB boot

Openfiler 2.99 is much easier to install on a USB stick than 2.3, because it loads USB drivers earlier in the boot process.

  • At the installer screen, type ‘linux text’.
  • Partition your drive as follows:
    • /boot, ext2, 100MB, primary
    • /, ext3, 4096MB , primary
    • /var/log, ext3, Fill to max, not primary

 

Patch the new install to 2.99.2

Login with SSH or the console and run

conary sync group-openfileresa-appliance
conary updateall --keep-required

 

Openfiler 2.99.2 & Creating a Physical Large Volume

  • Click on Volumes tab
  • Click on Block Devices to access the Physical Volume creation page

Volumes Volume Groups

  • Click on the disk you want to create the Volume on (Example: /dev/sdb)

Volumes Block Devices

  • Adjust the start and end cylinders to determine the size of physical volume and when satisfied press the ‘Create’ button

Volumes Block Devices Edit Partitions

But it only uses 95% of the free space.
Volumes Block Devices Edit Partitions

Login with SSH or the console and run

parted /dev/sdb
(parted) rm 1
(parted) mkpart primary ext3 0 -1
(parted) set 1 lvm on
parted /dev/sdb
GNU Parted 1.8.8
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: DELL PERC 6/i (scsi)
Disk /dev/sdb: 4000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name     Flags
 1      17.4kB  3814GB  3814GB               primary  lvm

(parted) rm 1
(parted) mkpart primary ext3 0 -1
(parted) print
Model: DELL PERC 6/i (scsi)
Disk /dev/sdb: 4000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name     Flags
 1      17.4kB  4000GB  4000GB               primary  msftres

(parted) set 1 lvm on
(parted) print
Model: DELL PERC 6/i (scsi)
Disk /dev/sdb: 4000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End     Size    File system  Name     Flags
 1      17.4kB  4000GB  4000GB               primary  lvm

(parted)

You should now be presented with 100% space
Volumes Block Devices Edit Partitions
 

Openfiler 2.99.2 & iSCSI & Samba

Create a New Volume Group

  • Click on Volumes tab
  • Click Volume Groups to create a volume group.
  • Name your volume group and add your partitions.
  • Click Add volume group

Volumes Volume Groups

You should now be presented with a new Volume Group that looks like this
Volumes Volume Groups

Add New Volume for iSCSI

  • Click on Volumes tab
  • Click Add Volume
  • Enter in a volume name: no spaces, no fancy characters
  • Enter in the amount of space in MB required
  • Select the type ‘block’
  • Click Create

Volumes Add Volume Mozilla

You should now be presented with a new Volume for iSCSI that looks like this:
Volumes Manage Volumes
 

Add New Volume for Samba
You will need to setup Volumes with either XFS or EXT3 filesystems (you cannot create shares from iSCSI volumes).

  • Click on Volumes tab
  • Click Add Volume
  • Enter in a volume name: no spaces, no fancy characters
  • Enter in the amount of space in MB required
  • Select the type ‘ext3′
  • Click Create

Volumes Add Volume

You should now be presented with a new Volume for Samba that looks like this
Volumes Manage Volumes

Enable the iSCSI and Samba Target Service

  • Click on Services -> CIFS server -> Enable
  • Click on Services -> CIFS server -> Start
  • Click on Services -> iSCSI target -> Enable
  • Click on Services -> iSCSI target -> Start

Services Section

Network Access Configuration

  • Click on System tab
  • Click Network Setup
  • In the Network Access Configuration section
    • Name: The name of the host or the network
    • Single machine example(Crossover Cable ESX Network)
      • Network/Host: 192.168.182.177
      • Netmask: 255.255.255.255
    • Network example
      • Network/Host: 192.168.181.0
      • Netmask: 255.255.255.0

System Network Setup

Add iSCSI Target

  • Click on Volumes tab
  • Click iSCSI Targets
  • In the Add new iSCSI Target section
    • Click Add

Map the LUN
You now need to map a LUN to your iSCSI target

  • Click on Volumes tab
  • Click iSCSI Targets
  • Select the Target Configuration tab
    • In the Select iSCSI Target section, select the iSCSI target that you want to work on from the drop-down and click Change
      • Select the LUN Mapping tab
        • Click Map

      Volumes iSCSI Targets

      Allow access to the iSCSI Target:
      Volumes iSCSI Targets

      Use LDAP

      • Click on Accounts / Authentication
      • Check Use LDAP
      • Check Use Local LDAP
      • Server: 127.0.0.1
      • Base DN: dc=openfiler,dc=nas
      • Root bind DN: cn=Manager,dc=openfiler,dc=nas
      • Root bind password: your_root_password

      Accounts Authentication

      Add Network Shares

      • Click on Shares
      • Click on the link for your volume and create a sub-folder.
      • Click on the link for your new sub-folder and Make Share
      • Scroll down to “Group Access Configuration”
        • Select a group to be your primary group.
        • Select permissions for the rest of your groups
      • Scroll down to “Host Access Configuration”
        • Select the MAXIMUM ALLOWABLE permissions for your networks

      Shares Section

      Shares Edit Share
      Shares Section

      Synchronise Time

      • Click on System tab
      • Click Clock Setup
      • Server: 1.pool.ntp.org
      • Click Setup synchronization

      System Clock Setup

      Links

      Using Openfiler and vSphere ESX / ESXi 4

Categories: Openfiler Tags: