Sunday, October 25, 2009

How do I grow a ufs filesystem?

2. How do I grow a ufs filesystem?

a. Unmounted filesystem (not /, /usr, /var)
1. Allocate additional contiguous disk space with format(1m)
a. Unnecessary if you are using a volume manager
2. /usr/lib/fs/ufs/mkfs -G rawdevice newsize
b. Mounted filesytem (not /, /usr, /var)
1. Allocate additional contiguous disk space with format(1m)
a. Unnecessary if you are using a volume manager
2. /usr/lib/fs/ufs/mkfs -G -M mountpoint rawdevice newsize

3. How do I determine what type of filesystem a given device has?

a. Method 1 (root)
1. /usr/sbin/fstyp blockdevice


4. What are inodes 0, 1, and 2 used for?

a. Inode 0 is unusable. It is used to mark unused inodes.
b. Inode 1 is unusable. Use of this inode for bad block information
is deprecated.
c. Inode 2 is "/" or "root" of the filesystem.

5. What do I do if I have a corrupt boot block?

a. ok boot cdrom -s
b. /usr/sbin/installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rd

No comments:

Post a Comment