can i create a partition on S7 with this partition table & if yes how i can ?
Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197
Rep:
You're already in the partition command. It prints the menu at each stage, and you are already down in the section looking at the partition table for that drive. If you really want to put the remaining space on s7, then choose 7, give it a starting position of the first unused cylinder (10670) and an end position of the last available cylinder (14086). Print (p) the resulting partition table and proof read what you did. Then write it out to the disk and quit. You have to be very careful when doing this since it is your live drive.
When done with partition, do a `newfs /dev/dsk/cxtxdxs7`. I can't tell what those x's should be from what you provided, but they were displayed when you entered the partition command.
Then you should add an entry for s7 to /etc/vfstab.
Finally, mkdir the mount point you want to use (it should be in the /etc/vfstab entry) and mount it.
Last edited by choogendyk; 06-07-2011 at 06:08 AM.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Quote:
Originally Posted by choogendyk
When done with partition, do a `newfs /dev/dsk/cxtxdxs7`. I can't tell what those x's should be from what you provided, but they were displayed when you entered the partition command.
Then you should add an entry for s7 to /etc/vfstab.
Finally, mkdir the mount point you want to use (it should be in the /etc/vfstab entry) and mount it.
And, you also have to learn zfs. Which you should. But, if everything you have is ufs, and you just want to add the s7 partition, then . . .
Also, "better" is often relative to the particulars of the situation. I recently found a case where I had zfs and needed to change back to ufs. I had clients using rsync with --link-dest dumping large numbers of hard links on the server share. I wanted to roll that into the Amanda backups to put it into the tape cycle, shorten the rsync cycle, and reduce the space used on disk. However, gnu tar chokes on all those hard links (when doing incrementals), zfs send doesn't do incrementals, and there were really no options for zfs. ufsdump, on the other hand handles the situation. It allows me to roll the rsync stuff into the Amanda tape backups and get the advantage of Amanda's planner and smoothing of resource usage over the dump cycle. Other than that example, I have been pushing to zfs for almost all new resources and redoing older things in zfs as resources allow.
Although it is a good practice, you don't need to create a filesystem in the tank. A file system is always created by default on the top of every newly created pool.
Quote:
And, you also have to learn zfs. Which you should.
Indeed, but managing ZFS is much simpler than any other volume management & file system and has a ton of advantages compared to UFS.
Quote:
But, if everything you have is ufs, and you just want to add the s7 partition, then . . .
Sure, I was talking about Solaris 10 and newer, if you are running Solaris 9, 8 or whatever, UFS is the best way to go.
Quote:
Also, "better" is often relative to the particulars of the situation. I recently found a case where I had zfs and needed to change back to ufs. I had clients using rsync with --link-dest dumping large numbers of hard links on the server share. I wanted to roll that into the Amanda backups to put it into the tape cycle, shorten the rsync cycle, and reduce the space used on disk. However, gnu tar chokes on all those hard links (when doing incrementals), zfs send doesn't do incrementals, and there were really no options for zfs. ufsdump, on the other hand handles the situation. It allows me to roll the rsync stuff into the Amanda tape backups and get the advantage of Amanda's planner and smoothing of resource usage over the dump cycle.
I see, but as you explain it, it looks to be a GNU tar shortcoming, not a ZFS one. In any case, ZFS has its own way of doing backups, including incrementals with snapshots. Quoting http://www.solarisinternals.com/wiki...ractices_Guide
You can create an incremental snapshot stream (see "zfs send -i" syntax). This is generally much faster than incremental backups performed by file-level tools, such as tar and rsync, because ZFS already knows which blocks have changed on disk, and it can simply read those blocks as large sequential disk read operations, to the extent physically possible. Archive tools, such as tar and rsync, must walk the file system, checking every file and directory for modifications, in order to choose which files have changed and need to be included in the incremental backup.
Quote:
Other than that example, I have been pushing to zfs for almost all new resources and redoing older things in zfs as resources allow.
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197
Rep:
The hangup with the zfs send/receive for backups is that send/receive, as I understand it, is an all or nothing operation. You cannot extract just one file from the backup stream, as you can with ufsrestore. So, although Amanda can use zfs send/receive, it has limitations, and is not regarded as an enterprise backup/recovery tool. That's why I use gnu tar on zfs file systems. I don't have a good solution for a zfs file system loaded with hard links.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.