After Red Hat Installation is complete, login to your new installation.
Default Autodesk Login
User: root
Pass: password
In Terminal:
nano /etc/fstab
# KEEP THIS LINE FOR CDROM — from ADSK Redhat DVD
/dev/cdrom /mnt/cdrom auto pamconsole,exec,noauto,managed 0 0
/dev/vg00/lvol1 /mnt/StorageMedia xfs rw,noatime,inode64
- Logical Volume:
/dev/vg00/lvol1
- Mount Point:
/mnt/StorageMedia
- Filesystem:
xfs
- Option Flags:
rw,noatime,inode64
If these options are present after re-installing your Storage Array, storage config is complete.
If you are building a new framestore from scratch, complete the following steps.
Devices:
/sda /sdb /sdc
Become Partions:
/sda1 /sdb1 /sdc1
Are Combined Into a Physical Volume:
lvm2
(note: lvm1 is often a part of your OS Boot Disk)
And Become a Volume Group:
vg00
Which Then has a new Logical Volume created on it, usually called:
lvol1
In Terminal:
fdisk -l
(full output)
OR
fdisk -l | grep dev
(output sorted by device)
i.e.
/dev/sdb/
/dev/sdc/
/dev/sdd/
etc.
Assuming your RAID array is /dev/sdb/
- Repeat for every array you have connected.
- You should see some brief disk activity as each command is executed.
In Terminal:
/sbin/parted -s -- /dev/sdb mklabel gpt mkpart primary 0 -1
Once partitioned your array name will now be /dev/sdb1
In Terminal:
pvcreate /dev/sdb1
Add additional partitions if you have multiple arrays to convert, for example:
In Terminal:
pvcreate /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1
Note: Use pvremove to delete a physical volume created by mistake.
In Terminal:
pvscan -v
In Terminal:
Single Volume...
vgcreate vg00 /dev/sdb1
Multiple Volumes...
vgcreate vg00 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1
In Terminal:
vgdisplay -v
Example:
Free PE / Size 228671 / 893.25 GB (Dual 480GB SSD Array)
Note: Use
vgremove
to delete volume groups created by mistake.
- Create a new Logical Volume ‘lvol1’ on your Volume Group ‘vg00’ using Free PE value.
EXAMPLE: If using one 30TB volume (12-Bay RAID Array)
In Terminal:
lvcreate -l 7868927 -I32 -n lvol1 vg00
Where:
lvcreate = create logical volume
-l = create logical volume that uses the entire volume group
7868927 = PE Value (array size) obtained from using the vgdisplay -v command earlier
-I32 = The stripe size in Kb (using capital ‘I’, NOT ‘L’)
-n = flag for name of new volume
lvol1 = new volume name
vg00 = the volume group the new volume is being carved out of
If successful you will see output stating “lvol1” created.
In Terminal:
mkfs.xfs -d agcount=128 -f /dev/vg00/lvol1
Note the agsize
value. In our 30TB array example, agsize = 62951416
If BOTH sunit=0 blks
, AND swidth=0 blks
, multiply agsize
by 4096
as described below to obtain a final agsize value.
62951416 blks x 4096 = new agsize = 257848999936
NOTE: if
sunit=0 blks
, ANDswidth=0 blks
DO NOT equal 0, see the following article under ‘Creating the XFS Filesystem on the Logical Volume’ for more details: https://knowledge.autodesk.com/search-result/caas/sfdcarticles/sfdcarticles/Configuring-a-Logical-Volume-for-Flame-Media-Storage-Step-3.html
In Terminal:
mkfs.xfs -d agsize= <new agsize> -f /dev/vg00/lvol1
Using our 30TB Array Example….
mkfs.xfs -d agsize= 257848999936 -f /dev/vg00/lvol1
The XFS filesystem is created on the storage array.
In Terminal:
mkdir /mnt/StorageMedia
In Terminal:
mount -av -t xfs -o rw,noatime,inode64 /dev/vg00/lvol1 /mnt/StorageMedia
In Terminal:
Open fstab in Nano…
nano /etc/fstab
Add this entry to the below all other entries in the fstab file…
/dev/vg00/lvol1 /mnt/StorageMedia rw,noatime,inode64
In Terminal:
mkdir -p /mnt/StorageMedia/flame01/p7
chown -R root:users /mnt/StorageMedia/flame01/p7
chmod -R 777 /mnt/StorageMedia/flame01/p7