Quote:
Originally Posted by
smartgupta
hi I am working with sun solaris 9 and I have 40 GB hard disk and I want to recreate the partition.
1)how can I recreate the partition??
2) how can I take the back-up of my application so that I will not loose the data..
#sudo format
select your disk on which you have to make partition........
format> partition
print - check current status of your disk
modify - to create partition
Select partitioning base:
0. Current partition table (default)
1. All Free Hog
Choose base (enter number) [0]? 1
Part Tag Flag Cylinders Size Blocks
0 root wm 0 0 (0/0/0) 0
1 swap wu 0 0 (0/0/0) 0
2 backup wu 0 - 49149 60.00GB (49150/0/0) 125824000
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 usr wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
Do you wish to continue creating a new partition
table based on above table[yes]?
Free Hog partition[6]? 5
Enter size of partition '0' [0b, 0c, 0.00mb, 0.00gb]: 12gb
Enter size of partition '1' [0b, 0c, 0.00mb, 0.00gb]: 12gb
Enter size of partition '3' [0b, 0c, 0.00mb, 0.00gb]: 12gb
Enter size of partition '4' [0b, 0c, 0.00mb, 0.00gb]: 12gb
Enter size of partition '6' [0b, 0c, 0.00mb, 0.00gb]: 0gb
Enter size of partition '7' [0b, 0c, 0.00mb, 0.00gb]: 0gb
Part Tag Flag Cylinders Size Blocks
0 root wm 0 - 9830 12.00GB (9831/0/0) 25167360
1 swap wu 9831 - 19661 12.00GB (9831/0/0) 25167360
2 backup wu 0 - 49149 60.00GB (49150/0/0) 125824000
3 unassigned wm 19662 - 29492 12.00GB (9831/0/0) 25167360
4 unassigned wm 29493 - 39323 12.00GB (9831/0/0) 25167360
5 unassigned wm 39324 - 49149 11.99GB (9826/0/0) 25154560
6 usr wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
Okay to make this the current partition table[yes]? yes
Enter table name (remember quotes): new
Ready to label disk, continue? yes
After this we can create the file systems on each slice:
newfs /dev/rdsk/c0t0d0s and so on....
At this point we must create the mount points:
mkdir -p /mount/data (note -p makes the parent directories if they don't exist since
Now change ownership to oracle user for all file systems so oracle database can write to them:
sudo chown oracle:dba /mount/data
Finally, we're ready to edit the vfstab with the new entries:
/dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 2
no -
Now we can mount up the file systems:
sudo mount /mount/data