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

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` 
format -s -f format.cmd $disk 
echo "labeled $disk ....."

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

About 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.
0 0 %
0 0 %
0 0 %
0 0 %
0 0 %
0 0 %

Leave a Comment

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!

Exit mobile version