Pages

Thursday, March 31, 2011

How to create soft partition

Soft partition are used to divide physical disk partition/slice into smaller area. For eample you have a disk slice 1 GB, and you want to divide that slice become 10 areas (each with 100 MB size). You can create a soft partition with following steps:

  1. Create soft partition. In this example you will create 100 MB soft partition on disk slice c3t2d0s0 with 1 GB size.
    bash-3.00# metainit d10 -p c3t2d0s0 100mb
    d10: Soft Partition is setup
  1. Check soft partition status
    bash-3.00# metastat -p
d10: Soft Partition
Device: c3t2d0s0
State: Okay
Size: 204800 blocks (100 MB)
Device Start Block Dbase Reloc
c3t2d0s0 0 No Yes

Extent Start Block Block count
0 1 204800

Device Relocation Information:
Device Reloc Device ID
c3t2d0 Yes id1,sd@SATA_____VBOX_HARDDISK____VB08da0d81-38b71174
  1. Create file system on the soft partition
    bash-3.00# newfs /dev/md/rdsk/d10
/dev/md/rdsk/d10: Unable to find Media type. Proceeding with system determined parameters.
newfs: construct a new file system /dev/md/rdsk/d10: (y/n)? y
/dev/md/rdsk/d10: 204800 sectors in 100 cylinders of 64 tracks, 32 sectors
100.0MB in 7 cyl groups (16 c/g, 16.00MB/g, 7680 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 32832, 65632, 98432, 131232, 164032, 196832,
  1. Mount soft partition. For example mount on /document
bash-3.00# mount /dev/md/dsk/d10 /document

No comments:

Post a Comment