Preamble
This manual is directed to show with practical example how to use soft partitions under Solaris. The advantages of soft partitions compared to standard Solaris slices are possibility to create up to 8192 partitions compared to 7 in slices and grow on the fly the partitions without disrupting normal operations. Of course last one is true only in case of use filesystem over the soft partition, but this is usual situation, raw partitions are in use much rare. Example will be based on soft partitions reside over 5 harddisks, each with size of 4 GB, binded in RAID 5 array.
Prerequisites
1. First lets create partitions on the disks using s7 with size of 40 MB for metadb and s0 the rest for RAID 5 volume
bash-3.2# format
Searching for disks...
Inquiry failed for this logical diskdone
AVAILABLE DISK SELECTIONS:
0. c0d0 <ATA -VBOX HARDDISK -1.0 cyl 4174 alt 2 hd 255 sec 63>
/pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0
1. c1t0d0 <ATA -VBOX HARDDISK -1.0 cyl 2045 alt 2 hd 128 sec 32>
/pci@0,0/pci8086,2829@d/disk@0,0
2. c1t1d0 <ATA -VBOX HARDDISK -1.0 cyl 2045 alt 2 hd 128 sec 32>
/pci@0,0/pci8086,2829@d/disk@1,0
3. c1t2d0 <ATA -VBOX HARDDISK -1.0 cyl 2045 alt 2 hd 128 sec 32>
/pci@0,0/pci8086,2829@d/disk@2,0
4. c1t3d0 <ATA -VBOX HARDDISK -1.0 cyl 2045 alt 2 hd 128 sec 32>
/pci@0,0/pci8086,2829@d/disk@3,0
5. c1t4d0 <ATA -VBOX HARDDISK -1.0 cyl 2045 alt 2 hd 128 sec 32>
/pci@0,0/pci8086,2829@d/disk@4,0
We select disk 1 allocated on controller 1
Specify disk (enter its number): 1
selecting c1t0d0
[disk formatted]
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
fdisk - run the fdisk program
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
Next step is to allocate the partition for Solaris on the disk
format> fdisk
No fdisk table exists. The default partition for the disk is:
a 100% "SOLARIS System" partition
Type "y" to accept the default partition, otherwise type "n" to edit the
partition table.
y
Enter in to the partition menu
format> pa
PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit
Create huge slice with number 0 for the array
partition> 0
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]:1
Enter partition size[0b, 0c, 0e, 0.00mb, 0.00gb]: 2030
Allocate the rest of the diskspace in slice with number 7 for metadb
partition> 7
Part Tag Flag Cylinders Size Blocks
7 unassigned wm 0 0 (0/0/0) 0
Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]:2031
Enter partition size[0b, 0c, 20e, 0.00mb, 0.00gb]: 2043e
Print the partition table
partition> p
Current partition table (unnamed):
Total disk cylinders available: 2044 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 unassigned wu 1 - 2030 3.96GB (2030/0/0) 8314880
1 unassigned wu 0 0 (0/0/0) 0
2 backup wu 1 - 2044 3.99GB (2044/0/0) 8372224
3 unassigned wu 0 0 (0/0/0) 0
4 unassigned wu 0 0 (0/0/0) 0
5 unassigned wu 0 0 (0/0/0) 0
6 unassigned wu 0 0 (0/0/0) 0
7 unassigned wu 2031 - 2043 26.00MB (13/0/0) 53248
8 boot wu 0 - 0 2.00MB (1/0/0) 4096
9 unassigned wu 0 0 (0/0/0) 0
And label and quit from format program
partition> la
Ready to label disk, continue? y
partition> q
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
fdisk - run the fdisk program
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> q
Subscribe to:
Post Comments (Atom)
Compressed tar archive
There are some cases when you want to create compressed tar archive but you do not have enough disk space to keep original files and tar arc...
-
To build firewall under AIX is sample, but as each host based firewall should be done careful 1. Prerequisites To start firewall in AIX yo...
-
There are some cases when you want to create compressed tar archive but you do not have enough disk space to keep original files and tar arc...
-
4. Its time for some system administrator tasks. Oracle ASM need special mark of disks will work with 4.1. Because of some reason (i don...
No comments:
Post a Comment