The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Question about working with data to create new column scottzx7rr Shell Programming and Scripting 4 08-21-2007 03:55 PM
how to create new partition in Linux useless79 Linux 1 07-25-2007 02:09 AM
clean data from partition thumper BSD 1 07-03-2007 04:32 PM
How To Create Partition In Fc5 mani_um Filesystems, Disks and Memory 1 06-11-2007 08:25 PM
Can i create pcfs partition using sun solaris 10 ? XP_2600 SUN Solaris 2 03-23-2006 06:23 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-08-2006
Registered User
 

Join Date: Sep 2006
Posts: 81
Stumble this Post!
Exclamation [help] create partition for /data

hi experts,

i had installed and do mirroring with sun solaris 8 v890 sparc, i had forget to make a partition for directory /data, i have 6 hard drive with disk0 mirror disk1(for root,var,opt,etc) ,disk2 mirror disk3(for /data2) and disk4 mirror disk5(for /data3), how to make a new partition for /data or change /data2 to /data ? because the /data directory need to keep log file from application, below is my harddisk and partition condition :

# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/md/dsk/d30 8258285 863634 7312069 11% /
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
mnttab 0 0 0 0% /etc/mnttab
/dev/md/dsk/d35 37302884 9259 36920597 1% /var
swap 60511200 16 60511184 1% /var/run
swap 60511200 16 60511184 1% /tmp
/dev/md/dsk/d39 141065220 9 139654559 1% /data3
/dev/md/dsk/d38 141065220 9 139654559 1% /data2
/dev/md/dsk/d37 49580320 26 49084491 1% /export/home


# metastat
d30: Mirror
Submirror 0: d10
State: Okay
Submirror 1: d20
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 16770048 blocks

d10: Submirror of d30
State: Okay
Size: 16770048 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t0d0s0 0 No Okay


d20: Submirror of d30
State: Okay
Size: 16790400 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t1d0s0 0 No Okay


d31: Mirror
Submirror 0: d11
State: Okay
Submirror 1: d21
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 8405376 blocks

d11: Submirror of d31
State: Okay
Size: 8405376 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t0d0s1 0 No Okay


d21: Submirror of d31
State: Okay
Size: 8405376 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t1d0s1 0 No Okay


d35: Mirror
Submirror 0: d15
State: Okay
Submirror 1: d25
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 75750144 blocks

d15: Submirror of d35
State: Okay
Size: 75750144 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t0d0s5 0 No Okay


d25: Submirror of d35
State: Okay
Size: 75750144 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t1d0s5 0 No Okay


d36: Mirror
Submirror 0: d16
State: Okay
Submirror 1: d26
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 42576384 blocks

d16: Submirror of d36
State: Okay
Size: 42576384 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t0d0s6 0 No Okay


d26: Submirror of d36
State: Okay
Size: 42576384 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t1d0s6 0 No Okay


d37: Mirror
Submirror 0: d17
State: Okay
Submirror 1: d27
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 100681344 blocks

d17: Submirror of d37
State: Okay
Size: 100681344 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t0d0s7 0 No Okay


d27: Submirror of d37
State: Okay
Size: 100681344 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t1d0s7 0 No Okay


d38: Mirror
Submirror 0: d18
State: Okay
Submirror 1: d28
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 286474752 blocks

d18: Submirror of d38
State: Okay
Size: 286474752 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t2d0s0 0 No Okay


d28: Submirror of d38
State: Okay
Size: 286474752 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t3d0s0 0 No Okay


d39: Mirror
Submirror 0: d19
State: Okay
Submirror 1: d29
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 286474752 blocks

d19: Submirror of d39
State: Okay
Size: 286474752 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t4d0s0 0 No Okay


d29: Submirror of d39
State: Okay
Size: 286474752 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c1t5d0s0 0 No Okay



# ls
bin data3 etc kernel mnt platform tmp vol
cdrom dev export lib net proc usr xfn
data2 devices home lost+found opt sbin var

very need helpppp

please advice

thank you for you attention



Best Regards,

wu
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 10-08-2006
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Stumble this Post!
Quote:
how to make a new partition for /data or change /data2 to /data ?
The easiest and fastest solution IF there is nothing yet on /data2 is to turn it into /data.

# umount /data2
Next step needed if /data directory (read mount point) does not exist.
# mkdir /data
# cp /etc/vfstab /etc/vfstab.10082006
# vi /etc/vfstab
Change /data2 to /data and save file
# mount /data
Done. Unmount /data2, make sure /data mount point is available, copy /etc/vfstab to file name of your choice (just in case), change /etc/vfstab to have d38 mount as /data instead of /data2, save changes, and mount /data.
Reply With Quote
  #3 (permalink)  
Old 10-08-2006
Registered User
 

Join Date: Sep 2006
Posts: 81
Stumble this Post!
Quote:
Originally Posted by RTM
The easiest and fastest solution IF there is nothing yet on /data2 is to turn it into /data.

# umount /data2
Next step needed if /data directory (read mount point) does not exist.
# mkdir /data
# cp /etc/vfstab /etc/vfstab.10082006
# vi /etc/vfstab
Change /data2 to /data and save file
# mount /data
Done. Unmount /data2, make sure /data mount point is available, copy /etc/vfstab to file name of your choice (just in case), change /etc/vfstab to have d38 mount as /data instead of /data2, save changes, and mount /data.

hi RTM,

Thank you for your advice

Best Regards,

wu
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:20 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0