PP&B
IT-Support Group
AC ISC MP PC TH NOMAD | FHI | Webmail    GNZ   

Preparing a QFS Volume

After successfull installation of QFS (Software Installation) you have to prepare your disk. Build at least two partitions. One for the metadata (I-Nodes) and one for data. 16Gb for the metadata partition is a good choise in most cases (~ 30000000 indoes).

Now you need to create a mcf file (nobody know what mcf stands for). The file is located in /etc/opt/SUNWsamf and should look like this:

 # Disk cache configuration for 2 file systems: qfs1, qfs2
 #   
 # Equipment         Eq   Eq     Family   Device   Additional
 # Identifier        Ord  Type    Set     State    Parameters
 #
 qfs0                 10    ma   qfs0       on
 /dev/dsk/c3t4d0s1    11    mm   qfs0       on
 /dev/dsk/c3t4d0s6    12    mr   qfs0       on

mm is the metadata device and mr the data device.

now perform the following commnds:

 # samd config
 # sammkfs qfs0

and add a line for each volume to /etc/vfstab:

 qfs0 -       /export/home    samfs   -       yes     stripe=0

after mount qfs0 or reboot the filesystem should be available

Expand a QFS Volume

first umount the filesystem than add metadata or data partion(s) to /etc/opt/SUNWsamfs/mcf and run this commands:

 samd config
 samgrowfs <volume>
 mount <volume>

Troubleshooting

if samfsck returns errors umount the filesystem (reboot may be required; disable mounting at bot in /etc/vfstab in this case) and run

 samfsck -F -V <volume>
 mount <volume>

if mount returns errors (device is busy) perform this:

 rmdir <mountpoint>
 mkdir <mountpoint>
 mount <volume>
Page last modified on 3. Jun 2005, at 13:36