Creating a partition....???


 
Thread Tools Search this Thread
Operating Systems Solaris Creating a partition....???
# 1  
Old 12-30-2008
Creating a partition....???

I have created a pool named earthpool using zpool command. Later I created a file system named earth using zfs command. I changed the mountpoint of earth (file system) using

zfs set mountpoint=/earth earthpool/earth.

Where /earth is a directory created in root using mkdir.

Now, I have a partition with the name earth.

Am I correct in creating the partition ? Below are the details of the result got by using the commands

root@mylodon # zpool create earthpool raidz2 c0t0d0 c1t0d0 c4t0d0 c6t0d0 c7t0d0 c0t1d0 c0t2d0 c0t3d0 c0t4d0 c0t5d0 c0t6d0 c0t7d0

root@mylodon # zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
earthpool 10.9T 189K 10.9T 0% ONLINE -

zfs create earthpool/earth

root@mylodon # zfs list
NAME USED AVAIL REFER MOUNTPOINT
earthpool 224K 8.87T 63.4K /earthpool
earthpool/earth 60.9K 8.87T 60.9K /earthpool/earth

root@mylodon # zfs get mountpoint earthpool/earth
NAME PROPERTY VALUE SOURCE
earthpool/earth mountpoint /earthpool/earth default

root@mylodon # mkdir /earth

zfs set mountpoint=/earth earthpool/earth

root@mylodon # zfs list
NAME USED AVAIL REFER MOUNTPOINT
earthpool 231K 8.87T 60.9K /earthpool
earthpool/earth 60.9K 8.87T 60.9K /earth

Thank you
# 2  
Old 12-31-2008
That all looks good to me, except this:

Quote:
Originally Posted by bharu_sri
Now, I have a partition with the name earth.
You do not have a partition, you have a filesystem. One of the main differences is that the filesystem can grow to fill the entire pool unless you set a quota on it.
# 3  
Old 12-31-2008
How do I create a partition by name earth ? Do I need to modify the partition table as needed and then mount a slice on /earth ?

Is this correct ? Please, could you give me the appropriate commands.
# 4  
Old 12-31-2008
When you are using ZFS you don't. There is no need for partitions.
# 5  
Old 12-31-2008
Actually, my goal is to create 3 partitions /earth,/work and /mars on a new X4500 box running solaris 10 OS. I do not understand how exactly that can be done. Now I have three file systems /earth,/mars and /work with 10TB, 20TB and 10TB respectively. But, there must be an entry in /etc/vfstab if we create a partition. Am I right ?

The output of /etc/vfstab is

root@mylodon # cat /etc/vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/md/dsk/d10 /dev/md/rdsk/d10 / ufs 1 no -
/devices - /devices devfs - no -
ctfs - /system/contract ctfs - no -
objfs - /system/object objfs - no -
/dev/md/dsk/d20 - - swap - no -
/dev/md/dsk/d30 /dev/md/rdsk/d30 /var ufs 1 no -

Thank you
# 6  
Old 12-31-2008
Why?

There is simply no need to any of this if you are using ZFS.
# 7  
Old 12-31-2008
actually my professor asked me to do that. So can I just create folders and use them ????
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Trouble creating a disk partition slice (EFI)

Hi all, I am using SPARC Solaris 11.1 with EFI labelled disks. I am new to ZFS file systems and slightly stuck when trying to create a partition (slice) on one of my LUNs. EFI labels use sectors and blocks and I am not sure how exactly it works. From here I can try and create a... (2 Replies)
Discussion started by: selectstar
2 Replies

2. 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

3. Linux

Creating /boot partition for LVM VG

Hi, I have a server booted into sysresccd (mini-linux OS) with 1 40 GB disk attached I am trying to create a volume group and restore another server into the new one However, when I try to create a partition for /boot it seems that my VG in LVM is not recognized anymore These are the... (2 Replies)
Discussion started by: galuzan
2 Replies

4. OS X (Apple)

Creating a hidden partition that doesn't mount automatically

I have a drive full of diagnostic images (ASD), and I also use it for storage, installers, etc. When I plug it in to a booted system, it has to mount every single volume (about 25) which can take some time. I would like to keep all the ASD partitions from mounting when plugged in/at boot. I know... (0 Replies)
Discussion started by: nextyoyoma
0 Replies

5. Solaris

Partition overlaps another partition while creating new parition in solaris

hi all while formatting hard disk i am getting following error. Partition 1 ends at 266338338 It must be between 34 and 143374704. label error: EFI Labels do not support overlapping partitions Partition 8 overlaps partition 1. Warning: error writing EFI. Label failed. I have formatted the... (2 Replies)
Discussion started by: nikhil kasar
2 Replies

6. UNIX for Advanced & Expert Users

[Solved] Creating unformatted partition

I needed to create a un-formatted partition of X MB on a disk dont want it from GUI but from command line not sure what should be specified for fdisk (4 Replies)
Discussion started by: dinjo_jo
4 Replies

7. Filesystems, Disks and Memory

Creating /boot partition & MBR concerns

I have 40GB HD with mepis8, swap, MBR and under flags word boot. I also have a 160 GB external with a few Linux OS, no swaps, no extended etc. I am total Linux no MS I would feel more secure by resizing that sda1 partition and creating a /boot partition with the MBR housed there. Is that a... (1 Reply)
Discussion started by: worthamtx
1 Replies

8. UNIX for Dummies Questions & Answers

I've created a partition with GNU Parted, how do I mount the partition?

I've created a partition with GNU Parted, how do I mount the partition? The manual information at http://www.gnu.org/software/parted/manual/parted.html is good, but I am sure about how I mount the partition afterwards. Thanks, --Todd (1 Reply)
Discussion started by: jtp51
1 Replies

9. UNIX for Dummies Questions & Answers

Error in creating logical partition

Dear Members, I am using SCO-Unix 5.0.5. I have created 2 logical drives but some of the blocks are overlapped and are now giving warning during startup. I have used fsck to settle the problems but to no avail. Kindly help me to sort out the problem. Thanks (3 Replies)
Discussion started by: nagendrajaiswal
3 Replies

10. UNIX for Dummies Questions & Answers

understanding logical partition, physical partition

hi, 1) is logical partition the same as physical partition except that one is physical and the other is logical? 2) then it must a one to one ratio? (3 Replies)
Discussion started by: yls177
3 Replies
Login or Register to Ask a Question