[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SUMMARY: removing quota files / diskconfig



Hello Admin wizwards,

once again thanks for all the answers and a big hand for:

Tom Blinn (!), Bl Venkatesh, Bard Tesaker, Peter Stern, Armin Olig

Consensus was that:

a) quota files MUST not be deleted cause they are used by the AdvFS; they are however only sparse files so that most of the pages are nopt really there (Tom)

b) it is highly recommended NOT to resize the disk partition (eg /dev/rz0h) w/ diskconfig while the system is running.

c) However the following way proved to be useful for the main clusternode (and failed on the failover node for obscure reasons): use disklabel to mark the partition h as used by advfs and use addvol to add it as a volume to the filedomain usr_domain. Bard Tesaker supplied this procedure:
#######################################################################
Example under assumes the system disk /dev/rz0 (rawdevice /dev/rrz0)
and "ed" as EDITOR.


* First edit the disklabel so the h partition covers the unused blocks:

#stamme:/> disklabel -re /dev/rrz0c
1068
/ h:
  h:   0     0    unused    0   0     # (Cyl.    0 - -1)
s/0/135143/
s/0/1817930/
-1
  h:   135143     1817930    unused    0   0     # (Cyl.    0 - -1)
w
1079
q
write new label? [y]: y
re-edit the label? [y]: n
#stamme:/>

* Then add the h partition to the usr_domain (require advfs licence)

#stamme:/> addvol /dev/rz0c usr_domain
#stamme:/>


"df /usr" and "showfdmn usr_domain" should now reflect the change. /etc/usr_domain should contain rz0g and rz0h.

This procedure should be "tamper-safe" since both disklabel and addvol
verifies that your actions are safe, checking overlap with acive
partitions etc.

##########################################################

d) workaround on the failover cluster: I created the partition h as described and also created a new domain (var_domain) and a fset (var) on it. Then, i edited fstab to mount this new partition as /var and moved the complete content of /var (i.e. /usr/var) to it.

thank you all!!

CW