Creating filesystem in Solaris 11 using Zpool

0 0
0 0

Let us see how to create a mount point or filesystem using zpool in Solaris 11.

To print the Disks

# echo | format

Scan for the new Disks

# devfsadm -c disk

To list all the controllers

# cfgadm -al

To create a pool

# zpool create backup02

# zfs create backup02/fs

# zfs set mountpoint=/backup02 backup02/fs

Create a file with below content in the name of format.cmd to label the disk using for loop.

cat >format.cmd
label
quit

Put all the new LUN details under NW_Lun file.

If we have the multiple number of disks we can use for loop as follows.

for disk in `cat NW_Lun` 
do 
format -s -f format.cmd $disk 
echo "labeled $disk ....."
done

Once we run the for loop it will label the disk, format. That’s it we have done with creating the new filesystem.

Creating filesystem in Solaris 11 using Zpool 1

About Post Author

Babin Lonston

Overall 14+ Years of experience in the IT field, currently working as a Senior Linux administration with Virtualization & Cloud. Being numismatist for a long time.
Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

Leave a Reply

Your email address will not be published.

saltstack_oel7.com Previous post How to install Saltstack Configuration Management tool in Centos Linux
Next post Find Serial number in Solaris 11 x86_64

Subscribe

Subscribe To Our Newsletter

Subscribe To Our Newsletter

Join our mailing list to receive the latest news and updates from our team.

We promise not to spam you, and we don't usually send more than one email a week.

You have Successfully Subscribed!