[help] create partition for /data


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
# 1  
Error [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 Smilie

please advice

thank you for you attention



Best Regards,

wu
# 2  
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.
# 3  
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
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #587
Difficulty: Medium
All programming languages support recursion.
True or False?

10 More Discussions You Might Find Interesting

1. Red Hat

Shrink LVM partition & create new Linux Primary partition

Hello All, I have a Red Hat Linux 5.9 Server installed with one hard disk & 2 Partitions created on it as follows, /boot - Linux Partition & another is LVM - One VG & under that 5-6 Logical volumes(var,opt,home etc). Here my requirement is to take out 1GB of space from LVM ( Any logical... (5 Replies)
Discussion started by: gr8_usk
5 Replies

2. UNIX for Dummies Questions & Answers

Create a raw partition

Hi, I had created a primary partition (/dev/sda3) and made ext3 file system on it. then mounted it on a directory and touch a file (x) into this partition. however, I want to remove this partition and recreate it as an empty partition. so I used 'd' in fdisk command and delete that partition.... (3 Replies)
Discussion started by: Siavash sh
3 Replies

3. Linux

Create partition in FFS images.

Hi, Firstly, I created a 50MB image using: dd if=/dev/zero of=./disk.img bs=1MiB count=48 Then I formatted it using: mkfs.ufs ./disk.img This worked correctly as stated by the output of: raphaelsc@debian:~/Desktop/FFS$ file disk.img disk.img: Unix Fast File system (little-endian)... (1 Reply)
Discussion started by: raphaelsc
1 Replies

4. Windows & DOS: Issues & Discussions

No option to create partition using FAT32

Hi, i have a new laptop without any OS. I'm about to install win 7. i have a FreeDos CD and I'm currently trying to install it. My hard drive has about 610 000 GB space. I'm unable to create a partition bigger than ~2 GB. I know that normally when you start FDISK, you're asked if you want... (1 Reply)
Discussion started by: harriii
1 Replies

5. Shell Programming and Scripting

Virtual disk to create and partition

I have to do this exercise: Create a virtual disk Partition this disk Create File system Mount File System I'm using Minix (which runs by Qemu as guest machine) on Linux (Host) Is there anybody who knows how to solve first three point? :confused: Thanks (4 Replies)
Discussion started by: Guccio
4 Replies

6. UNIX for Dummies Questions & Answers

create new partition

My Linux systemís disk is partitioned as follows: center; 1 | 1 | 1 . DEVICE MOUNT POINT SIZE _ hda1 / 100Mb hda5 /usr2048Mb hda6 /home 10Mb hda7 /var512Mb hda8 swap 12Gb There is 4Gb of unpartitioned free space remaining on the disk (in the logical extended partition) The /usr partition... (2 Replies)
Discussion started by: semaphore
2 Replies

7. HP-UX

How to create a partition in HP_UX?

I'm using 11i v3. I have a san disk; how to creeate a partition in a normal way similar to fdisk in linux? (not using lvm) The other question is: I created a partiton using lvm and mounted it. experiment is to take a block level snapshot and attach it as a different disk. I attached the disk... (3 Replies)
Discussion started by: ilan
3 Replies

8. Solaris

How to Create New Partition

Hi there Background: New to Solaris - installed VM Ware on a vista laptop, then installed Solaris 10 using ISO file. My aim, is to get to stage where I can install Oracle 11g Database. Question: See attached file. Simple question, how do I create a new partition say called "Oracle" 30G in... (11 Replies)
Discussion started by: Ackers
11 Replies

9. Linux

how to create new partition in Linux

i want to create on directory called /data under "/ " . but when i m using mkdir /data it is telling permission denied. could any one tell me how to do it ? (1 Reply)
Discussion started by: useless79
1 Replies

10. Filesystems, Disks and Memory

How To Create Partition In Fc5

Hi sir, I want ask you something, i have Fedora Core 5 installed and i wanted to install windows NT at same machine (laptop), currently i have only this partition $ df -k Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/VolGroup00-LogVol00 ... (1 Reply)
Discussion started by: mani_um
1 Replies

Featured Tech Videos