다음 조건에서 newfs 명령으로 UFS 파일 시스템을 만드는 데 실패할 수 있습니다.
슬라이스 크기가 약 4MB 미만으로 작은 경우
디스크 크기가 8GB를 초과하는 경우
이 오류는 메타 데이터를 위해 대형 파일 시스템을 요구하는 경우 발생합니다. 다음과 같은 경고 메시지가 나타납니다.
Warning: inode blocks/cyl group (295) >= data blocks (294) in last
cylinder group. This implies 4712 sector(s) cannot be allocated.
/dev/rdsk/c0t0d0s6: 0 sectors in 0 cylinders of 48 tracks, 128 sectors
0.0MB in 0 cyl groups (13 c/g, 39.00MB/g, 18624 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
#
|
해결 방법: 수퍼유저로 다음 해결 방법을 수행합니다.
해결 방법 1:newfs 명령을 사용할 때 트랙 수를 지정합니다. 다음 단계를 수행합니다.
format 명령을 사용하여 할당할 트랙 수를 확인합니다. 예를 들면 다음과 같습니다.
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
/pci@1f,4000/scsi@3/sd@0,0
Specify disk (enter its number):
|
이 예에서 트랙 수는 19입니다.
newfs 명령으로 만들 파일 시스템에 이 숫자를 할당합니다. 예를 들면 다음과 같습니다.
# newfs -v -t 19 /dev/dsk/c0t0d0s6
newfs: construct a new file system /dev/rdsk/c0t0d0s6: (y/n)? y
mkfs -F ufs /dev/rdsk/c0t0d0s6 4712 -1 19 8192 1024 16 10 167 2048
t 0 -1 8 128 n
mkfs: bad value for nsect: -1 must be between 1 and 32768
mkfs: nsect reset to default 32
Warning: 152 sector(s) in last cylinder unallocated
/dev/rdsk/c0t0d0s6: 4712 sectors in 8 cylinders of 19 tracks,
32 sectors
2.3MB in 1 cyl groups (16 c/g, 4.75MB/g, 2304 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32,
#
|
해결 방법 2:newfs 명령에서 inode당 바이트 수(nbpi)를 지정하여 파일 시스템의 inode 밀도를 낮춥니다. 예를 들면 다음과 같습니다.
# newfs -i 4096 /dev/dsk/c0t0d0s6
newfs: construct a new file system /dev/rdsk/c0t0d0s6: (y/n)? y
Warning: 1432 sector(s) in last cylinder unallocated
/dev/rdsk/c0t0d0s6: 4712 sectors in 1 cylinders of 48 tracks,
128 sectors
2.3MB in 1 cyl groups (16 c/g, 48.00MB/g, 11648 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32,
#
|